/* ══════════════════════════════════════════════════════════════
   StreamTranscripts Design System
   Extracted from landing_test.html — the source of truth
   ══════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts ── */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('/static/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/static/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

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

/* ── Tokens ── */
:root {
  --purple-primary: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #5b21b6;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --green-live: #22c55e;
  --bg-body: #08081a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --search-bg: rgba(255, 255, 255, 0.07);
  --sidebar-active: rgba(124, 58, 237, 0.2);
  --link-color: #60a5fa;
}

/* ── Base ── */
html { height: 100%; }

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a { color: var(--link-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ── Background orbs ── */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs::before,
.bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.bg-orbs::before {
  width: 1300px;
  height: 1000px;
  top: 5%;
  left: calc(50% - 900px);
  background: radial-gradient(ellipse, rgba(131, 48, 231, 0.8) 0%, rgba(131, 48, 231, 0.45) 20%, rgba(131, 48, 231, 0.15) 40%, transparent 65%);
  filter: blur(80px);
}

.bg-orbs::after {
  width: 1300px;
  height: 1000px;
  top: 5%;
  left: calc(50% - 400px);
  background: radial-gradient(ellipse, rgba(57, 110, 217, 1) 0%, rgba(57, 110, 217, 0.55) 20%, rgba(57, 110, 217, 0.18) 40%, transparent 65%);
  filter: blur(80px);
}

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  position: relative;
  z-index: 2;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo img {
  width: 72px;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.nav-active {
  color: var(--text-primary);
}

.nav-links a.btn-outline {
  color: white;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--purple-primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--purple-dark);
  color: white;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid var(--purple-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--purple-primary);
  color: white;
}

.btn-tertiary {
  display: inline-block;
  background: transparent;
  color: var(--link-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid var(--link-color);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tertiary:hover {
  background: var(--link-color);
  color: white;
}

/* Size modifier — small buttons for inline/table use */
.btn-sm {
  padding: 5px 14px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Semantic alias — nav login is just a small outline button */
.btn-login {
  padding: 7px 18px;
}

/* ── Hero Section ── */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px 60px;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 480px;
}

.hero-text h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-text p,
.hero-text .hero-tagline {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

/* ── Floating tags ── */
.floating-tags {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ftag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  width: 260px;
  height: 68px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  animation: float 8s ease-in-out infinite;
}

.ftag-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ftag-icon svg {
  width: 20px;
  height: 20px;
}

.ftag .ftag-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.ftag p {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
  margin: 0;
}

.ftag:nth-child(1) { top: 18%; right: 35%; animation-delay: 0s; }
.ftag:nth-child(2) { top: 28%; right: 17%; animation-delay: -1.8s; }
.ftag:nth-child(3) { top: 44%; right: 31%; animation-delay: -3.5s; }
.ftag:nth-child(4) { top: 58%; right: 16%; animation-delay: -5.5s; }
.ftag:nth-child(5) { top: 66%; right: 35%; animation-delay: -7s; }
.ftag:nth-child(6) { top: 78%; right: 18%; animation-delay: -8.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Search section ── */
.search-section {
  max-width: 1100px;
  margin: -10px auto 60px;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

/* ── Search bar ── */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  cursor: text;
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-bar input[type="text"],
.search-bar input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.channel-search-bar {
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

/* Date filter dropdown */
.date-filter-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-date-filter {
  all: unset;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.btn-date-filter svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: stroke 0.15s;
}

.btn-date-filter:hover svg {
  stroke: var(--text-secondary);
}

.btn-date-filter.active svg {
  stroke: var(--purple-light);
}

.date-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 12, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(20px);
  z-index: 100;
  min-width: 240px;
}

.date-dropdown.open {
  display: block;
}

.date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.date-preset {
  all: unset;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.date-preset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.date-preset.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
}

.date-custom {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.date-custom label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.date-custom label span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-custom input[type="date"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-primary);
  color-scheme: dark;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.date-custom input[type="date"]:focus {
  border-color: var(--purple-primary);
}

.date-custom .date-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-top: 14px;
}

@media (max-width: 768px) {
  .date-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Active filter pill */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--purple-light);
  margin-left: 8px;
}

.filter-pill-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.filter-pill-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* ── Results panel (glass container) ── */
.results-panel {
  background: rgba(15, 12, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 12px 24px;
}

.results-main {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
}

/* ── Channel table ── */
.ch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.ch-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  padding: 6px 20px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ch-table td {
  padding: 16px 20px;
  vertical-align: middle;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ch-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px 0 0 12px;
  padding-left: 28px;
  padding-right: 0;
}

.ch-table td:nth-child(2) {
  padding-left: 12px;
}

.ch-table td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
  padding-right: 28px;
}

.ch-table tbody tr {
  transition: all 0.15s;
  cursor: pointer;
}

.ch-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08);
}

.ch-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.ch-name {
  font-weight: 600;
  color: var(--text-primary);
  display: inline;
  font-size: 0.85rem;
  text-decoration: none;
}

.ch-name:hover {
  color: var(--text-primary);
}

.ch-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-game {
  font-size: 0.8rem;
  color: var(--purple-light);
}

.ch-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ch-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Badges ── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-live);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-live);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 12px;
}

.page-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--purple-primary);
  color: white;
}

