/* ==========================================================================
   PASTE — Theme Palette Matched Exactly to Reference Swatches & Layout
   Gray:   #2B2D31
   Silver: #D9DADC
   Yellow: #FFC93C
   Font:   Inter (+ JetBrains Mono for paste content mode)
   ========================================================================== */

:root {
  --bg-gray: #2B2D31;
  --bg-gray-deep: #222428;
  --bg-gray-surface: #32353B;
  --bg-gray-hover: #3A3E45;
  --silver: #D9DADC;
  --silver-soft: rgba(217, 218, 220, 0.78);
  --silver-muted: rgba(217, 218, 220, 0.56);
  --silver-dim: rgba(217, 218, 220, 0.36);
  --silver-border: rgba(217, 218, 220, 0.14);
  --silver-surface: rgba(217, 218, 220, 0.08);
  --yellow: #FFC93C;
  --yellow-hover: #FFD45E;
  --yellow-glow: rgba(255, 201, 60, 0.32);
  --white: #FFFFFF;
  --danger: #FF6B6B;
  --danger-bg: rgba(255, 107, 107, 0.14);
  --success: #4ADE80;
  --success-bg: rgba(74, 222, 128, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-gray);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--yellow);
  color: var(--bg-gray);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ---------- Top Navbar (Matching Screenshot) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(43, 45, 49, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 218, 220, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--white);
  color: var(--bg-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-ext {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg-gray);
  background: var(--silver);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver-muted);
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

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

.btn-panda-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(217, 218, 220, 0.07);
  border: 1px solid rgba(255, 201, 60, 0.36);
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-panda-nav:hover {
  background: rgba(255, 201, 60, 0.14);
  border-color: var(--yellow);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-nav-text {
  background: none;
  border: none;
  color: var(--silver-soft);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-nav-text:hover {
  color: var(--white);
  background: var(--silver-surface);
}

.owner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver-dim);
}

.owner-dot.locked {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
}

.owner-dot.unlocked {
  background: var(--success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
}

.btn-pill-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--bg-gray);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-pill-yellow:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-pill-yellow:active {
  transform: translateY(0);
}

.btn-pill-silver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--silver);
  color: var(--bg-gray);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-pill-silver:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 218, 220, 0.18);
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--silver-surface);
  color: var(--silver);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-pill-ghost:hover {
  background: rgba(217, 218, 220, 0.14);
  color: var(--white);
  border-color: rgba(217, 218, 220, 0.28);
}

.btn-pill-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-pill-danger:hover {
  background: rgba(255, 107, 107, 0.24);
  border-color: var(--danger);
}

/* ---------- Hero Layout (Exact Match to Screenshot Proportions) ---------- */
.hero-section {
  padding: 42px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
}

.hero-grid.expanded {
  grid-template-columns: 1fr;
}

.hero-grid.expanded .hero-copy {
  display: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: rgba(217, 218, 220, 0.07);
  border: 1px solid var(--silver-border);
  color: var(--silver-soft);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 22px;
}

.eyebrow-tag {
  background: var(--silver);
  color: var(--bg-gray);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(2.55rem, 4.35vw, 3.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hl-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--bg-gray);
  padding: 0.02em 0.24em 0.06em;
  border-radius: 12px;
  line-height: 1.04;
  vertical-align: baseline;
}

.hero-subtitle {
  margin: 0 0 28px;
  color: var(--silver-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--bg-gray);
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  transition: all var(--transition);
  box-shadow: 0 10px 28px rgba(255, 201, 60, 0.22);
}

.btn-hero-cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 201, 60, 0.34);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.cta-micro {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.78;
}

