/* ─── PasteBin Design System ─────────────────────────────────────────── */
:root {
  --bg-main: #0c0f17;
  --bg-card: rgba(22, 28, 45, 0.75);
  --bg-card-hover: rgba(30, 39, 63, 0.85);
  --bg-input: rgba(15, 20, 33, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(139, 92, 246, 0.4);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-fire: #f97316;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(249, 115, 22, 0.06) 0%, transparent 40%),
    radial-gradient(circle at center, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(12, 15, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateX(-2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fire));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
  color: #fff;
  font-size: 1.1em;
}

.brand-name {
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

/* ─── Main Content ───────────────────────────────────────────────────── */
.main-content {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 35px 20px 60px;
  flex: 1;
}

/* ─── Creator Card ───────────────────────────────────────────────────── */
.card-paste {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: fade-in 0.3s ease-out;
}

.card-paste::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-fire));
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Tabs ───────────────────────────────────────────────────────────── */
.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 20, 33, 0.4);
}

.tab-btn {
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  position: relative;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.tab-content {
  padding: 24px;
}

/* ─── Text Editor ────────────────────────────────────────────────────── */
.paste-textarea {
  width: 100%;
  min-height: 320px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.94em;
  line-height: 1.6;
  padding: 16px;
  outline: none;
  resize: vertical;
  transition: var(--transition-fast);
}

.paste-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ─── Image Upload Zone ──────────────────────────────────────────────── */
.image-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 50px 20px;
  text-align: center;
  background: rgba(15, 20, 33, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.dropzone-icon {
  font-size: 3.2em;
  color: var(--accent-purple);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.image-dropzone:hover .dropzone-icon {
  transform: translateY(-4px);
}

.image-preview-container {
  display: none;
  margin-top: 20px;
  text-align: center;
}

.image-preview-img {
  max-width: 100%;
  max-height: 340px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.image-preview-info {
  margin-top: 10px;
  font-size: 0.88em;
  color: var(--text-muted);
}

/* ─── Options Toolbar ────────────────────────────────────────────────── */
.options-toolbar {
  padding: 20px 24px;
  background: rgba(15, 20, 33, 0.6);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.options-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: var(--text-muted);
}

.option-select,
.option-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9em;
  outline: none;
  transition: var(--transition-fast);
}

.option-select:focus,
.option-input:focus {
  border-color: var(--accent-purple);
}

/* Burn switch styling */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--text-main);
}

.switch-label input[type="checkbox"] {
  accent-color: var(--accent-fire);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.96em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  filter: brightness(1.1);
}

/* ─── Success Box (Created Paste) ────────────────────────────────────── */
.success-modal {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 24px;
  animation: fade-in 0.3s ease-out;
}

.success-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34d399;
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 12px;
}

.url-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.url-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.95em;
  padding: 10px 14px;
  outline: none;
}

.btn-copy {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  filter: brightness(1.15);
}

.success-details {
  font-size: 0.85em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─── Viewer Styles ──────────────────────────────────────────────────── */
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 20, 33, 0.6);
  flex-wrap: wrap;
  gap: 14px;
}

.viewer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86em;
  color: var(--text-muted);
}

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

.btn-action {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
}

.burn-banner {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
  border-bottom: 1px solid rgba(249, 115, 22, 0.4);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fdba74;
  font-size: 0.9em;
  font-weight: 500;
}

.code-wrapper {
  padding: 0;
  overflow-x: auto;
  background: #1e1e2e;
}

.code-wrapper pre {
  margin: 0;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  line-height: 1.6;
}

.image-wrapper {
  padding: 30px;
  text-align: center;
  background: rgba(10, 14, 23, 0.6);
}

