/* ─── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.material-symbols-outlined { font-size: 1.1rem !important; }
.paste-meta h1 .material-symbols-outlined { font-size: 1.4rem !important; }
.feature-icon.material-symbols-outlined { font-size: 1.6rem !important; }
.empty-state-icon.material-symbols-outlined { font-size: 1.5rem !important; }

:root {
  color-scheme: dark;
  --bg:       #0c0e13;
  --bg-sub:   #101318;
  --surface:  #141720;
  --surface2: #1b1e2c;
  --border:   #1f2233;
  --accent:   #c07c4c;
  --text:     #dde0ea;
  --muted:    #828699;
  --danger:   #d45f5f;
  --r-sm:     6px;
  --r-md:     12px;
  --r-lg:     20px;
  --font:     'Outfit', system-ui, -apple-system, sans-serif;
  --shadow:   0 4px 24px rgba(0,0,0,0.45);
  --shadow-sm:0 2px 8px  rgba(0,0,0,0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg:       #f3f2ee;
  --bg-sub:   #e4e2db;
  --surface:  #ffffff;
  --surface2: #f7f6f2;
  --border:   #e0ddd5;
  --text:     #18191f;
  --muted:    #6b6f82;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm:0 2px 8px  rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Prevent iOS auto-zoom on input focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ─── Header (Flowbite-inspired) ─────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
[data-theme="dark"] .site-header {
  background: rgba(20,23,32,0.95);
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.impersonate-banner {
  background: #6366f1;
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}
.impersonate-banner a {
  color: #fff;
  font-weight: 600;
  margin-left: 1rem;
  text-decoration: underline;
}
.impersonate-banner a:hover { opacity: 0.8; }

.logo { display: flex; align-items: center; gap: 0.5rem; transition: opacity 0.2s; line-height: 1; }
.logo:hover { text-decoration: none; opacity: 0.72; }
.logo-img { height: 28px; width: auto; display: block; }
.logo-name { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
[data-theme="dark"]  .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: none; }

/* ─── Nav collapse ───────────────────────────────────────────── */
.nav-collapse {
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-sub);
  text-decoration: none;
}
.nav-link.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Sign out */
.nav-signout { color: var(--muted); }
.nav-signout:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* Register button */
.nav-register {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--r-md);
  padding: 0.45rem 1rem;
  font-weight: 600;
}
.nav-register:hover {
  background: var(--accent-hover, color-mix(in srgb, var(--accent) 85%, #000));
  color: #fff !important;
}

/* ─── Nav dropdown ───────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 140px;
  z-index: 300;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li {
  margin: 0;
  border: none;
  padding: 0;
}
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
}
.nav-dropdown-menu li:first-child .nav-link {
  border-top: 1px solid var(--border);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.nav-dropdown-menu li:last-child .nav-link {
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.nav-dropdown-menu li:first-child:last-child .nav-link {
  border-radius: var(--r-sm);
}
.nav-dropdown-menu .nav-link:hover {
  background: var(--bg-sub);
  color: var(--accent);
}

/* ─── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  z-index: 200;
  transition: background 0.15s;
}
.hamburger:hover {
  background: var(--bg-sub);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-collapse {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav-collapse.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-sub);
  }

  .nav-link {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: 0;
  }
  .nav-link:hover {
    background: var(--surface);
  }
  .nav-link.active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .nav-register {
    margin: 0.25rem 0.75rem;
    text-align: center;
    border-radius: var(--r-md);
  }
  .nav-register:hover {
    color: #fff !important;
    background: var(--accent-hover, color-mix(in srgb, var(--accent) 85%, #000)) !important;
  }

  /* Dropdown in mobile */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 1rem;
  }
  .nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu {
    position: static;
    padding: 0;
    min-width: 0;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu .nav-link {
    padding: 0.55rem 1rem 0.55rem 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    border: none;
    background: none;
    border-radius: 0;
  }
  .nav-dropdown-menu li:first-child .nav-link { border-top: none; border-radius: 0; }
  .nav-dropdown-menu li:last-child .nav-link { border-radius: 0; }
  .nav-dropdown-menu .nav-link:hover {
    color: var(--accent);
    background: none;
  }
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); opacity: 1; }
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(192,124,76,0.28);
}
a.btn-primary, a.btn-primary:hover { color: #fff; text-decoration: none; }
.btn-primary:hover { box-shadow: 0 4px 22px rgba(192,124,76,0.42); }

.btn-success  { background: #5a9e7a; color: #fff; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); }
.btn-danger         { background: var(--danger); color: #fff; }
.btn-danger-outline { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-sm       { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-full     { width: 100%; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-row { display: flex; gap: 0.75rem; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.form-group input {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,124,76,0.12);
}
.form-group input::placeholder { color: var(--muted); opacity: 0.5; }

.form-error   { color: var(--danger); font-size: 0.82rem; margin-top: 0.4rem; }
.form-success { color: #5a9e7a; font-size: 0.82rem; margin-top: 0.4rem; }

/* ─── Inline field hints ──────────────────────────────────────── */
.field-hint {
  font-size: 0.78rem;
  margin-top: 0.3rem;
  min-height: 1rem;
  transition: color 0.18s;
}
.field-hint.ok       { color: #6eba96; }
.field-hint.err      { color: var(--danger); }
.field-hint.warn     { color: #c8a84c; }
.field-hint.checking { color: var(--muted); }

/* ─── Phone change/add inputs — white background ────────────── */
#changePhoneSection .form-group input,
#changePhoneSection .phone-field select,
#changePhoneSection .phone-field input,
#verifyCodeSection  .form-group input,
#changeEmailSection .form-group input {
  background: var(--surface);
}

/* ─── Phone combo field ──────────────────────────────────────── */
.phone-field {
  display: flex;
}
.phone-field select {
  flex-shrink: 0;
  padding: 0.65rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s;
  max-width: 130px;
}
.phone-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.phone-field input {
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
  flex: 1;
}
.phone-field:focus-within select,
.phone-field:focus-within input {
  border-color: var(--accent);
}

/* ─── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

/* ─── Alert bar ─────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-error   { background: rgba(212,95,95,.12); color: #e07070; border: 1px solid rgba(212,95,95,.25); }
.alert-success { background: rgba(90,158,122,.12); color: #6eba96; border: 1px solid rgba(90,158,122,.25); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Ambient glow blob */
.hero-wrap::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(192,124,76,0.09) 0%, transparent 68%);
  top: -60px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
}

.hero { position: relative; z-index: 1; display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; min-width: 0; max-width: 560px; }

/* ─── Hero Video ─────────────────────────────────────── */
.hero-video {
  flex: 0 0 560px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  aspect-ratio: 16 / 9;
}
.hero-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.72;
  margin-bottom: 2.25rem;
}

.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; }
.hero-download { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.ext-version { font-size: 0.72rem; color: var(--muted); font-weight: 500; padding-left: 0.1rem; }

/* ─── Steps / how it works ──────────────────────────────────── */
.steps-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.steps-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step-card {
  background: var(--surface);
  padding: 2rem 2.25rem;
  transition: background 0.2s;
}
.step-card:hover { background: var(--surface2); }

/* First card spans both columns */
.steps > .step-card:last-child:nth-child(3) {
  grid-column: 1 / -1;
  border-top: none;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Legal pages layout ──────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 2.5rem auto 6rem;
  padding: 0 1.5rem;
}
.legal-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.legal-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.legal-nav a:hover {
  color: var(--text);
  background: var(--bg-sub);
  text-decoration: none;
}
.legal-nav a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .legal-nav a {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ── Privacy page ────────────────────────────────────────────── */
.privacy-page {
  line-height: 1.8;
}
.privacy-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.privacy-updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.privacy-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.privacy-page h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.privacy-page p,
.privacy-page ul { margin-bottom: 1rem; color: var(--muted); }
.privacy-page ul { padding-left: 1.5rem; }
.privacy-page li { margin-bottom: 0.4rem; }
.privacy-page strong { color: var(--text); font-weight: 600; }
.privacy-page a { color: var(--accent); }
.privacy-page code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.faq-item summary:hover { background: var(--surface); }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}
.faq-item code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.faq-item a { color: var(--accent); }

/* ── Contact form ────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
}
.contact-form .required { color: var(--danger); }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 1rem; align-self: flex-start; }
.contact-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border-radius: var(--r-md);
}
.contact-success {
  margin-top: 2rem;
  text-align: center;
}
.contact-success p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ─── Features grid ─────────────────────────────────────────── */
.features-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  animation: fadeUp 0.55s ease 0.15s both;
}

/* ─── Recent activity feed ──────────────────────────────────── */
.activity-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.activity-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
}
/* Vertical divider between the two columns */
.activity-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}
/* Last row: remove bottom border */
.activity-item:nth-last-child(-n+2) {
  border-bottom: none;
}
@media (max-width: 768px) {
  .activity-feed { grid-template-columns: 1fr; }
  .activity-item:nth-child(odd) { border-right: none; }
  .activity-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .activity-item:last-child { border-bottom: none; }
}
.activity-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,124,76,0.1);
  color: var(--accent);
}
.activity-item.activity-mlb .activity-icon,
.activity-item.activity-mls .activity-icon,
.activity-item.activity-olympics .activity-icon {
  background: rgba(72,217,164,0.12);
  color: #1d9769;
}
.activity-item.activity-image .activity-icon,
.activity-item.activity-video .activity-icon {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}
.activity-item.activity-document .activity-icon {
  background: rgba(217,48,37,0.1);
  color: #d93025;
}
.activity-item.activity-shorturl .activity-icon {
  background: rgba(26,115,232,0.1);
  color: #1a73e8;
}
.activity-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-time {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.activity-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ─── Alerts promo ──────────────────────────────────────────── */
.alerts-promo-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.alerts-promo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.alerts-promo-card {
  background: var(--surface);
  padding: 2rem 2.25rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.alerts-promo-card:hover {
  background: var(--surface2);
  text-decoration: none;
}
.alerts-promo-icon {
  margin-bottom: 1rem;
  color: var(--accent);
}
.alerts-promo-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.alerts-promo-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.alerts-promo-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.alerts-promo-card:hover .alerts-promo-cta {
  text-decoration: underline;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 1.75rem 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface2); }

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Auth card ─────────────────────────────────────────────── */
.auth-section {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 6rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.tos-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.tos-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.tos-check a { color: var(--accent); }

.auth-toggle {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-or {
  display: flex;
  align-items: center;
  width: 320px;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-or span { white-space: nowrap; }

/* ─── Account layout ────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.account-sidebar {
  padding: 2.5rem 0 2.5rem 1.5rem;
  position: sticky;
  top: 1rem;
}
.account-sidebar-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Stat card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.1rem 1rem;
}
.stat-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.stat-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}
.stat-used {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.stat-used-warn  { color: #f59e0b; }
.stat-used-danger { color: var(--danger); }
.stat-sep   { font-size: 1.1rem; color: var(--muted); }
.stat-limit { font-size: 1.1rem; color: var(--muted); }
.stat-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.stat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.stat-bar-warn   { background: #f59e0b; }
.stat-bar-danger { background: var(--danger); }
.stat-reset {
  font-size: 0.72rem;
  color: var(--muted);
}
.stat-limit-msg {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--danger);
  line-height: 1.4;
}
.stat-estimate {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Account page ──────────────────────────────────────────── */
.account-page {
  max-width: 620px;
  margin: 0;
  padding: 2.5rem 1.5rem;
}

.account-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
}

.account-section { margin-bottom: 1.75rem; }

.tz-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tz-select {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tz-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,124,76,0.12);
}
.tz-select:hover { border-color: var(--muted); }

.account-section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-left: 0.1rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.18s;
}
.status-row:hover { border-color: var(--muted); }

.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-ok      { background: rgba(90,158,122,.15); color: #6eba96; }
.badge-pending { background: rgba(130,134,153,.12); color: var(--muted); }

.account-danger {
  border: 1px solid rgba(212, 95, 95, 0.25);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
}
.account-danger h2 { color: var(--danger) !important; }
.muted-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.delivery-tip {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.delivery-tip-text { margin-bottom: 0.2rem; }
.phone-gate-banner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
  color: var(--text);
}
.phone-gate-banner strong {
  font-size: 0.95rem;
  color: var(--accent);
}
.delivery-warning {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.delivery-warning strong { color: var(--danger); }
.delivery-tip-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ─── Tippy.js tooltip themes ──────────────────────────────── */
.tippy-box[data-theme~='ptm'] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-size: 0.78rem;
  font-family: inherit;
  line-height: 1.4;
}
.tippy-box[data-theme~='ptm'] {
  --tippy-arrow-color: var(--surface);
}
.tippy-box[data-theme~='ptm'] > .tippy-arrow {
  color: var(--surface);
}
.tippy-box[data-theme~='ptm'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--surface);
}
.tippy-box[data-theme~='ptm'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--surface);
}
.tippy-box[data-theme~='ptm'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: var(--surface);
}
.tippy-box[data-theme~='ptm'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: var(--surface);
}
.tippy-box[data-theme~='ptm-rich'] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-family: inherit;
  padding: 0.5rem 0.25rem;
}
.tippy-box[data-theme~='ptm-rich'] > .tippy-arrow {
  color: var(--surface);
}
.tippy-box[data-theme~='ptm-rich'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--surface);
}
.tippy-box[data-theme~='ptm-rich'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--surface);
}
.tippy-box[data-theme~='ptm-rich'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: var(--surface);
}
.tippy-box[data-theme~='ptm-rich'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: var(--surface);
}