.cta-main {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.palette-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.swatch-dots {
  display: inline-flex;
  align-items: center;
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-gray);
  margin-left: -7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.swatch-dot:first-child {
  margin-left: 0;
}

.swatch-dot.gray { background: #2B2D31; border-color: rgba(217, 218, 220, 0.35); }
.swatch-dot.silver { background: #D9DADC; }
.swatch-dot.yellow { background: #FFC93C; }

.proof-text {
  font-size: 12.5px;
  color: var(--silver-muted);
  line-height: 1.3;
}

.proof-text strong {
  color: var(--white);
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(217, 218, 220, 0.1);
  padding-top: 22px;
}

.stat-col {
  padding-right: 16px;
}

.stat-col + .stat-col {
  padding-left: 18px;
  border-left: 1px solid rgba(217, 218, 220, 0.12);
}

.stat-val {
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--silver-muted);
}

/* ---------- Silver Showcase Bezel + Dark Interactive Paste Studio ---------- */
.silver-showcase {
  background: linear-gradient(155deg, #D9DADC 0%, #C4C6CA 100%);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.silver-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 12px;
  color: var(--bg-gray);
}

.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-gray);
  box-shadow: 0 0 0 3px rgba(43, 45, 49, 0.14);
}

.showcase-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(43, 45, 49, 0.72);
}

.studio-card {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--silver);
  box-shadow: 0 18px 42px rgba(22, 23, 26, 0.38);
  border: 1px solid rgba(43, 45, 49, 0.18);
}

.studio-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.field-input,
.field-select {
  width: 100%;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-input::placeholder {
  color: var(--silver-dim);
}

.field-input:focus,
.field-select:focus,
.paste-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.14);
}

.btn-icon-square {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-icon-square:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.editor-wrap {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.editor-wrap.drag-over {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.25);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(43, 45, 49, 0.55);
  border-bottom: 1px solid rgba(217, 218, 220, 0.08);
}

.toolbar-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(217, 218, 220, 0.07);
  border: 1px solid rgba(217, 218, 220, 0.1);
  color: var(--silver-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.chip-btn:hover {
  background: rgba(217, 218, 220, 0.15);
  color: var(--white);
}

.editor-metrics {
  font-size: 11.5px;
  color: var(--silver-muted);
  font-variant-numeric: tabular-nums;
}

.paste-textarea {
  display: block;
  width: 100%;
  min-height: 248px;
  max-height: 540px;
  resize: vertical;
  background: transparent;
  border: none;
  padding: 14px 15px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.62;
  outline: none;
  tab-size: 4;
}

.paste-textarea.font-sans-mode {
  font-family: var(--font-sans);
  font-size: 14px;
}

.paste-textarea::placeholder {
  color: var(--silver-dim);
  font-family: var(--font-sans);
}

.hero-grid.expanded .paste-textarea {
  min-height: 360px;
}

.studio-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.option-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--silver-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-extra-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 218, 220, 0.09);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--silver-soft);
  cursor: pointer;
  user-select: none;
}

.toggle-check input {
  accent-color: var(--yellow);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.studio-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-gray-deep);
  border: 1px solid rgba(217, 218, 220, 0.12);
  border-radius: 14px;
}

.dock-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--silver-soft);
}

.dock-badge {
  background: rgba(255, 201, 60, 0.16);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.dock-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.owner-lock-banner,
.auth-gate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(255, 201, 60, 0.12);
  border: 1px solid rgba(255, 201, 60, 0.35);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 13px;
}

.auth-gate-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
}

.auth-gate-text span {
  font-size: 12px;
  color: var(--silver-soft);
}

.auth-gate-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  background: var(--silver-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--bg-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Auth Modal & 2-Step OTP Controls ---------- */
.auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.auth-tab {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--silver-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--yellow);
  color: var(--bg-gray);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-full {
  width: 100%;
  padding: 12px 18px;
}

.btn-link-muted {
  background: none;
  border: none;
  color: var(--silver-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 0;
  text-align: center;
  transition: color var(--transition);
}

.btn-link-muted:hover {
  color: var(--yellow);
}

.field-hint {
  font-size: 11.5px;
  color: var(--silver-muted);
  line-height: 1.35;
}

.field-hint.error {
  color: var(--danger);
}

.field-hint.ok {
  color: var(--success);
}

.otp-code-field {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.35em;
  padding: 12px 14px;
  color: var(--yellow);
}

.otp-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.admin-mail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mail-log-box {
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--silver-soft);
  max-height: 130px;
  overflow: auto;
  white-space: pre-wrap;
}

/* ---------- Dedicated Paste Viewer Section ---------- */
.viewer-section {
  padding: 28px 0 42px;
}

.viewer-silver-frame {
  background: linear-gradient(155deg, #D9DADC 0%, #C2C5C9 100%);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.viewer-card {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--silver);
  box-shadow: 0 20px 44px rgba(15, 16, 18, 0.38);
}

.viewer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--silver-border);
}

