/* ============================================================
   ShareBin.eu: Homepage styles
   ============================================================ */


/* ---- Custom purple scrollbar ---- */
::-webkit-scrollbar { width: 0; }
* { scrollbar-width: none; }
#sb-scrollbar {
  position: fixed;
  top: 0; right: 0;
  width: 5px;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}
#sb-scrollbar-thumb {
  position: absolute;
  right: 0;
  width: 5px;
  border-radius: 3px;
  background: rgba(139, 92, 246, 0.5);
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--sb-bg);
  color: var(--sb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* ---- Decorative background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* .sb-nav and .toast-container excluded: both set their own stacking on purpose and
   this selector's :not() chain out-specifies a plain class, so it silently clobbers
   them back down to relative/1. That is what was breaking the mobile nav dropdown,
   and what was hiding the toasts: they are body children pinned top-right by
   Bootstrap's .position-fixed, so at z-index 1 they rendered *behind* the sticky
   navbar at 1000 - exactly where they pop up. */
body > *:not(#siteLoader):not(#sb-scrollbar):not(.sb-nav):not(.toast-container) { position: relative; z-index: 1; }

/* Above .sb-nav (1000). Bootstrap's own default is 1090, but it loses to the
   selector above, so state it here where the relationship to the navbar is visible. */
.toast-container { z-index: 1100; }

p { margin-bottom: 0; }

:root {
  --sb-bg: #060810;
  --sb-bg-nav: rgba(6, 8, 16, 0.96);
  --sb-bg-card: #0d1120;
  --sb-bg-card-alt: #0a0e1b;
  --sb-bg-input: #080b17;
  --sb-accent: #8b5cf6;
  --sb-accent-hover: #7c3aed;
  --sb-accent-rgb: 139, 92, 246;
  --sb-text: #f1f5f9;
  --sb-text-muted: #94a3b8;
  --sb-border: rgba(255, 255, 255, 0.07);
  --sb-border-accent: rgba(139, 92, 246, 0.35);
  --sb-radius: 18px;
  --sb-radius-sm: 10px;
  --sb-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ---- Site loader ----
   Hidden by default. The page is server-rendered and readable the moment the
   HTML lands, so there is nothing to wait for on first paint; covering it with
   a spinner until window.load only hid a ready page behind the slowest asset.
   index.js sets display:flex inline for the post-upload transition, which is
   the one moment there is genuinely nothing to show yet. */
#siteLoader {
  position: fixed;
  inset: 0;
  background: var(--sb-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sb-loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--sb-accent);
  animation: sb-spin 0.8s linear infinite;
}

@keyframes sb-spin {
  to { transform: rotate(360deg); }
}

/* ---- Logo purple Bin ---- */
.sb-logo-bin {
  background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Logo EU domain ---- */
.sb-logo-eu {
  font-size: 0.85em;
  color: #94a3b8;
  opacity: 0.8;
}

/* ---- Logo link - prevent hover color changes ---- */
.sb-logo,
.sb-logo:hover,
.sb-logo:visited {
  color: var(--sb-text) !important;
}

/* ---- Navigation ---- */
.sb-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sb-bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sb-border);
}

.sb-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sb-text);
  flex-shrink: 0;
}

.sb-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
}

.sb-nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
}

.sb-nav-links a {
  text-decoration: none;
  color: var(--sb-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.sb-nav-links a:hover {
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.06);
}

.sb-open-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--sb-accent);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.sb-open-btn:hover {
  background: var(--sb-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.sb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.sb-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sb-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Hero ---- */
.sb-hero {
  text-align: center;
  padding: 44px 24px 36px;
  max-width: 820px;
  margin: 0 auto;
}

.sb-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--sb-text);
  margin-bottom: 20px;
}

.sb-accent-text {
  color: var(--sb-accent);
}

.sb-hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--sb-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- Panels ---- */
.sb-panels {
  max-width: 1140px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.sb-panel {
  min-width: 0;
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-panel-header svg {
  color: var(--sb-accent);
  flex-shrink: 0;
}

.sb-panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sb-text);
  margin: 0;
}

.sb-badge-live {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
  margin-left: auto;
}

/* ---- Live Notepad preview ---- */
.sb-notepad-preview {
  background: var(--sb-bg-card-alt);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  overflow: hidden;
}

.sb-notepad-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--sb-border);
  font-size: 0.8rem;
  color: var(--sb-text-muted);
}

.sb-toolbar-sep {
  width: 1px;
  height: 14px;
  background: var(--sb-border);
  margin: 0 2px;
}