.image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ─── Password / 404 Screens ─────────────────────────────────────────── */
.center-card-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.center-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.icon-lock {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.icon-ghost {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.center-card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.center-card-desc {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ─── Toast ──────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 20, 33, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.toast.error { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
.toast.info { border-color: rgba(139, 92, 246, 0.4); color: #c084fc; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .options-toolbar { flex-direction: column; align-items: stretch; }
  .options-left { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; justify-content: center; }
  .viewer-header { flex-direction: column; align-items: flex-start; }
  .viewer-actions { width: 100%; justify-content: flex-end; }
  .clipboard-title-row { flex-direction: column; align-items: flex-start; }
  .clipboard-stats { width: 100%; justify-content: space-between; }
  .clipboard-controls { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; justify-content: stretch; }
  .filter-btn { flex: 1; justify-content: center; }
  .quick-copy-bar { flex-direction: column; align-items: stretch; }
  .btn-fast-copy { width: 100%; justify-content: center; padding: 10px 16px; }
  .paste-card-footer { flex-direction: column; align-items: stretch; }
  .paste-actions-left { width: 100%; }
  .paste-actions-left .btn-card-action { flex: 1; justify-content: center; }
  .btn-card-delete { width: 100%; justify-content: center; }
}

/* ─── Header Live Sync Status ────────────────────────────────────────── */
.header-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Textarea Hint ──────────────────────────────────────────────────── */
.textarea-hint {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 0.8em;
  color: var(--text-dim);
}

.textarea-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ─── Clipboard & Active Links Section ───────────────────────────────── */
.clipboard-section {
  margin-top: 40px;
  animation: fade-in 0.35s ease-out;
}

.clipboard-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.clipboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.clipboard-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clipboard-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.clipboard-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.clipboard-subtitle {
  font-size: 0.86em;
  color: var(--text-muted);
  margin-top: 2px;
}

.clipboard-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-pill {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  font-size: 0.82em;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86em;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-fast);
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.btn-refresh.spinning i {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Search & Controls ──────────────────────────────────────────────── */
.clipboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9em;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 9px 38px 9px 38px;
  font-family: inherit;
  font-size: 0.9em;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.88em;
  padding: 4px;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.filter-group {
  display: flex;
  background: rgba(15, 20, 33, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* ─── Pastes Grid & Cards ────────────────────────────────────────────── */
.pastes-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paste-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: slide-up 0.25s ease-out;
}

.paste-card-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

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

.paste-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 20, 33, 0.5);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.paste-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-item-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-item-type.type-text {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-item-type.type-image {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.paste-id-tag {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.paste-id-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.paste-time-ago {
  font-size: 0.82em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.paste-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  font-size: 0.78em;
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.status-pill.pill-ttl {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.status-pill.pill-never {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-pill.pill-burn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.pill-lock {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-pill.pill-views {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
}

/* ─── Card Quick Copy Banner & Content ───────────────────────────────── */
.paste-card-content {
  padding: 16px 20px;
}

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

.quick-copy-title {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-fast-copy {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.btn-fast-copy:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.45));
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-fast-copy.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

/* Snippet Code Box */
.snippet-box {
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  line-height: 1.5;
  color: #e2e8f0;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}

.snippet-box.expanded {
  max-height: 500px;
}

.btn-toggle-expand {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-toggle-expand:hover {
  text-decoration: underline;
}

/* Image Item Preview */
.image-item-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.image-thumb-link {
  display: block;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}

.image-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.image-thumb-link:hover img {
  transform: scale(1.08);
}

.image-item-details {
  flex: 1;
}

.image-item-title {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.image-item-meta {
  font-size: 0.82em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* ─── Card Actions Footer ────────────────────────────────────────────── */
.paste-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 20, 33, 0.3);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.paste-actions-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84em;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.btn-card-action.copied {
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.btn-card-delete {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* ─── Empty State ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  margin-top: 10px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9em;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── QR Code Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 35px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: scale-up 0.2s ease-out;
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 20, 33, 0.6);
}

.modal-title {
  font-size: 1.05em;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1em;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px 20px;
  text-align: center;
}

.modal-desc {
  font-size: 0.88em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.qr-code-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 0 auto 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qr-code-wrapper img,
.qr-code-wrapper canvas {
  display: block;
  margin: 0 auto;
}

.qr-url-box {
  display: flex;
  gap: 8px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 20, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