.viewer-title-wrap {
  min-width: 0;
  flex: 1 1 320px;
}

.viewer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-yellow {
  background: var(--yellow);
  color: var(--bg-gray);
}

.badge-silver {
  background: var(--silver);
  color: var(--bg-gray);
}

.badge-dark {
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  color: var(--silver-soft);
}

.badge-burn {
  background: rgba(255, 107, 107, 0.16);
  border: 1px solid rgba(255, 107, 107, 0.38);
  color: #FF8A8A;
}

.viewer-title {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  word-break: break-word;
}

.viewer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--silver-muted);
}

.viewer-meta strong {
  color: var(--white);
  font-weight: 600;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.viewer-tools-left,
.viewer-tools-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search-in-paste {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-in-paste input {
  width: 210px;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  color: var(--white);
  font-size: 12.5px;
  outline: none;
}

.search-in-paste input:focus {
  border-color: var(--yellow);
}

.search-match-count {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--yellow);
  font-weight: 600;
}

.code-surface {
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 68vh;
}

.code-lines {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #F4F5F7;
}

.code-lines.sans-font {
  font-family: var(--font-sans);
  font-size: 14.5px;
}

.code-lines td.line-num {
  width: 1%;
  min-width: 48px;
  padding: 0 14px;
  text-align: right;
  user-select: none;
  color: var(--silver-dim);
  border-right: 1px solid rgba(217, 218, 220, 0.08);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

.code-lines.hide-nums td.line-num {
  display: none;
}

.code-lines td.line-text {
  padding: 0 16px;
  white-space: pre;
  vertical-align: top;
}

.code-lines.wrap-lines td.line-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.code-lines tr:first-child td {
  padding-top: 12px;
}

.code-lines tr:last-child td {
  padding-bottom: 12px;
}

.code-lines tr.match-row td {
  background: rgba(255, 201, 60, 0.08);
}

.code-lines mark.find-hl {
  background: var(--yellow);
  color: var(--bg-gray);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(217, 218, 220, 0.05);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
}

.share-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}

.share-url-input {
  width: 100%;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
}

/* ---------- Gate Cards (Password / Burn / Not Found) ---------- */
.gate-card {
  padding: 46px 24px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 201, 60, 0.14);
  border: 1px solid rgba(255, 201, 60, 0.35);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gate-card h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gate-card p {
  margin: 0 0 20px;
  color: var(--silver-soft);
  font-size: 14px;
}

.gate-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.gate-form .field-input {
  max-width: 260px;
}

/* ---------- Recent Pastes Section ---------- */
.section-block {
  padding: 36px 0 56px;
  border-top: 1px solid rgba(217, 218, 220, 0.08);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 6px 0 0;
  color: var(--silver-muted);
  font-size: 14px;
}

.tabs-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
}

.nav-link-community {
  color: var(--yellow);
  font-weight: 600;
}

.nav-link-community:hover {
  color: var(--yellow-hover);
}

.community-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.12) 0%, rgba(217, 218, 220, 0.06) 100%);
  border: 1px solid rgba(255, 201, 60, 0.35);
  border-radius: var(--radius-lg);
}

.community-banner-info {
  flex: 1 1 320px;
}

.community-badge-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.community-banner-desc {
  margin: 0;
  color: var(--silver-soft);
  font-size: 13.5px;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--silver-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--yellow);
  color: var(--bg-gray);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-pill);
  padding: 10px 14px 10px 40px;
  color: var(--white);
  font-size: 13.5px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--yellow);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--silver-border);
  background: var(--silver-surface);
  color: var(--silver-soft);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--silver);
  color: var(--bg-gray);
  border-color: var(--silver);
}