/* ─── Info icon tooltip (content styles for Tippy rich) ────── */
.info-tooltip-wrap {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.info-icon {
  font-size: 18px !important;
  color: var(--muted);
  cursor: help;
  transition: color 0.15s;
  vertical-align: middle;
}
.info-icon:hover {
  color: var(--accent);
}
.info-tooltip { display: none; }
.info-tooltip-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.info-tooltip-body {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}
.info-tooltip-highlight {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  letter-spacing: 0.01em;
  margin-top: 0.1rem;
}

/* ─── Pastes layout (sidebar + list) ───────────────────────── */
.pastes-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  gap: 2rem;
  align-items: start;
}

.pastes-sidebar {
  position: sticky;
  top: calc(var(--header-h, 56px) + 1rem);
}

.sidebar-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

.sidebar-list { list-style: none; }

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: var(--muted);
  font-size: 0.85rem;
  user-select: none;
}
.sidebar-item:hover { background: var(--surface); color: var(--text); }
.sidebar-item.active { background: var(--surface); color: var(--text); font-weight: 600; }
.sidebar-item.active .sidebar-count { background: var(--accent); color: #fff; }

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.mobile-filter-count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.4rem;
  min-width: 1.1rem;
  text-align: center;
  line-height: 1.25rem;
  margin-left: 0.25rem;
}
.filter-backdrop { display: none; }
.mobile-filter-header { display: none; }