.sb-notepad-lines {
  padding: 12px 0;
  font-size: 0.82rem;
  font-family: 'Roboto Mono', monospace;
}

.sb-notepad-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 14px;
  color: var(--sb-text-muted);
  position: relative;
}

.sb-notepad-line.sb-line-active {
  background: rgba(139, 92, 246, 0.07);
}

.sb-ln {
  color: rgba(148, 163, 184, 0.35);
  min-width: 14px;
  text-align: right;
  font-size: 0.7rem;
  user-select: none;
}

.sb-cursor-tag {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.sb-cursor-1 { background: #8b5cf6; }
.sb-cursor-2 { background: #06b6d4; }
.sb-cursor-3 { background: #10b981; }

/* ---- Feature pills ---- */
.sb-panel-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--sb-border-accent);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sb-text);
}

/* ---- Buttons ---- */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--sb-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  font-family: inherit;
}

.sb-btn-primary {
  background: var(--sb-accent);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.sb-btn-primary:hover {
  background: var(--sb-accent-hover);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.48);
  transform: translateY(-1px);
}

.sb-btn-outline {
  background: transparent;
  color: var(--sb-text) !important;
  border: 1px solid var(--sb-border);
}

.sb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.sb-btn-ghost {
  background: transparent;
  color: var(--sb-accent) !important;
  border: 1px solid var(--sb-border-accent);
}

.sb-btn-ghost:hover {
  background: rgba(139, 92, 246, 0.1);
  text-decoration: none;
}

/* ---- Upload panel form ---- */
#uploadForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Dropzone */
.sb-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: rgba(139, 92, 246, 0.04);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--sb-radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.sb-dropzone:hover {
  border-color: var(--sb-accent);
  background: rgba(139, 92, 246, 0.07);
}

.sb-dropzone svg {
  color: var(--sb-accent);
  opacity: 0.8;
}

.sb-dropzone p {
  font-size: 0.875rem;
  color: var(--sb-text-muted);
  margin: 0;
  line-height: 1.5;
}

.sb-browse-link {
  color: var(--sb-accent);
  font-weight: 600;
}

.sb-file-hint {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 2px;
}

.sb-file-name-display {
  font-size: 0.82rem;
  color: var(--sb-accent);
  font-weight: 500;
  /* width, not just max-width: the dropzone centres its children, which sizes
     them to fit-content, and ellipsis needs a definite width to trigger. */
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1px;
}

/* Expiry selector */
.sb-expiry-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-expiry-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--sb-text-muted);
  font-weight: 500;
}

.sb-expiry-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sb-expiry-btn {
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--sb-border);
  background: transparent;
  color: var(--sb-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.sb-expiry-btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--sb-text);
  background: rgba(139, 92, 246, 0.08);
}

.sb-expiry-btn.sb-expiry-active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--sb-accent);
  color: #fff;
}

/* Progress */
#barParent {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#progressBar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

#progress {
  height: 100%;
  background: linear-gradient(90deg, var(--sb-accent), #a78bfa);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0;
}

.upload-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.upload-stats p {
  margin: 0;
  padding: 5px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--sb-text-muted);
  text-align: center;
  font-family: 'Roboto Mono', monospace;
}

.upload-stats p#percentage {
  color: #a78bfa;
  font-weight: 600;
}

/* Link row */
.sb-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* The input cannot carry a pseudo-element, and the shine sweep below needs one,
   so the field gets a wrapper of its own inside the row. */
.sb-link-field {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  border-radius: var(--sb-radius-sm);
}

.sb-link-input {
  flex: 1;
  background: var(--sb-bg-input);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--sb-text);
  font-family: 'Roboto Mono', monospace;
  outline: none;
  min-width: 0;
  transition: border-color 0.18s;
}

.sb-link-input:focus {
  border-color: var(--sb-accent);
}

.sb-link-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

/* ---- Link field attention animations ----
   A finished upload used to change nothing but the text in a read-only input,
   which is easy to miss - and people who missed it uploaded the same file again.
   Both cases now say so with the same gesture: the field pulses and a shine
   crosses it. Violet for a fresh link, amber plus a shake for a repeat, so the
   two never read as the same outcome. */
