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

: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; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(20,23,32,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.88);
}

.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: 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; }

.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--text); text-decoration: none; }
.site-header nav a.active { color: var(--accent); }

/* Sign out link is subtler than other nav items */
.site-header nav a[href="#"]:last-child { color: var(--muted); font-size: 0.82rem; }
.site-header nav a[href="#"]:last-child:hover { color: var(--danger); }

/* ─── Nav dropdown ───────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.nav-arrow {
  font-size: 12px;
  vertical-align: text-bottom;
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform 0.25s;
  font-variation-settings: 'opsz' 20, 'wght' 300, 'FILL' 0, 'GRAD' 0;
  line-height: 1;
  margin-left: 2px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  min-width: 130px;
  z-index: 300;
}
.nav-dropdown-menu-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text) !important;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-sub);
  color: var(--accent) !important;
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text) !important;
  }
  .nav-arrow {
    display: inline;
    font-size: 0.65em;
    transition: transform 0.25s;
  }
  .nav-dropdown.open .nav-arrow {
    transform: rotate(90deg);
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    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-inner {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem !important;
    font-size: 0.9rem !important;
    color: var(--muted) !important;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }
  .nav-dropdown-menu a:hover {
    background: none;
    color: var(--accent) !important;
  }
}

/* ─── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  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); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .site-header nav.open { display: flex; }
  .site-header nav > a,
  .site-header nav > div {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
  }
  .site-header nav > a:last-child,
  .site-header nav > div:last-child { border-bottom: none; }
  .site-header nav > a { color: var(--text); display: block; text-align: left !important; }
  .site-header nav > a:hover { color: var(--accent); text-decoration: none; }
  .site-header nav > a.active { color: var(--accent); }
  .site-header nav { align-items: stretch !important; text-align: left; }
}

/* ─── 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: none;
  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-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 Carousel ─────────────────────────────────── */
.hero-carousel {
  flex: 0 0 420px;
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.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 7rem;
  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;
}

/* ── Privacy page ────────────────────────────────────────────── */
.privacy-page {
  max-width: 720px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
  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;
  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 7rem;
  padding: 0 2rem;
  animation: fadeUp 0.55s ease 0.15s both;
}

.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;
}

/* ─── 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;
}

/* ─── Info icon tooltip ─────────────────────────────────────── */
.info-tooltip-wrap {
  position: relative;
  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;
  flex-direction: column;
  gap: 0.35rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: 250px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 100;
  white-space: normal;
}
.info-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}
.info-tooltip-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.info-tooltip-body {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.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;
}
.info-tooltip-wrap:hover .info-tooltip {
  display: flex;
}

/* ─── 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; }

.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; }

.pastes-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.18s, transform 0.15s;
}
.pastes-list li:hover {
  border-color: var(--muted);
  transform: translateX(2px);
}
.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 a { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.pastes-list li a:hover { color: var(--accent); text-decoration: none; }

.paste-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.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); }

/* ── 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;
}
.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-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.drop-zone-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.drop-zone-file-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text);
  min-width: 0;
}
.drop-zone-file-info span:first-child {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.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-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}
.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: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.pastes-list .date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

.empty { color: var(--muted); font-size: 0.9rem; }

.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; }
.paste-meta .date   { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }

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

.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-carousel { flex: none; width: 100%; height: 240px; }
  .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; }
  .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: 1.5rem 1rem;
  }
  .pastes-sidebar { position: static; }
  .sidebar-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .sidebar-item { flex-shrink: 0; }
  .auth-card { padding: 1.5rem; }
}