/* Mobile-only display toggles for the filter button */
@media (max-width: 640px) {
  .mobile-filter-btn { display: inline-flex; }
  .mobile-filter-header { display: flex; }
}

.sidebar-item-pinned {
  color: var(--accent);
  font-weight: 600;
}
.sidebar-item-pinned .sidebar-count {
  background: rgba(192, 124, 76, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-domain {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-check:hover { background: var(--surface); color: var(--text); }
.sidebar-check input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }
.sidebar-expand-btn {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.3rem 0.5rem;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.sidebar-expand-btn:hover { background: var(--surface); }

/* ─── Pastes list ───────────────────────────────────────────── */
.pastes-list {
  min-width: 0;
}

.pastes-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.pastes-list-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}
.pastes-search-wrap { flex: 1; max-width: 320px; }
.pastes-search {
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pastes-search::placeholder { color: var(--muted); }
.pastes-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pastes-list ul { list-style: none; }

/* Scheduled pastes */
.scheduled-pastes-list {
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;
}
.scheduled-paste {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: var(--bg-sub);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.scheduled-paste:hover {
  opacity: 0.85;
}
.scheduled-paste .paste-link-icon {
  color: var(--muted);
}
.scheduled-paste .paste-title {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scheduled-paste .date {
  font-size: 0.75rem;
  color: var(--muted);
}
.scheduled-paste .sent-badge {
  color: var(--muted);
  opacity: 0.6;
}
.scheduled-rec {
  font-size: 0.7rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.scheduled-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.6;
  transition: color 0.15s, opacity 0.15s;
}
.scheduled-cancel:hover {
  color: var(--danger);
  opacity: 1;
}

.pastes-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.18s, transform 0.15s;
  list-style: none;
  overflow: visible;
}
.pastes-list li:hover {
  border-color: var(--muted);
  transform: translateX(2px);
}
.pastes-list li .paste-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.pastes-list li .paste-link:hover {
  text-decoration: none;
  color: var(--text);
}
.pastes-list li[data-received="1"],
.pastes-list li[data-received-email="1"] {
  border-left: 3px solid var(--accent);
}

.quick-delete {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: none;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  font-size: 0.65rem;
  line-height: 1;
  border: none;
  border-radius: var(--r-sm);
  background: var(--danger);
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.quick-delete:hover { opacity: 1; }
.pastes-list li:hover .quick-delete { display: flex; align-items: center; justify-content: center; }
.pastes-list li .paste-link:hover { text-decoration: none; }

.pastes-list li a { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.pastes-list li a:hover { color: var(--accent); text-decoration: none; }


.sent-badge {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
  font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0, 'GRAD' 0;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sent-badge:hover {
  opacity: 1;
}
.sent-email { color: var(--accent); }
.sent-phone { color: var(--accent); }
.sent-telegram { color: #0088cc; }

/* Received badges — non-interactive provenance indicators */
.received-badge {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.65;
  font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0, 'GRAD' 0;
  user-select: none;
  cursor: default;
}
.received-telegram { color: #0088cc; }

/* Direction + channel indicators: ↙ mail telegram  /  ↗ mail phone */
.channel-badge,
.channel-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  user-select: none;
  cursor: default;
  opacity: 0.8;
}
.channel-badge .material-symbols-outlined,
.channel-group .material-symbols-outlined {
  font-size: 0.95rem;
  line-height: 1;
  font-variation-settings: 'opsz' 20, 'wght' 500, 'FILL' 0, 'GRAD' 0;
}
.channel-badge .ch-arrow,
.channel-group .ch-arrow { color: var(--muted); margin-right: 1px; }
.channel-badge .ch-email,    .channel-group .ch-email    { color: var(--accent); }
.channel-badge .ch-phone,    .channel-group .ch-phone    { color: var(--accent); }
.channel-badge .ch-telegram, .channel-group .ch-telegram { color: #0088cc; }
.channel-badge .ch-pastetome,
.channel-group .ch-pastetome { width: 0.95rem; height: 0.95rem; display: inline-block; vertical-align: middle; }
.paste-source-badges .ch-pastetome { width: 1.1rem; height: 1.1rem; }

/* "Compressing…" badge for pastes with a pending video transcode */
.processing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-left: 0.5rem;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.55; } }

/* Indeterminate upload bar — shown after bytes finish sending while the
   server finishes receiving/processing, so users don't see a stuck "100%". */
#uploadBar.upload-bar-indeterminate {
  width: 100% !important;
  background: var(--accent) !important;
  position: relative;
  overflow: hidden;
  transition: none !important;
}
#uploadBar.upload-bar-indeterminate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: uploadShimmer 1.3s linear infinite;
}
@keyframes uploadShimmer {
  from { background-position: -30% 0; }
  to   { background-position: 130% 0; }
}

/* Overlay badge on a video thumbnail that's still being compressed */
.thumb-processing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  border-radius: inherit;
  animation: pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
/* Prevent lightGallery from opening on processing tiles */
.gallery-item.processing { pointer-events: none; }

/* ── Bulk select ─────────────────────────────────────────────── */
.bulk-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
}
.bulk-select-all {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.bulk-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.pagination-info {
  font-size: 0.8rem;
  color: var(--muted);
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pagination-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.pagination-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination-dots {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 0.25rem;
}

/* ── Quick Send ──────────────────────────────────────────────── */
.quick-send-page {
  max-width: 560px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
}
.quick-send-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.quick-send-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}
.quick-send-targets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.target-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.target-btn:hover {
  border-color: var(--accent);
}
.target-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.target-btn .material-symbols-outlined {
  font-size: 1.1rem;
}
.target-btn-icon {
  padding: 0.6rem;
  gap: 0;
}
.target-btn-icon .material-symbols-outlined {
  font-size: 1.35rem;
}
.quick-send-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.18s;
}
.quick-send-form textarea:focus {
  border-color: var(--accent);
}
.textarea-wrap {
  position: relative;
}
.emoji-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  padding: 0.2rem;
}
.emoji-toggle:hover { opacity: 1; }
.emoji-picker {
  position: absolute;
  top: 2.5rem;
  right: 0;
  z-index: 100;
  width: 320px;
  max-height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.emoji-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.emoji-tab {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.emoji-tab:hover { color: var(--text); }
.emoji-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.emoji-search-wrap {
  padding: 0.4rem;
  flex-shrink: 0;
}
.emoji-search {
  width: 100%;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.emoji-search:focus { border-color: var(--accent); }
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 0.3rem;
  overflow-y: auto;
  max-height: 220px;
}
.emoji-grid.hidden { display: none; }
.emoji-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s;
  line-height: 1;
}
.emoji-btn:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.quick-send-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0 1rem;
  font-size: 0.8rem;
}
.char-count { color: var(--muted); }
.sms-warning { color: var(--muted); }
.sms-warning.over { color: var(--danger); font-weight: 600; }
/* ── Drop zone ───────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  margin-bottom: 1rem;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.drop-zone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.drop-zone-icon { font-size: 1.8rem; }
.drop-zone-hint { font-size: 0.75rem; opacity: 0.7; }
.drop-zone-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  width: 100%;
}
.drop-zone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.5rem;
  background: var(--bg-sub);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.drop-zone-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.drop-zone-file-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.72rem;
  color: var(--text);
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.drop-zone-file-info span:first-child {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.drop-zone-file-info span:last-child {
  color: var(--muted);
  font-size: 0.75rem;
}
.drop-zone-remove {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--danger);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.drop-zone-remove:hover { background: var(--danger); color: #fff; }

.quick-send-form .btn { width: 100%; }
.quick-send-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.quick-send-result.success {
  background: color-mix(in srgb, #2e7d32 10%, transparent);
  color: #2e7d32;
}
.quick-send-result.error {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

.paste-info {
  flex: 1;
  min-width: 0;
}
.paste-title {
  font-weight: 500;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}
.paste-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.paste-meta-row .date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.paste-badges {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.paste-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paste-favicon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.85;
}
.paste-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.paste-doc-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(0,0,0,0.1);
  text-transform: uppercase;
}
.paste-doc-thumb-multi {
  background: #5f6368;
  color: #fff;
}
.paste-doc-thumb-multi svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}
.paste-document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 560px;
  margin: 0 auto 1rem;
}
/* Compact document card for use inside a gallery grid */
.gallery-doc-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.gallery-doc-item .gallery-doc-tile {
  width: 100%;
  height: 180px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  border: 1px solid rgba(0,0,0,0.08);
}
.gallery-doc-item .gallery-doc-tile:hover {
  transform: scale(1.02);
  opacity: 0.92;
}
.gallery-doc-item .gallery-doc-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.gallery-doc-item .gallery-doc-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

/* Single-file document view: large tile + filename below */
.paste-document-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto 1rem;
}
.paste-document-single .paste-document-tile {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  border: 1px solid rgba(0,0,0,0.08);
}
.paste-document-single .paste-document-tile:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.paste-document-single .paste-document-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  word-break: break-all;
}
.paste-document-single .paste-document-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.paste-doc-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.paste-doc-info {
  flex: 1;
  min-width: 0;
}
.paste-doc-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.paste-doc-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.paste-thumb-stack {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}
.paste-thumb-count {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  line-height: 1;
}

.empty { color: var(--muted); font-size: 0.9rem; }
.empty-filter {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.empty-filter-icon {
  font-size: 2.75rem !important;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}
.empty-filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.empty-filter-sub {
  font-size: 0.85rem;
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 2rem 0;
}
.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.empty-state-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.empty-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.empty-state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.empty-state-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.empty-state-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.empty-state-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.empty-state-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.empty-state-card a:hover {
  text-decoration: underline;
}

/* ─── Paste info card ──────────────────────────────────────── */
.paste-info-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #5b8fb9;
  border-radius: 10px;
  padding: 1.2rem 2.5rem 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}
.paste-info-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  color: #5b8fb9;
}
.paste-info-title .material-symbols-outlined {
  color: #5b8fb9;
}
.paste-info-sub {
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.paste-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.paste-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  flex-wrap: wrap;
}
.paste-info-icon {
  font-size: 18px;
  color: #5b8fb9;
  flex-shrink: 0;
}
.paste-info-action {
  font-weight: 500;
  white-space: nowrap;
}
.paste-info-dest {
  color: #5b8fb9;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.paste-info-dest:hover {
  text-decoration: underline;
}
.paste-info-note {
  color: var(--muted);
  font-size: 0.8rem;
}
.paste-info-dismiss {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}
.paste-info-dismiss:hover {
  color: var(--text);
}

