/* Dark MemeRap styling for standalone pages (Share, Support) — matches Vault palette. */
:root {
  --sv-bg: #000000;
  --sv-text: #f5f5f5;
  --sv-muted: #b3b3b3;
  --sv-link: #1ed760;
  --sv-link-hover: #48e786;
  --sv-panel: #0a0a0a;
  --sv-panel-soft: #111111;
  --sv-panel-border: #1f1f1f;
  --sv-line: #1a1a1a;
  --sv-accent: #1ed760;
  --sv-radius: 16px;
  --sv-radius-panel: 18px;
  --sv-radius-drop: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* —— Share / filebox —— */
body.filebox-page {
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sv-text);
  background-color: var(--sv-bg);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -15%, rgba(30, 215, 96, 0.07), transparent 52%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 12px 12px, 12px 12px;
  background-attachment: fixed;
}

.filebox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--sv-line);
  font-size: 0.88rem;
}
.filebox-top-brand {
  color: var(--sv-link);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.filebox-top-brand:hover {
  color: var(--sv-link-hover);
}
.filebox-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.filebox-top-nav a {
  color: var(--sv-muted);
  text-decoration: none;
  font-size: 0.82rem;
}
.filebox-top-nav a:hover {
  color: var(--sv-link);
}

.filebox-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 18px 48px;
  text-align: center;
}

.filebox-hero {
  margin-bottom: 22px;
}
.filebox-brand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 12px;
}
.filebox-logo {
  font-size: clamp(2.1rem, 6.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", "Trebuchet MS", cursive, sans-serif;
  color: var(--sv-text);
}
.filebox-brand-icon {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  opacity: 0.92;
  color: var(--sv-text);
}
.filebox-brand-icon svg { display: block; }
.filebox-brand-icon svg [stroke] { stroke: currentColor; }
.filebox-brand-icon svg ellipse { fill: currentColor; }

.filebox-tag {
  font-size: 0.95rem;
  color: var(--sv-muted);
  margin: 0 auto;
  max-width: 36em;
  line-height: 1.55;
}
.filebox-tag a {
  color: var(--sv-link);
  font-weight: 700;
}
.filebox-tag a:hover { color: var(--sv-link-hover); }
.filebox-meta-line {
  margin-top: 12px;
  margin-bottom: 0;
  text-align: left;
  font-size: 0.8rem;
}

.filebox-stage {
  margin: 0 auto 18px;
  max-width: 460px;
}

.filebox-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 26px 20px;
  margin: 0 auto 12px;
  border: 2px dashed #333;
  border-radius: var(--sv-radius-drop);
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 50%, #0a0a0a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease;
}
.filebox-drop-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sv-text);
}
.filebox-drop:hover,
.filebox-drop.filebox-drop--active {
  border-color: rgba(30, 215, 96, 0.5);
  background: linear-gradient(180deg, #181818 0%, #101010 50%, #0c0c0c 100%);
  box-shadow: inset 0 1px 0 rgba(30, 215, 96, 0.1), 0 0 0 1px rgba(30, 215, 96, 0.08);
}
.filebox-drop:active { transform: scale(0.995); }
.filebox-drop input { display: none; }

.filebox-pick-row {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filebox-pick-row .filebox-btn {
  min-width: 128px;
  padding: 9px 16px;
  font-size: 0.84rem;
}

.filebox-btn-ghost {
  background: transparent;
  color: var(--sv-text);
  border-color: #3a3a3a;
}
.filebox-btn-ghost:hover {
  background: #141414;
  border-color: rgba(30, 215, 96, 0.35);
  color: var(--sv-link-hover);
}

.filebox-meta {
  list-style: none;
  margin: 0 auto 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 460px;
}
.filebox-meta li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sv-panel-border);
  font-size: 0.76rem;
  color: var(--sv-muted);
  line-height: 1.3;
}
.filebox-meta strong {
  color: var(--sv-text);
  font-weight: 700;
}

.filebox-aside {
  margin: 28px 0 0;
  font-size: 0.84rem;
  color: var(--sv-muted);
}
.filebox-aside a {
  color: var(--sv-link);
  font-weight: 600;
  text-decoration: none;
}
.filebox-aside a:hover {
  color: var(--sv-link-hover);
  text-decoration: underline;
}
.filebox-aside .sep {
  color: #555;
  padding: 0 4px;
}

.filebox-result {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--sv-radius-panel);
  text-align: left;
  background: var(--sv-panel);
  border: 1px solid var(--sv-panel-border);
}
.filebox-result.filebox-result--show { display: block; }
.filebox-result label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sv-muted);
  margin-bottom: 8px;
}
.filebox-result .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filebox-result input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--sv-line);
  border-radius: 10px;
  font-size: 0.84rem;
  font-family: ui-monospace, Consolas, monospace;
  background: #050505;
  color: var(--sv-text);
}

.filebox-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #333;
  background: linear-gradient(180deg, #1ed760, #17a34a);
  color: #000;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.filebox-btn:hover {
  background: linear-gradient(180deg, #48e786, #1ed760);
}
.filebox-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.filebox-err {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--sv-radius-panel);
  background: rgba(196, 43, 43, 0.15);
  border: 1px solid #c42b2b;
  color: #ffb4b4;
  font-size: 0.86rem;
  text-align: left;
}
.filebox-err.filebox-err--show { display: block; }

.filebox-progress-wrap {
  display: none;
  margin: 14px auto 0;
  max-width: 460px;
  text-align: left;
}
.filebox-progress-wrap.filebox-progress-wrap--show { display: block; }
.filebox-progress {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--sv-muted);
}
.filebox-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--sv-line);
}
.filebox-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17a34a, #1ed760);
  transition: width 0.12s ease;
}