.page-btn svg {
  width: 16px;
  height: 16px;
}

.page-dots {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0 4px;
}

/* ── Footer ── */
footer {
  text-align: center;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: var(--text-primary);
}

/* ── Glass card (generic reusable container) ── */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
  backdrop-filter: blur(10px);
}

/* ── Glass form inputs ── */
.input-glass {
  background: var(--search-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.input-glass::placeholder {
  color: var(--text-muted);
}

.input-glass:focus {
  border-color: var(--purple-primary);
}

/* Textarea variant of the glass input — inherits colors/border, gains resize + min-height */
textarea.input-glass {
  width: 100%;
  min-height: 3.2em;
  resize: vertical;
  line-height: 1.45;
  padding: 10px 14px;
}

/* Select variant — strip native chrome, draw a chevron via SVG background */
select.input-glass {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

select.input-glass option {
  background: #181820;
  color: var(--text-primary);
}

/* ── VOD grid (channel page — stub, will be fleshed out) ── */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.vod-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.vod-card:hover { color: inherit; }

.vod-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
}

.vod-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.vod-card:hover .vod-thumb { opacity: 0.85; }

.vod-duration {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.vod-status {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
}

.vod-info {
  padding: 0.5rem 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vod-title {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Status badges ── */
.status-completed { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.25); }
.status-transcribing { background: rgba(52, 152, 219, 0.15); color: #5dade2; border: 1px solid rgba(52, 152, 219, 0.25); }
.status-recording { background: rgba(155, 89, 182, 0.15); color: #bb8fce; border: 1px solid rgba(155, 89, 182, 0.25); }
.status-available { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.08); }
.status-sub-only { background: rgba(230, 126, 34, 0.15); color: #e67e22; border: 1px solid rgba(230, 126, 34, 0.25); }
.status-failed { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.25); }
.status-unavailable { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.06); }

/* ── Utility ── */
.untracked-row { cursor: default !important; }
.untracked-row:hover td { background: rgba(255, 255, 255, 0.04) !important; }
.untracked-row .ch-name,
.untracked-row .ch-desc,
.untracked-row .ch-game,
.untracked-row .ch-lang,
.untracked-row .ch-stat,
.untracked-row .ch-avatar { opacity: 0.45; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.font-display { font-family: 'Bricolage Grotesque', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.04);
}

/* ── View Transitions — disabled, caused ghost image artifacts ── */

/* ── Responsive ── */
@media (max-width: 1024px) {
  .floating-tags { display: none; }
}

@media (max-width: 768px) {
  nav { padding: 12px 16px; }
  .nav-logo { font-size: 16px; }
  .nav-logo img { width: 48px; height: 48px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { flex-direction: column; padding: 24px 16px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: 28px; }
  .hero-buttons { justify-content: center; }
  .search-section { padding: 0 16px; }
  .results-panel { flex-direction: column; }
  footer { padding: 16px; }
  .ch-desc { display: none; }
}

@media (max-width: 916px) {
  .ch-table .col-hours { display: none; }
}

@media (max-width: 826px) {
  .ch-table .col-transcripts { display: none; }
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .ch-table .col-lang { display: none; }
  .ch-table .col-category { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Auth: nav account menu, login page, /account
   ══════════════════════════════════════════════════════════════ */

/* Role / tier pill */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.6;
  vertical-align: middle;
}
.pill-admin   { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.pill-pro     { background: rgba(124, 58, 237, 0.18); color: #c4b5fd; border: 1px solid rgba(124, 58, 237, 0.45); }
.pill-agency  { background: rgba(34, 197, 94, 0.15);  color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.pill-comp    { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.pill-free,
.pill-user    { background: rgba(255,255,255,0.06);   color: var(--text-secondary); border: 1px solid var(--glass-border); }

/* ══════════════════════════════════════════════════════════════
   Keyword alerts dashboard (/account/alerts) — full-width page
   ══════════════════════════════════════════════════════════════ */

.alerts-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.alerts-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.alerts-page-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.alerts-page-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 580px;
}
/* /account keyword-alerts preview card (clickable card that navigates to
   /account/alerts). Visually distinct from other account cards — subtle
   purple accent to match the brand + the feature's tone. */
.account-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.account-card-link:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.05);
}
.account-card-link:active { transform: translateY(1px); }

.alerts-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.alerts-preview-head h2 {
  margin-bottom: 4px;
}
.alerts-preview-head .sub-hint { margin-bottom: 0; font-size: 0.82rem; }
.alerts-preview-cta {
  color: var(--purple-light);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}
.account-card-link:hover .alerts-preview-cta { color: #fff; }

.alerts-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.alerts-preview-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.alerts-preview-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.alerts-preview-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .alerts-preview-head { flex-direction: column; gap: 10px; }
  .alerts-preview-stats { grid-template-columns: repeat(2, 1fr); }
}

.alerts-dashboard { display: flex; flex-direction: column; gap: 16px; }
.alerts-dashboard-header { display: flex; justify-content: space-between; align-items: baseline; }
.alerts-dashboard-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.alerts-quota {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 10px; border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.account-back { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.account-back:hover { color: var(--text-primary); }
.muted { color: var(--text-muted); font-weight: 400; font-size: 0.78em; }

/* Stats strip */
.alerts-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.alerts-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.alerts-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary); line-height: 1;
}
.alerts-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Add-keyword collapsible card */
.alerts-add {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  /* Intentionally no overflow:hidden — the multiselect dropdown is
     absolutely positioned and must escape this container. */
}
.alerts-add[open] { border-style: solid; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
.alerts-add > summary {
  list-style: none; cursor: pointer;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); font-weight: 600; font-size: 0.95rem;
}
.alerts-add > summary::-webkit-details-marker { display: none; }
.alerts-add > summary:hover { color: var(--text-primary); }
.alerts-add-icon {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--purple-primary);
  color: #fff; font-weight: 700; font-size: 16px; line-height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.alerts-add[open] > summary .alerts-add-icon { background: rgba(255,255,255,0.1); color: var(--text-secondary); }
.alerts-add-form { padding: 6px 22px 22px; }
.alerts-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.alerts-add-grid label,
.alerts-channel-row > label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.alerts-add-grid input, .alerts-channel-row input[type="text"] {
  width: 100%; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary); font: inherit; font-size: 14px;
}
.alerts-add-grid input:focus, .alerts-channel-row input[type="text"]:focus { outline: none; border-color: var(--purple-primary); }
.alerts-add-help { color: var(--text-muted); font-size: 0.75rem; margin-top: 6px; line-height: 1.4; }
.alerts-channel-row { margin-bottom: 16px; }
.alerts-add-submit { display: flex; justify-content: flex-end; }

/* Multiselect (data-multiselect) */
.ms-root {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.ms-root:focus-within { border-color: var(--purple-primary); }
.ms-pills { display: contents; }
.ms-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-size: 0.82rem; font-weight: 500;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
}
.ms-pill-x {
  all: unset; cursor: pointer;
  width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #c4b5fd;
}
.ms-pill-x:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ms-search {
  all: unset; flex: 1; min-width: 120px;
  padding: 4px 6px; color: var(--text-primary); font-size: 14px;
}
.ms-search::placeholder { color: var(--text-muted); }
.ms-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  z-index: 10;
  background: #15152e;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 4px;
  max-height: 280px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ms-option {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer; color: var(--text-primary); font-size: 14px;
}
.ms-option:hover { background: rgba(255, 255, 255, 0.06); }
.ms-option img, .ms-option-noavatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.05); object-fit: cover; flex-shrink: 0;
}
.ms-option-name { font-weight: 500; }
.ms-option-login { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-left: auto; }
.ms-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* Per-keyword cards + match feed */
.alert-cards { display: flex; flex-direction: column; gap: 16px; }
.alert-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.alert-card:hover { border-color: rgba(255, 255, 255, 0.12); }
.alert-card.is-paused { opacity: 0.7; }

.alert-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.alert-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.alert-card-title h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text-primary); line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis;
}
.alert-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.alert-card-actions form { margin: 0; }

.alert-card-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.alert-card-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-right: 8px;
}
.alert-card-variants, .alert-card-scope {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.82rem;
}
.alert-chip {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.alert-chip-muted { font-style: italic; opacity: 0.7; }

.alert-card-matches-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  margin-bottom: 10px;
}
.alert-card-see-all {
  color: var(--link-color); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
}
.alert-card-see-all:hover { text-decoration: underline; }

.match-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.match-feed-detail { margin-top: 0; }
.match-feed-empty {
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-muted); font-size: 0.88rem; text-align: center;
}