/* ─── Paste view ────────────────────────────────────────────── */
.paste-view {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.paste-meta { margin-bottom: 1.75rem; }

.paste-meta h1 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.paste-meta h1 .paste-link-icon {
  font-size: 1.4rem;
  color: var(--text);
}

.paste-meta .source { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.paste-source-badges { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.paste-source-badges .channel-badge .material-symbols-outlined { font-size: 1.1rem; }
.paste-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.paste-date-row .date { font-size: 0.78rem; color: var(--muted); margin-bottom: 0; }
.public-views {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.public-views .material-symbols-outlined {
  font-size: 0.9rem !important;
}
.paste-meta .date   { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.paste-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Force every button in the action row to identical dimensions */
.paste-actions .btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.4;
  height: 2rem;
}
.paste-actions .switch {
  margin-left: auto;
}
.paste-actions span:last-child {
  margin-left: 0;
}

.paste-image {
  display: block;
  max-width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.paste-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.gallery-item .paste-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.15s;
}
.gallery-item .paste-image:hover {
  transform: scale(1.02);
}
/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .switch-slider {
  background: var(--accent);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(16px);
}

.gallery-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}


.short-url-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
}
.short-url-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.short-url-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 0.75rem;
}
.short-url-dest {
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}
.short-url-dest a { color: var(--muted); }
.short-url-dest a:hover { color: var(--text); }

.paste-link-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0, 'GRAD' 0;
  user-select: none;
  line-height: 1;
}

