/* 0XSHOP · Pastebin Chiffré Zero-Knowledge & Profil d'Analyste */
.paste-page {
  max-width: 1260px;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.paste-hero {
  max-width: 860px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.paste-hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.06em;
  margin: .8rem 0 1.2rem;
}

.paste-hero h1 span {
  color: var(--accent, #a5f35a);
}

.paste-security-banner {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid rgba(165, 243, 90, .26);
  background: rgba(165, 243, 90, .06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  text-align: left;
  line-height: 1.5;
  font-size: .95rem;
  margin-top: 1.2rem;
}

.paste-security-banner .banner-icon {
  font-size: 1.5rem;
}

/* =========================================================
   CYBER TICKER DÉFILANT (Notes récentes en haut)
   ========================================================= */
.paste-ticker-container {
  background: #080c0a;
  border: 1px solid rgba(165, 243, 90, .25);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(165, 243, 90, .14);
  color: var(--accent, #a5f35a);
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: .8rem;
  padding: .75rem 1rem;
  white-space: nowrap;
  letter-spacing: .06em;
  border-right: 1px solid rgba(165, 243, 90, .2);
  z-index: 2;
}

.ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #a5f35a);
  box-shadow: 0 0 8px var(--accent, #a5f35a);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: .4; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: ticker-slide 32s linear infinite;
  padding-left: 100%;
}

.paste-ticker-container:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line, #252b2a);
  padding: .3rem .75rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: .85rem;
  font-family: var(--font-mono, monospace);
  transition: all .15s ease;
  cursor: pointer;
}

.ticker-item:hover {
  border-color: var(--accent, #a5f35a);
  background: rgba(165, 243, 90, .1);
  color: #fff;
}

.ticker-item-badge {
  font-size: .7rem;
  background: rgba(165, 243, 90, .2);
  color: var(--accent, #a5f35a);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-weight: 700;
}

.ticker-item-views {
  color: #5af3d8;
  font-size: .75rem;
}

.ticker-item-time {
  color: var(--muted, #a1aaa5);
  font-size: .75rem;
}

/* =========================================================
   LAYOUT DASHBOARD MULTI-COLONNES (Main + Sidebar de flux)
   ========================================================= */
.paste-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.8rem;
  align-items: start;
}

.paste-main-column {
  min-width: 0;
}

.paste-sidebar-column {
  min-width: 0;
}

/* =========================================================
   NAVIGATION TABS
   ========================================================= */
.paste-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  background: var(--surface, #111514);
  border: 1px solid var(--line, #252b2a);
  border-radius: 14px;
  padding: .35rem;
  margin: 1.5rem 0;
  max-width: fit-content;
}

.paste-nav-tabs button {
  background: transparent;
  border: none;
  color: var(--muted, #a1aaa5);
  padding: .65rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.paste-nav-tabs button:hover {
  color: var(--text, #fff);
}

.paste-nav-tabs button[aria-pressed="true"] {
  background: rgba(165, 243, 90, .14);
  color: var(--accent, #a5f35a);
}

/* =========================================================
   PANELS & FORM
   ========================================================= */
.paste-panel {
  border: 1px solid var(--line, #252b2a);
  background: var(--surface, #111514);
  border-radius: 20px;
  padding: clamp(1.2rem, 3.5vw, 2rem);
  margin-bottom: 2rem;
}

.paste-form label {
  display: block;
  font-weight: 650;
  margin: 1rem 0 .45rem;
}

.paste-form input[type="text"],
.paste-form input[type="password"],
.paste-form select,
.paste-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line, #303735);
  border-radius: 12px;
  background: #080b0a;
  color: inherit;
  padding: .85rem 1rem;
  font: inherit;
}

.paste-form textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-mono, monospace);
  font-size: .95rem;
}

.paste-form input:focus-visible,
.paste-form select:focus-visible,
.paste-form textarea:focus-visible {
  outline: 2px solid var(--accent, #a5f35a);
  outline-offset: 2px;
}

.paste-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.paste-visibility-box {
  background: #080d0a;
  border: 1px solid var(--line, #252b2a);
  border-radius: 12px;
  padding: .8rem 1rem;
  margin: 1rem 0 .5rem;
}

.paste-visibility-options {
  display: flex;
  gap: 1.5rem;
  margin-top: .4rem;
}

.paste-visibility-options label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  font-size: .9rem;
}

.paste-visibility-options input[type="radio"] {
  accent-color: var(--accent, #a5f35a);
}

.paste-signature-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .8rem;
  font-size: .9rem;
  color: var(--text, #fff);
  cursor: pointer;
}

.paste-signature-toggle input {
  accent-color: var(--accent, #a5f35a);
  width: 16px;
  height: 16px;
}

.paste-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted, #a1aaa5);
  font-size: .85rem;
  margin-top: .5rem;
}

.paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.paste-status {
  min-height: 1.6em;
  font-weight: 600;
  margin: .8rem 0;
  transition: color .2s ease;
}

.paste-status.success { color: var(--accent, #a5f35a); }
.paste-status.error { color: #ff6b6b; }

/* Share Bar */
.paste-share-bar {
  background: #090e0c;
  border: 1px solid rgba(165, 243, 90, .3);
  border-radius: 14px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.paste-share-bar label {
  font-weight: 650;
  display: block;
  margin-bottom: .6rem;
  color: var(--accent, #a5f35a);
}

.share-input-group {
  display: flex;
  gap: .5rem;
}

.share-input-group input {
  flex: 1;
  background: #000;
  border: 1px solid var(--line, #303735);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: .9rem;
}

/* =========================================================
   SIDEBAR DU FLUX EN DIRECT (Pastes publics & Compteurs)
   ========================================================= */
.paste-sidebar {
  background: var(--surface, #111514);
  border: 1px solid var(--line, #252b2a);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line, #252b2a);
}

.sidebar-title-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: .02em;
}

.sidebar-counter-tag {
  background: rgba(165, 243, 90, .15);
  color: var(--accent, #a5f35a);
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 10px;
  font-family: var(--font-mono, monospace);
}

.sidebar-filter-input {
  width: 100%;
  background: #080b0a;
  border: 1px solid var(--line, #303735);
  border-radius: 10px;
  color: #fff;
  padding: .5rem .8rem;
  font-size: .85rem;
}

.sidebar-filter-input:focus-visible {
  outline: 2px solid var(--accent, #a5f35a);
}

.stream-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 640px;
  overflow-y: auto;
  padding-right: .2rem;
}

.stream-card {
  background: #0a0e0c;
  border: 1px solid var(--line, #252b2a);
  border-radius: 12px;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: all .15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.stream-card:hover {
  border-color: var(--accent, #a5f35a);
  background: rgba(165, 243, 90, .04);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.stream-card-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
}

.stream-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent, #a5f35a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  overflow: hidden;
  background: #050807;
  flex-shrink: 0;
}

.stream-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.stream-card-name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.stream-card-title {
  font-size: .92rem;
  font-weight: 650;
  color: #e5ece8;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted, #a1aaa5);
  margin-top: .15rem;
}

.stream-card-syntax {
  background: rgba(255, 255, 255, .08);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.stream-card-views {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: #5af3d8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

/* =========================================================
   STYLES PRO ANONYME · FLUX & VUE SOUVERAINE
   ========================================================= */
.stream-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.stream-card-syntax {
  font-size: .68rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--accent, #a5f35a);
  background: rgba(165, 243, 90, 0.12);
  border: 1px solid rgba(165, 243, 90, 0.3);
  padding: .15rem .45rem;
  border-radius: 6px;
  letter-spacing: .04em;
}

.stream-card-time {
  font-size: .72rem;
  color: var(--muted, #a1aaa5);
  font-family: var(--font-mono, monospace);
}

.stream-card-tag {
  font-size: .7rem;
  font-family: var(--font-mono, monospace);
  color: #5af3d8;
  background: rgba(90, 243, 216, 0.1);
  padding: .15rem .45rem;
  border-radius: 6px;
}

.view-anon-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-family: var(--font-mono, monospace);
  color: #5af3d8;
  background: rgba(90, 243, 216, 0.12);
  border: 1px solid rgba(90, 243, 216, 0.3);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* View panel contents */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line, #252b2a);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.view-header h2 {
  font-size: 1.5rem;
  margin: 0 0 .3rem;
}

.view-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted, #a1aaa5);
  font-size: .85rem;
}

.view-syntax-badge {
  background: rgba(165, 243, 90, .15);
  color: var(--accent, #a5f35a);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .75rem;
  font-weight: 700;
}

.view-views-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(90, 243, 216, .12);
  border: 1px solid rgba(90, 243, 216, .3);
  color: #5af3d8;
  border-radius: 6px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.view-content-wrapper pre {
  background: #080b0a;
  border: 1px solid var(--line, #303735);
  border-radius: 12px;
  padding: 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono, monospace);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.view-markdown {
  background: #080b0a;
  border: 1px solid var(--line, #303735);
  border-radius: 12px;
  padding: 1.5rem;
  line-height: 1.7;
}

/* Lab list */
.lab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.lab-list {
  display: grid;
  gap: 1rem;
}

.lab-card {
  background: #090e0c;
  border: 1px solid var(--line, #252b2a);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .15s ease;
}

.lab-card:hover {
  border-color: rgba(165, 243, 90, .4);
}

.lab-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lab-card-badge {
  font-size: .75rem;
  padding: .15rem .45rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
}

.lab-card-preview {
  color: var(--muted, #a1aaa5);
  font-size: .9rem;
  margin: 0;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-card-actions {
  display: flex;
  gap: .6rem;
  margin-top: .4rem;
}

.button.text-button {
  background: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  padding: .4rem .6rem;
  font-size: .85rem;
}

.button.text-button:hover {
  text-decoration: underline;
}

@media(max-width: 980px) {
  .paste-layout-grid {
    grid-template-columns: 1fr;
  }
  .paste-sidebar {
    position: static;
  }
}

@media(max-width: 800px) {
  .analyst-profile-grid {
    grid-template-columns: 1fr;
  }
  .badge-selector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 640px) {
  .paste-form-row { grid-template-columns: 1fr; }
  .share-input-group { flex-direction: column; }
  .paste-actions { flex-direction: column; }
  .paste-actions button { width: 100%; justify-content: center; }
  .avatar-selector-grid { grid-template-columns: repeat(3, 1fr); }
  .badge-selector-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    transform: none;
    overflow-x: auto;
  }
}