.match-card {
  display: flex; gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 16px;
  transition: background 0.15s, border-color 0.15s;
}
.match-card:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.match-channel-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}
.match-body { min-width: 0; flex: 1; }
.match-head { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; margin-bottom: 6px; }
.match-channel { color: var(--text-primary); font-weight: 600; }
.match-dot { color: var(--text-muted); }
.match-time { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; }
.match-quote {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid var(--purple-primary);
  border-radius: 6px;
  font-size: 0.92rem; line-height: 1.55;
  color: var(--text-primary);
}
.match-quote mark {
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
  padding: 0 3px; border-radius: 3px;
  font-weight: 600;
}
.match-ctx { color: var(--text-muted); }
.match-stream { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-links { display: flex; gap: 14px; font-size: 0.78rem; }
.match-links a { color: var(--link-color); text-decoration: none; font-weight: 500; }
.match-links a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .alerts-stats { grid-template-columns: repeat(2, 1fr); }
  .alerts-add-grid { grid-template-columns: 1fr; }
  .alert-card { padding: 18px 18px; }
  .alert-card-title h3 { font-size: 22px; }
  .alert-card-head { flex-direction: column; align-items: stretch; }
  .match-card { flex-direction: column; gap: 8px; }
  .match-channel-avatar { width: 32px; height: 32px; }
}