.sb-link-field.sb-link-ok .sb-link-input {
  animation: sbLinkPulseOk 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sb-link-field.sb-link-dupe .sb-link-input {
  animation: sbLinkPulseDupe 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sb-link-field.sb-link-dupe {
  animation: sbLinkShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* The shine. Sits over the field, never over the copy button, and takes no
   pointer events so the text underneath stays selectable while it runs. */
.sb-link-field.sb-link-ok::after,
.sb-link-field.sb-link-dupe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--sb-radius-sm);
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(var(--sb-accent-rgb), 0.30) 47%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(var(--sb-accent-rgb), 0.30) 53%,
    transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: sbLinkSweep 1s ease-out both;
}

.sb-link-field.sb-link-dupe::after {
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(245, 158, 11, 0.30) 47%,
    rgba(255, 255, 255, 0.20) 50%,
    rgba(245, 158, 11, 0.30) 53%,
    transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
}

@keyframes sbLinkPulseOk {
  0% {
    border-color: var(--sb-accent);
    background: rgba(var(--sb-accent-rgb), 0.18);
    box-shadow: 0 0 0 0 rgba(var(--sb-accent-rgb), 0.55);
  }
  55% {
    border-color: var(--sb-accent);
    background: rgba(var(--sb-accent-rgb), 0.08);
    box-shadow: 0 0 0 7px rgba(var(--sb-accent-rgb), 0);
  }
  100% {
    border-color: var(--sb-border);
    background: var(--sb-bg-input);
    box-shadow: 0 0 0 0 rgba(var(--sb-accent-rgb), 0);
  }
}

@keyframes sbLinkPulseDupe {
  0% {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  55% {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
  100% {
    border-color: var(--sb-border);
    background: var(--sb-bg-input);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes sbLinkSweep {
  from { background-position: 130% 0; opacity: 1; }
  to   { background-position: -40% 0; opacity: 0; }
}

@keyframes sbLinkShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

/* Caption under the link row - the animation catches the eye, this says why.
   The form is a 16px-gap column, which reads as detached for a caption tied to
   the row above it, hence the pull-up. */
.sb-link-note {
  margin: -8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--sb-text-muted);
}

.sb-link-note.sb-link-note-ok { color: var(--sb-accent); }
.sb-link-note.sb-link-note-dupe { color: #f59e0b; }

@media (prefers-reduced-motion: reduce) {
  .sb-link-field.sb-link-ok .sb-link-input,
  .sb-link-field.sb-link-dupe .sb-link-input,
  .sb-link-field.sb-link-dupe,
  .sb-link-field.sb-link-ok::after,
  .sb-link-field.sb-link-dupe::after {
    animation: none;
  }
  /* Motion is out, but the field still has to change - the JS holds the class
     for 1.6s either way, so this is a steady tinted border for that long. */
  .sb-link-field.sb-link-ok .sb-link-input { border-color: var(--sb-accent); }
  .sb-link-field.sb-link-dupe .sb-link-input { border-color: #f59e0b; }
}

.sb-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}

.sb-copy-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--sb-border-accent);
  color: var(--sb-text);
}

/* Actions row */
.sb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sb-upload-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.sb-ip-message {
  font-size: 0.78rem;
  color: var(--sb-text-muted);
  text-align: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--sb-border);
}

/* ---- Notepad CTA button ---- */
.sb-notepad-cta {
  background: linear-gradient(135deg, var(--sb-accent), #6d28d9) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  border: none;
  width: 100%;
  padding: 13px 24px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.sb-notepad-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.07));
  pointer-events: none;
}

.sb-notepad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
}

/* ---- Notepad inline launch (create/join) ---- */
.sb-notepad-launch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sb-notepad-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--sb-text-muted);
  opacity: 0.8;
}

/* Real anchor to /notepad. The create button POSTs and so is invisible to a
   crawler; this is the followable link, and the no-JS way in. */
.sb-notepad-more {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 2px;
}

.sb-notepad-more a {
  color: var(--sb-text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--sb-accent-rgb), 0.35);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sb-notepad-more a:hover,
.sb-notepad-more a:focus-visible {
  color: var(--sb-accent);
  border-bottom-color: var(--sb-accent);
}

.sb-notepad-join {
  display: flex;
  gap: 8px;
}

.sb-notepad-join-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--sb-radius-sm);
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-input, var(--sb-bg-alt));
  color: var(--sb-text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.sb-notepad-join-input:focus {
  border-color: var(--sb-accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.sb-notepad-join-input::placeholder {
  color: var(--sb-text-muted);
  opacity: 0.6;
}

/* ---- Feature cards section ---- */
.sb-feature-cards-section {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sb-feature-card {
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.sb-feature-card:hover {
  border-color: var(--sb-border-accent);
}

.sb-fc-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.sb-feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sb-text);
  line-height: 1.3;
}

.sb-feature-card p {
  font-size: 0.82rem;
  color: var(--sb-text-muted);
  line-height: 1.55;
}

/* ---- Info sections ---- */
.sb-sections-wrapper {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Single full-width section card (e.g. "What ShareBin is not") */
.sb-single-section {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.sb-section-card {
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 28px;
}

.sb-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sb-text-muted);
  margin-bottom: 20px;
}

.sb-how-steps { display: flex; flex-direction: column; gap: 20px; }

.sb-how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sb-how-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-accent);
  flex-shrink: 0;
}

.sb-how-step-text h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sb-text);
  margin-bottom: 4px;
}