.pastes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.paste-card {
  background: var(--bg-gray-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.paste-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 201, 60, 0.45);
  box-shadow: var(--shadow-soft);
}

.paste-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.paste-card-title {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  word-break: break-word;
}

.paste-card-title a:hover {
  color: var(--yellow);
}

.paste-card-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--silver-muted);
}

.paste-snippet {
  margin: 0;
  padding: 10px 12px;
  background: var(--bg-gray-deep);
  border: 1px solid rgba(217, 218, 220, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--silver-soft);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 76px;
  overflow: hidden;
}

.paste-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.paste-card-stats {
  font-size: 12px;
  color: var(--silver-muted);
  font-variant-numeric: tabular-nums;
}

.paste-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--silver-border);
  background: var(--bg-gray-deep);
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}

.mini-btn:hover {
  border-color: var(--silver);
  color: var(--white);
}

.mini-btn.yellow {
  background: var(--yellow);
  color: var(--bg-gray);
  border-color: var(--yellow);
}

.mini-btn.yellow:hover {
  background: var(--yellow-hover);
}

.mini-btn.silver {
  background: var(--silver);
  color: var(--bg-gray);
  border-color: var(--silver);
}

.mini-btn.silver:hover {
  background: var(--white);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-gray-deep);
  border: 1px dashed var(--silver-border);
  border-radius: var(--radius-lg);
  color: var(--silver-muted);
}

/* ---------- API & Export Cards ---------- */
.api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.api-card {
  background: var(--bg-gray-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.api-card .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--bg-gray);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}

.api-card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.api-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--silver-soft);
}

.code-pill {
  display: block;
  padding: 9px 12px;
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--yellow);
  overflow-x: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(217, 218, 220, 0.08);
  padding: 28px 0;
  color: var(--silver-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--yellow);
}

/* ---------- Modals (Panda Tools VIP Modal + Lookup + Owner + Edit) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 19, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 180ms ease-out;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-gray);
  border: 1px solid rgba(217, 218, 220, 0.18);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  animation: popIn 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-card.wide {
  max-width: 720px;
}

.modal-card.vip-modal {
  border: 1px solid rgba(255, 201, 60, 0.45);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 42px rgba(255, 201, 60, 0.14);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--silver-surface);
  border: 1px solid var(--silver-border);
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--silver);
  color: var(--bg-gray);
}

.vip-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.vip-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--silver);
  color: var(--bg-gray);
  font-size: 12px;
  font-weight: 800;
}

.vip-tag {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 201, 60, 0.16);
  border: 1px solid rgba(255, 201, 60, 0.4);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.modal-desc {
  margin: 0 0 18px;
  color: var(--silver-soft);
  font-size: 14px;
  line-height: 1.58;
}

.vip-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.vip-perk {
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-perk span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.btn-vip-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--bg-gray);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 0 26px rgba(255, 201, 60, 0.42);
  transition: all var(--transition);
  margin-bottom: 10px;
}

.btn-vip-cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255, 201, 60, 0.58);
}

.btn-vip-dismiss {
  width: 100%;
  background: transparent;
  border: 1px solid var(--silver-border);
  color: var(--silver-soft);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-vip-dismiss:hover {
  background: var(--silver-surface);
  color: var(--white);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  background: var(--bg-gray-deep);
  border: 1px solid var(--silver-border);
  border-left: 4px solid var(--yellow);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: slideUp 180ms ease-out;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .studio-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .studio-head {
    grid-template-columns: 1fr;
  }

  .studio-head .btn-icon-square {
    display: none;
  }

  .pastes-grid {
    grid-template-columns: 1fr;
  }

  .vip-perks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .btn-panda-nav .panda-label-full {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-col + .stat-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(217, 218, 220, 0.1);
    padding-top: 12px;
  }

  .studio-options {
    grid-template-columns: 1fr;
  }
}