/* Past subscriptions details on /account */
.sub-past { margin-top: 18px; }
.sub-past summary { cursor: pointer; font-size: 0.82rem; color: var(--text-secondary); padding: 6px 0; }
.sub-past summary:hover { color: var(--text-primary); }
.sub-past-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.82rem; }
.sub-past-table th { text-align: left; padding: 6px 8px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--card-border); }
.sub-past-table td { padding: 6px 8px; color: var(--text-secondary); border-bottom: 1px solid var(--card-border); }
.sub-past-table tr:last-child td { border-bottom: 0; }

/* Nav: account item */
.nav-account { display: flex; align-items: center; gap: 10px; }
.nav-account-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.nav-account-link:hover { background: var(--glass-hover); }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.nav-account-name { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout-form { margin: 0; }
.nav-logout-btn {
  all: unset;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}
.nav-logout-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* ── Sign-in page ──
   Same token family as .pricing-card and .account-card. Narrower max-width
   because a single-purpose focal card reads best at ~420–440px. */
.auth-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 20px 60px;
  position: relative;
  z-index: 2;
}
.auth-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.auth-provider-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}
.auth-provider-btn svg { flex-shrink: 0; }

.auth-legal {
  text-align: center;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.6;
}
.auth-legal a { color: var(--link-color); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

.auth-disabled {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .auth-page { padding-top: 32px; }
  .auth-card { padding: 28px 22px; }
  .auth-header h1 { font-size: 28px; }
}

/* ── Account page ──
   Tokens intentionally mirror .pricing-card (templates/pricing.html) so the
   two pages feel like the same app.
*/
.account-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.account-header {
  margin-bottom: 8px;
}
.account-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.account-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 28px;
}
.account-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.account-profile { display: flex; align-items: center; gap: 20px; }
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.account-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(96, 165, 250, 0.25));
}
.account-profile-text { min-width: 0; }
.account-profile-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2px;
  word-break: break-all;
}
.account-meta {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* Subscription card */
.sub-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sub-status-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.sub-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}
.sub-status.inactive .sub-status-label { color: var(--text-secondary); }
.sub-status.inactive .sub-status-dot { background: var(--text-muted); box-shadow: none; opacity: 0.5; }

.sub-status-dot.is-warning {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.sub-status-dot.is-ending {
  background: #94a3b8;
  box-shadow: none;
}

.sub-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 4px 0 12px;
}
.sub-price-per {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.sub-hint {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.sub-hint strong { color: var(--text-primary); font-weight: 600; }

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.sub-footnote {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Danger card + button.
   The destructive intent is communicated by the heading tint and the red
   outline button. The card itself keeps the neutral border so the page
   doesn't visually scream. */
.account-danger h2 { color: #fca5a5; }
.account-danger p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Outline-danger: sized to match other secondary actions on the page
   (btn-primary + btn-sm). Hover fills to confirm intent. */
.btn-danger {
  display: inline-block;
  background: transparent;
  color: #f87171;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}
.btn-danger:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .nav-account-name { max-width: 80px; }
  .nav-logout-btn { display: none; }
  .account-header h1 { font-size: 28px; }
  .account-card { padding: 24px 20px; }
  .account-profile { gap: 16px; }
  .account-avatar { width: 60px; height: 60px; }
  .account-profile-text h2 { font-size: 1.25rem; }
}