footer.filebox-foot {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--sv-muted);
}
footer.filebox-foot a {
  color: var(--sv-muted);
  font-weight: 600;
  text-decoration: none;
}
footer.filebox-foot a:hover {
  color: var(--sv-link);
  text-decoration: underline;
}

.filebox-mascot {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  max-width: min(52vw, 300px);
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.5));
}
.filebox-mascot[hidden] { display: none !important; }
.filebox-mascot img {
  display: block;
  width: auto;
  height: auto;
  max-height: min(44vh, 320px);
  max-width: 100%;
  object-fit: contain;
  object-position: 100% 100%;
  margin: 0 -12px -8px 0;
  transition: opacity 0.22s ease;
}
.filebox-mascot img.is-fading { opacity: 0; }

.filebox-btn-secondary {
  background: #141414;
  color: var(--sv-text);
  border-color: #333;
}
.filebox-btn-secondary:hover { background: #1a1a1a; }

.filebox-btn-danger {
  background: linear-gradient(180deg, #c44, #922);
  border-color: #611;
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 12px;
}
.filebox-btn-danger:hover { background: linear-gradient(180deg, #d55, #a33); }
.filebox-btn-sm { font-size: 0.78rem; padding: 6px 12px; }

.filebox-recent { display: none; margin-top: 22px; text-align: left; }
.filebox-recent.filebox-recent--show { display: block; }
.filebox-recent-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sv-muted);
  margin: 0 0 10px;
}
.filebox-recent-note {
  font-size: 0.78rem;
  color: var(--sv-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}
.filebox-recent-list { display: flex; flex-direction: column; gap: 10px; }
.filebox-recent-item {
  padding: 12px 14px;
  border-radius: var(--sv-radius-panel);
  background: var(--sv-panel);
  border: 1px solid var(--sv-panel-border);
}
.filebox-recent-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.filebox-recent-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sv-text);
  word-break: break-word;
  flex: 1 1 140px;
  min-width: 0;
}
.filebox-recent-size {
  font-size: 0.78rem;
  color: var(--sv-muted);
  white-space: nowrap;
}
.filebox-recent-url {
  display: block;
  font-size: 0.76rem;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--sv-link);
  word-break: break-all;
  text-decoration: none;
  margin-bottom: 8px;
}
.filebox-recent-url:hover { text-decoration: underline; }
.filebox-recent-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 600px) {
  .filebox-mascot { max-width: 38vw; opacity: 0.85; }
  .filebox-err { word-break: break-word; font-size: 0.8rem; }
  .filebox-wrap { padding-bottom: 120px; }
  .filebox-top { padding: 10px 14px; }
}

/* —— Support —— */
body.support-page {
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sv-text);
  background-color: var(--sv-bg);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -15%, rgba(30, 215, 96, 0.07), transparent 52%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 12px 12px, 12px 12px;
  background-attachment: fixed;
}

.support-top {
  padding: 10px 16px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--sv-line);
  font-size: 0.88rem;
}
.support-top a {
  color: var(--sv-link);
  text-decoration: none;
}
.support-top a:hover {
  color: var(--sv-link-hover);
  text-decoration: underline;
}

.support-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  text-align: center;
}
.support-title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 800;
  color: var(--sv-accent);
  letter-spacing: -0.02em;
}
.support-intro {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 16px 18px;
  border-radius: var(--sv-radius);
  background: var(--sv-panel-soft);
  border: 1px solid var(--sv-panel-border);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sv-muted);
  text-align: center;
}
.support-note {
  max-width: 640px;
  margin: 0 auto 26px;
  padding: 12px 16px;
  border-radius: var(--sv-radius);
  background: var(--sv-panel);
  border: 1px solid var(--sv-panel-border);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--sv-text);
  text-align: left;
}
.support-note strong { color: var(--sv-text); }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 14px;
  max-width: 720px;
  margin: 8px auto 0;
  text-align: left;
}
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}

.support-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 14px;
  border-radius: var(--sv-radius);
  background: var(--sv-panel);
  border: 1px solid var(--sv-panel-border);
}
.support-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sv-text);
  text-align: center;
}
.support-card p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--sv-muted);
}
.support-card a {
  color: var(--sv-link);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.support-card a:hover { text-decoration: underline; }
.support-card--contact {
  grid-column: 1 / -1;
  min-height: 0;
}
.support-card--xmr {
  background: var(--sv-panel-soft);
  border-color: rgba(30, 215, 96, 0.25);
}
.support-card--xmr h3 { color: var(--sv-accent); }

.support-xmr-box {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #050505;
  border: 1px solid var(--sv-line);
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--sv-text);
  text-align: center;
}

.support-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 215, 96, 0.35);
  background: linear-gradient(180deg, #1ed760, #17a34a);
  color: #000;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}
.support-btn:hover {
  background: linear-gradient(180deg, #48e786, #1ed760);
}
.support-btn:active { transform: scale(0.99); }

.support-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 0;
  margin-top: 28px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.support-nav a {
  color: var(--sv-link);
  text-decoration: none;
  padding: 0 2px;
}
.support-nav a:hover {
  color: var(--sv-link-hover);
  text-decoration: underline;
}
.support-nav .sep {
  color: #555;
  user-select: none;
  padding: 0 2px;
}

footer.support-foot {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--sv-muted);
}
footer.support-foot a {
  color: var(--sv-link);
  font-weight: 600;
  text-decoration: none;
}
footer.support-foot a:hover { text-decoration: underline; }