.sb-how-step-text p {
  font-size: 0.82rem;
  color: var(--sb-text-muted);
  line-height: 1.5;
}

.sb-security-items { display: flex; flex-direction: column; gap: 14px; }

.sb-sec-item { display: flex; gap: 12px; align-items: flex-start; }

.sb-sec-icon {
  color: var(--sb-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.sb-sec-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sb-text);
  margin-bottom: 2px;
}

.sb-sec-item p {
  font-size: 0.8rem;
  color: var(--sb-text-muted);
  margin: 0;
  line-height: 1.5;
}

.sb-security-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--sb-text-muted);
  line-height: 1.5;
}

.sb-security-note a {
  color: var(--sb-accent);
  text-decoration: none;
}

/* ---- Use cases ---- */
.sb-use-cases-section {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.sb-section-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sb-text-muted);
  margin-bottom: 20px;
}

.sb-use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sb-use-case-card {
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sb-uc-icon { font-size: 1.2rem; flex-shrink: 0; }

.sb-use-case-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sb-text);
  margin-bottom: 4px;
}

.sb-use-case-card p {
  font-size: 0.78rem;
  color: var(--sb-text-muted);
  line-height: 1.5;
}

/* ---- FAQ ---- */
.sb-faq-section {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.sb-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sb-faq-item {
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  padding: 20px;
}

.sb-faq-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sb-text);
  margin-bottom: 8px;
}

.sb-faq-item p {
  font-size: 0.82rem;
  color: var(--sb-text-muted);
  line-height: 1.55;
}

/* ---- Footer ---- */
.sb-footer {
  border-top: 1px solid var(--sb-border);
  padding: 36px 24px;
}

.sb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sb-footer-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sb-text);
  text-decoration: none;
}
.sb-footer-logo,
.sb-footer-logo:hover,
.sb-footer-logo:visited {
  color: var(--sb-text) !important;
}
.sb-footer-bin {
  background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sb-footer-eu {
  font-size: 0.85em;
  color: #94a3b8;
  opacity: 0.8;
}

.sb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.sb-footer-nav a {
  color: var(--sb-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.18s;
}

.sb-footer-nav a:hover { color: var(--sb-text); }

.sb-footer-copy {
  font-size: 0.78rem;
  color: var(--sb-text-muted);
  margin-left: auto;
}

/* ---- Drop zone overlay ---- */
#dropZone {
  position: fixed;
  inset: 0;
  background: rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(3px);
  z-index: 999;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Toast overrides ---- */
#successToast .toast-header {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border: none !important;
}

#successToast .toast-header .btn-close {
  filter: brightness(0) invert(1) !important;
}

#failedToast .toast-header {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border: none !important;
}

#failedToast .toast-header .btn-close {
  filter: brightness(0) invert(1) !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .sb-feature-cards-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .sb-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    /* Opaque, not var(--sb-bg-nav): the dropdown hangs below .sb-nav, whose
       backdrop-filter makes it a backdrop root, so a translucent background
       here composites against the nav rather than the page and the hero text
       reads straight through the open menu. */
    background: var(--sb-bg);
    border-bottom: 1px solid var(--sb-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }

  .sb-nav-links.sb-nav-open {
    display: flex;
  }

  .sb-nav-toggle {
    display: flex;
  }

  .sb-open-btn {
    display: none;
  }

  .sb-nav-inner {
    position: relative;
  }

  .sb-hero { padding: 56px 20px 36px; }
  .sb-panels { grid-template-columns: 1fr; }
  .sb-panel-upload { order: -1; }
  .sb-panel-notepad { order: 0; }
  .sb-sections-wrapper { grid-template-columns: 1fr; }
  .sb-feature-cards-section { grid-template-columns: repeat(2, 1fr); }
  .sb-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .sb-hero h1 { font-size: 2rem; }
  .sb-feature-cards-section { grid-template-columns: 1fr; }
  .sb-footer-inner { flex-direction: column; align-items: flex-start; }
  .sb-footer-copy { margin-left: 0; }
}