.image-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.85rem;
}
.image-meta div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.image-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.image-meta dd {
  font-size: 0.85rem;
  color: var(--text);
}

.paste-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
footer a { color: var(--muted); text-decoration: underline; }
footer a:hover { color: var(--text); }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero          { animation: fadeUp 0.55s ease both; }
.steps-section { animation: fadeUp 0.55s ease 0.1s both; }
.auth-section  { animation: fadeUp 0.55s ease 0.15s both; }
.account-layout { animation: fadeUp 0.45s ease both; }
.pastes-layout { animation: fadeUp 0.45s ease both; }
.paste-view    { animation: fadeUp 0.45s ease both; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .hero-wrap   { padding: 4rem 1.25rem 3rem; }
  .hero        { flex-direction: column; }
  .hero-video { flex: none; width: 100%; }
  .steps       { grid-template-columns: 1fr; }
  .steps > .step-card:last-child:nth-child(3) { grid-column: auto; }
  .steps-section { padding: 0 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .alerts-promo { grid-template-columns: 1fr; }
  .features-section { padding: 0 1.25rem; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { padding: 1.5rem 1rem 0; position: static; }
  .account-page, .paste-view { padding: 1.5rem 1rem; }
  .pastes-layout {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
    /* Disable fadeUp animation on mobile — its transform creates a
       containing block that breaks position:fixed on the sheet below. */
    animation: none;
  }

  /* Edge-to-edge list cards on mobile — pull cards out to screen edges */
  .pastes-list li {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .pastes-list li:hover { transform: none; }
  .pastes-list-header { padding: 0 0.25rem; }

  /* Quick-delete overlay interferes with tap-to-open on mobile; disable it */
  .quick-delete,
  .pastes-list li:hover .quick-delete { display: none !important; }

  /* Sidebar becomes a bottom sheet on mobile — hidden until opened */
  .pastes-sidebar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 0.75rem 1.25rem 1.5rem;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 80;
    box-shadow: 0 -10px 25px -8px rgba(0,0,0,0.3);
  }
  .pastes-sidebar.mobile-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }

  .filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 70;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .filter-backdrop.mobile-open { display: block; opacity: 1; }

  .mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--bg);
    margin: -0.75rem -1.25rem 0.5rem;
    padding: 0.75rem 1.25rem 0.5rem;
    z-index: 2;
  }
  .mobile-filter-title { font-size: 1rem; font-weight: 600; margin: 0; }
  .mobile-filter-close {
    background: none; border: none; font-size: 1.75rem; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 0 0.5rem;
  }

  .sidebar-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .sidebar-item { flex-shrink: 0; }

  /* Redundant with sheet title — hide on mobile */
  .sidebar-heading-filter { display: none; }
  /* Tighter headings on mobile */
  .pastes-sidebar .sidebar-heading { margin-top: 0 !important; margin-bottom: 0.6rem; }
  .pastes-sidebar .sidebar-heading + .sidebar-check-group { margin-bottom: 1rem; }
  /* Breathing room between the sheet header and the first checkbox group */
  .sidebar-heading-filter + .sidebar-check-group { margin-top: 1.5rem; }

  /* Two-column grid for checkbox groups on mobile */
  .sidebar-check-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
  }
  .sidebar-check {
    padding: 0.4rem 0.6rem;
    margin-left: -0.6rem; /* align checkbox with column edge while keeping hover/focus inset */
  }

  .auth-card { padding: 1.5rem; }
}

@media (max-width: 768px) {
  .emoji-picker { width: 240px !important; right: -0.5rem !important; }
}
