/* ═══════════════════════════════════════════════════════════════════════════
   UnderHost File Upload – Stylesheet
   upload.underhost.com
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --uh-primary:       #00D4FF;
  --uh-primary-dark:  #0091D6;
  --uh-secondary:     #0091D6;

  --uh-dark-base:  #0A1220;
  --uh-dark-mid:   #0D1B30;
  --uh-dark-panel: #0F2040;
  --uh-dark-deep:  #071428;

  --uh-surface:      #FFFFFF;
  --uh-surface-soft: #F8F9FA;
  --uh-surface-mid:  #F1F5F9;
  --uh-border:       #E5E7EB;
  --uh-border-mid:   #D1D5DB;
  --uh-border-primary:   rgba(0,212,255,0.22);
  --uh-border-secondary: rgba(0,145,214,0.18);

  --uh-text-base:   #111827;
  --uh-text-muted:  #6B7280;
  --uh-text-light:  rgba(255,255,255,0.86);
  --uh-text-subtle: rgba(255,255,255,0.56);

  --uh-success: #34D399;
  --uh-warning: #FBBF24;
  --uh-error:   #EF4444;

  --uh-gradient-hero: linear-gradient(135deg,#0A1220 0%,#0D1B30 40%,#0F2040 70%,#071428 100%);
  --uh-gradient-cta:  linear-gradient(90deg,#00D4FF,#0091D6);
  --uh-gradient-card-header: linear-gradient(135deg,#0A1220 0%,#0D1B30 60%,#0F2040 100%);
  --uh-gradient-accent-overlay: linear-gradient(90deg,rgba(0,145,214,0.18) 0%,transparent 60%);

  --uh-shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --uh-shadow-md:   0 4px 16px rgba(0,145,214,0.25);
  --uh-shadow-lg:   0 8px 32px rgba(0,145,214,0.35);
  --uh-shadow-card: 0 4px 24px rgba(0,0,0,0.07);
  --uh-shadow-glow: 0 0 32px rgba(0,212,255,0.22);

  --uh-radius-sm: 8px;
  --uh-radius-md: 12px;
  --uh-radius-lg: 16px;
  --uh-radius-xl: 20px;
  --uh-radius-2xl:24px;

  --uh-container:      1200px;
  --uh-container-wide: 1320px;
  --uh-container-narrow: 860px;

  --uh-header-height: 68px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--uh-text-base);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.uh-container {
  width: min(100% - 32px, var(--uh-container));
  margin-inline: auto;
}
.uh-container-narrow {
  width: min(100% - 32px, var(--uh-container-narrow));
  margin-inline: auto;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.uh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--uh-radius-md);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease,
              background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.uh-btn:focus-visible {
  outline: 3px solid rgba(0,212,255,0.4);
  outline-offset: 3px;
}
.uh-btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.uh-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; border-radius: var(--uh-radius-lg); }
.uh-btn-full { width: 100%; }

.uh-btn-primary {
  background: var(--uh-gradient-cta);
  color: #fff;
  box-shadow: var(--uh-shadow-md);
}
.uh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--uh-shadow-lg);
  color: #fff;
}

.uh-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.16);
}
.uh-btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.uh-btn-outline {
  background: transparent;
  color: var(--uh-primary-dark);
  border-color: var(--uh-border-mid);
}
.uh-btn-outline:hover {
  border-color: var(--uh-primary-dark);
  background: rgba(0,145,214,0.04);
}

.uh-btn-danger {
  background: rgba(239,68,68,0.08);
  color: var(--uh-error);
  border-color: rgba(239,68,68,0.2);
}
.uh-btn-danger:hover {
  background: rgba(239,68,68,0.14);
}

/* ─── Pill / Badge ───────────────────────────────────────────────────────── */
.uh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--uh-border-primary);
  background: rgba(0,212,255,0.08);
  color: var(--uh-primary);
  backdrop-filter: blur(6px);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.uh-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--uh-header-height);
  background: rgba(10,18,32,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.uh-site-header.is-scrolled {
  background: rgba(10,18,32,0.97);
  border-bottom-color: rgba(0,212,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
.uh-header-inner {
  height: var(--uh-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.uh-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.uh-logo-img { height: 36px; width: auto; max-width: 160px; }

.uh-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.uh-nav-link {
  padding: 6px 12px;
  border-radius: var(--uh-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 150ms ease, background 150ms ease;
}
.uh-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.uh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile toggle */
.uh-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--uh-radius-sm);
  cursor: pointer;
}
.uh-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}
.uh-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uh-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.uh-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.uh-mobile-nav {
  display: none;
  position: fixed;
  inset: var(--uh-header-height) 0 0 0;
  background: var(--uh-dark-base);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1);
}
.uh-mobile-nav.is-open { transform: translateX(0); }
.uh-mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
}
.uh-mobile-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--uh-radius-md);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.84);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 150ms ease, color 150ms ease;
}
.uh-mobile-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.uh-mobile-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.uh-mobile-ctas .uh-btn { flex: 1; justify-content: center; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.uh-hero {
  background:
    radial-gradient(circle at 15% 30%, rgba(0,212,255,0.14) 0%, transparent 38%),
    radial-gradient(circle at 85% 70%, rgba(0,145,214,0.10) 0%, transparent 32%),
    var(--uh-gradient-hero);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.uh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300D4FF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.uh-hero-inner { position: relative; z-index: 1; }
.uh-hero .uh-pill { margin: 0 auto 20px; }
.uh-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 700px;
  margin-inline: auto;
}
.uh-hero h1 .uh-highlight {
  background: var(--uh-gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.uh-hero p {
  font-size: 18px;
  color: var(--uh-text-light);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.uh-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 32px;
}
.uh-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--uh-text-subtle);
}
.uh-hero-trust-item i { color: var(--uh-primary); font-size: 13px; }

/* ─── Section scaffold ───────────────────────────────────────────────────── */
.uh-section { padding: 80px 0; }
.uh-section-sm { padding: 56px 0; }
.uh-section-dark {
  background:
    radial-gradient(circle at 20% 25%, rgba(0,212,255,0.12), transparent 38%),
    var(--uh-gradient-hero);
  color: var(--uh-text-light);
}
.uh-section-soft { background: var(--uh-surface-soft); }
.uh-section-mid  { background: var(--uh-surface-mid); }

.uh-section-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--uh-primary-dark);
  margin-bottom: 12px;
}
.uh-section-dark .uh-section-label { color: var(--uh-primary); }

.uh-section-heading {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--uh-text-base);
  margin-bottom: 16px;
}
.uh-section-dark .uh-section-heading { color: #fff; }

.uh-section-sub {
  font-size: 17px;
  color: var(--uh-text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.uh-section-dark .uh-section-sub { color: var(--uh-text-light); }

.uh-section-header { text-align: center; margin-bottom: 48px; }
.uh-section-header .uh-section-sub { margin: 0 auto; }

/* ─── Upload section ─────────────────────────────────────────────────────── */
.uh-upload-section { background: var(--uh-surface-soft); }

.uh-upload-card {
  background: #fff;
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-2xl);
  box-shadow: var(--uh-shadow-card);
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

/* Card header panel */
.uh-upload-card-head {
  background: var(--uh-gradient-card-header);
  position: relative;
  overflow: hidden;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.uh-upload-card-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--uh-gradient-accent-overlay);
  pointer-events: none;
}
.uh-upload-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.uh-upload-card-icon i { color: var(--uh-primary); font-size: 16px; }
.uh-upload-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.uh-upload-card-sub {
  font-size: 12px;
  color: var(--uh-text-subtle);
  position: relative;
  z-index: 1;
  margin-left: auto;
}

/* Card body */
.uh-upload-card-body { padding: 24px; }

/* ─── Drop zone ──────────────────────────────────────────────────────────── */
.uh-drop-zone {
  border: 2px dashed var(--uh-border-mid);
  border-radius: var(--uh-radius-xl);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  background: var(--uh-surface-soft);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.uh-drop-zone:hover,
.uh-drop-zone.dragover {
  border-color: var(--uh-primary);
  background: rgba(0,212,255,0.03);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.06);
}
.uh-drop-zone.dragover { box-shadow: 0 0 0 6px rgba(0,212,255,0.10); }

.uh-drop-zone-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--uh-radius-lg);
  background: rgba(0,145,214,0.08);
  border: 1px solid var(--uh-border-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.uh-drop-zone-icon i {
  font-size: 26px;
  color: var(--uh-primary-dark);
}
.uh-drop-zone h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--uh-text-base);
  margin-bottom: 6px;
}
.uh-drop-zone p {
  font-size: 14px;
  color: var(--uh-text-muted);
  margin-bottom: 16px;
}
.uh-drop-zone-hint {
  display: inline-block;
  font-size: 12px;
  color: var(--uh-text-muted);
  border: 1px solid var(--uh-border);
  border-radius: 100px;
  padding: 4px 12px;
  background: #fff;
}

/* ─── Upload states ──────────────────────────────────────────────────────── */
/* All state panels hidden by default; JS shows correct one */
[data-state="idle"]      .uh-state-idle      { display: block; }
[data-state="idle"]      .uh-state-ready,
[data-state="idle"]      .uh-state-uploading,
[data-state="idle"]      .uh-state-success,
[data-state="idle"]      .uh-state-error     { display: none; }

[data-state="ready"]     .uh-state-idle,
[data-state="ready"]     .uh-state-uploading,
[data-state="ready"]     .uh-state-success,
[data-state="ready"]     .uh-state-error     { display: none; }
[data-state="ready"]     .uh-state-ready     { display: block; }

[data-state="uploading"] .uh-state-idle,
[data-state="uploading"] .uh-state-ready,
[data-state="uploading"] .uh-state-success,
[data-state="uploading"] .uh-state-error     { display: none; }
[data-state="uploading"] .uh-state-uploading { display: block; }

[data-state="success"]   .uh-state-idle,
[data-state="success"]   .uh-state-ready,
[data-state="success"]   .uh-state-uploading,
[data-state="success"]   .uh-state-error     { display: none; }
[data-state="success"]   .uh-state-success   { display: block; }

[data-state="error"]     .uh-state-idle,
[data-state="error"]     .uh-state-ready,
[data-state="error"]     .uh-state-uploading,
[data-state="error"]     .uh-state-success   { display: none; }
[data-state="error"]     .uh-state-error     { display: block; }

/* ─── Ready state: file info ────────────────────────────────────────────── */
.uh-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--uh-border-secondary);
  border-radius: var(--uh-radius-lg);
  background: rgba(0,145,214,0.03);
  margin-bottom: 16px;
}
.uh-file-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,145,214,0.08);
  border: 1px solid var(--uh-border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uh-file-info-icon i { color: var(--uh-primary-dark); font-size: 18px; }
.uh-file-info-meta { flex: 1; min-width: 0; }
.uh-file-info-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--uh-text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uh-file-info-size {
  font-size: 12px;
  color: var(--uh-text-muted);
  margin-top: 2px;
}
.uh-file-remove {
  background: none;
  border: none;
  color: var(--uh-text-muted);
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
  flex-shrink: 0;
}
.uh-file-remove:hover { color: var(--uh-error); background: rgba(239,68,68,0.06); }

.uh-upload-btn-wrap { margin-top: 4px; }

/* ─── Progress bar ───────────────────────────────────────────────────────── */
.uh-progress-wrap {
  padding: 8px 0 4px;
}
.uh-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.uh-progress-label span { font-size: 13px; font-weight: 600; color: var(--uh-text-muted); }
.uh-progress-label #uh-progress-pct { color: var(--uh-primary-dark); font-weight: 700; }
.uh-progress-track {
  height: 8px;
  background: var(--uh-surface-mid);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.uh-progress-bar {
  height: 100%;
  background: var(--uh-gradient-cta);
  border-radius: 100px;
  width: 0%;
  transition: width 200ms ease;
  position: relative;
}
.uh-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: rgba(255,255,255,0.4);
  animation: progress-sheen 1.2s ease infinite;
}
@keyframes progress-sheen {
  0%   { transform: skewX(-20deg) translateX(-20px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: skewX(-20deg) translateX(80px); opacity: 0; }
}
.uh-progress-filename {
  font-size: 12px;
  color: var(--uh-text-muted);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Success state ──────────────────────────────────────────────────────── */
.uh-success-wrap { text-align: center; padding: 8px 0; }
.uh-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  border: 2px solid rgba(52,211,153,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pop-in 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
@keyframes pop-in {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.uh-success-icon i { font-size: 26px; color: var(--uh-success); }
.uh-success-wrap h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--uh-text-base);
  margin-bottom: 6px;
}
.uh-success-wrap p {
  font-size: 14px;
  color: var(--uh-text-muted);
  margin-bottom: 20px;
}

/* Share URL row */
.uh-share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.uh-share-url-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--uh-border-secondary);
  border-radius: var(--uh-radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--uh-primary-dark);
  background: rgba(0,145,214,0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uh-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: var(--uh-radius-md);
  font-size: 13px;
  font-weight: 700;
  background: var(--uh-gradient-cta);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.uh-copy-btn:hover { box-shadow: var(--uh-shadow-md); transform: translateY(-1px); }
.uh-copy-feedback {
  font-size: 12px;
  color: var(--uh-success);
  font-weight: 600;
  height: 18px;
  transition: opacity 200ms ease;
}
.uh-copy-feedback.hidden { opacity: 0; }
.uh-success-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--uh-border);
  border-bottom: 1px solid var(--uh-border);
}
.uh-success-meta-item { font-size: 12px; color: var(--uh-text-muted); }
.uh-success-meta-item strong { display: block; font-size: 13px; color: var(--uh-text-base); font-weight: 700; }
.uh-upload-another {
  background: none;
  border: 1.5px solid var(--uh-border-mid);
  border-radius: var(--uh-radius-md);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--uh-text-muted);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.uh-upload-another:hover {
  color: var(--uh-primary-dark);
  border-color: var(--uh-primary-dark);
  background: rgba(0,145,214,0.04);
}

/* ─── Error state ────────────────────────────────────────────────────────── */
.uh-error-wrap { text-align: center; padding: 8px 0; }
.uh-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  border: 2px solid rgba(239,68,68,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.uh-error-icon i { font-size: 22px; color: var(--uh-error); }
.uh-error-wrap h3 { font-size: 17px; font-weight: 800; color: var(--uh-text-base); margin-bottom: 6px; }
.uh-error-msg { font-size: 14px; color: var(--uh-text-muted); margin-bottom: 20px; }
.uh-error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Info notice ────────────────────────────────────────────────────────── */
.uh-upload-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--uh-radius-md);
  background: var(--uh-surface-soft);
  border: 1px solid var(--uh-border);
  font-size: 12px;
  color: var(--uh-text-muted);
  line-height: 1.5;
}
.uh-upload-notice i { color: var(--uh-primary-dark); margin-top: 1px; flex-shrink: 0; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.uh-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.uh-step {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-xl);
  box-shadow: var(--uh-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.uh-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--uh-shadow-md);
}
.uh-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--uh-gradient-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--uh-shadow-md);
}
.uh-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--uh-text-base); }
.uh-step p  { font-size: 14px; color: var(--uh-text-muted); line-height: 1.6; }

/* ─── Use cases ──────────────────────────────────────────────────────────── */
.uh-use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.uh-use-case-card {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  box-shadow: var(--uh-shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.uh-use-case-card:hover {
  border-color: var(--uh-border-secondary);
  box-shadow: var(--uh-shadow-md);
  transform: translateY(-2px);
}
.uh-use-case-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--uh-radius-md);
  background: rgba(0,145,214,0.08);
  border: 1px solid var(--uh-border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.uh-use-case-icon i { color: var(--uh-primary-dark); font-size: 18px; }
.uh-use-case-card h3 { font-size: 15px; font-weight: 700; color: var(--uh-text-base); margin-bottom: 6px; }
.uh-use-case-card p  { font-size: 13px; color: var(--uh-text-muted); line-height: 1.6; }

/* ─── Security section ───────────────────────────────────────────────────── */
.uh-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 0;
}
.uh-security-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.uh-security-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.uh-security-feature i { color: var(--uh-primary); margin-top: 2px; font-size: 14px; flex-shrink: 0; }
.uh-security-feature span { font-size: 13px; color: var(--uh-text-subtle); line-height: 1.5; }

.uh-security-card {
  background: rgba(15,32,64,0.7);
  border: 1px solid var(--uh-border-primary);
  border-radius: var(--uh-radius-xl);
  padding: 32px;
  box-shadow: var(--uh-shadow-glow);
}
.uh-security-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.uh-security-card-head i { font-size: 20px; color: var(--uh-primary); }
.uh-security-card-head span { font-size: 15px; font-weight: 700; color: #fff; }
.uh-security-checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.uh-security-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--uh-text-subtle);
}
.uh-security-checks li i { color: var(--uh-success); font-size: 12px; flex-shrink: 0; }

/* ─── Section divider ────────────────────────────────────────────────────── */
.uh-section-divider {
  width: min(100% - 32px, 1200px);
  margin: 56px auto;
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.uh-section-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.38), rgba(0,145,214,0.26), transparent);
}
.uh-section-divider-icon {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 0 14px rgba(0,212,255,0.3));
}
.uh-section-dark .uh-section-divider-line {
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.48), rgba(255,255,255,0.16), transparent);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.uh-footer {
  background: var(--uh-gradient-hero);
  padding: 72px 0 0;
  color: var(--uh-text-light);
  border-top: 1px solid rgba(0,212,255,0.12);
}
.uh-footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.uh-footer-logo { height: 36px; width: auto; }
.uh-footer-desc {
  font-size: 13px;
  color: var(--uh-text-subtle);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.uh-footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 10px;
  font-weight: 500;
}
.uh-footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  margin-bottom: 16px;
}
.uh-footer-links { display: flex; flex-direction: column; gap: 8px; }
.uh-footer-links a {
  font-size: 13px;
  color: var(--uh-text-subtle);
  transition: color 150ms ease;
}
.uh-footer-links a:hover { color: #fff; }
.uh-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}
.uh-footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.uh-footer-pipe { margin: 0 8px; opacity: 0.4; }
.uh-footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}
.uh-footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 150ms ease; }
.uh-footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ─── File view page ─────────────────────────────────────────────────────── */
.uh-file-page { padding: 64px 0 80px; }
.uh-file-view-card {
  background: #fff;
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-2xl);
  box-shadow: var(--uh-shadow-card);
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.uh-file-view-head {
  background: var(--uh-gradient-card-header);
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.uh-file-view-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--uh-gradient-accent-overlay);
  pointer-events: none;
}
.uh-file-view-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.uh-file-view-type-icon i { color: var(--uh-primary); font-size: 20px; }
.uh-file-view-title-wrap { position: relative; z-index: 1; min-width: 0; }
.uh-file-view-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uh-file-view-subtitle { font-size: 12px; color: var(--uh-text-subtle); margin-top: 3px; }
.uh-file-view-body { padding: 28px 24px; }
.uh-file-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--uh-surface-soft);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  margin-bottom: 24px;
}
.uh-file-meta-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uh-text-muted);
  margin-bottom: 4px;
}
.uh-file-meta-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--uh-text-base);
}
.uh-file-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--uh-radius-lg);
  font-size: 15px;
  font-weight: 700;
  background: var(--uh-gradient-cta);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--uh-shadow-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
  margin-bottom: 20px;
}
.uh-file-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--uh-shadow-lg);
  color: #fff;
}
.uh-file-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--uh-surface-soft);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-md);
  font-size: 12px;
  color: var(--uh-text-muted);
  line-height: 1.5;
}
.uh-file-security-note i { color: var(--uh-warning); font-size: 13px; margin-top: 1px; flex-shrink: 0; }
.uh-file-upload-another {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--uh-text-muted);
}
.uh-file-upload-another a {
  color: var(--uh-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0,145,214,0.3);
  text-underline-offset: 2px;
}
.uh-file-upload-another a:hover { color: var(--uh-primary); text-decoration-color: var(--uh-primary); }

/* ─── 404 / error page ───────────────────────────────────────────────────── */
.uh-not-found {
  text-align: center;
  padding: 80px 24px;
}
.uh-not-found-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  border: 2px solid rgba(239,68,68,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.uh-not-found-icon i { font-size: 32px; color: var(--uh-error); }
.uh-not-found h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--uh-text-base); }
.uh-not-found p  { font-size: 15px; color: var(--uh-text-muted); margin-bottom: 28px; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .uh-header-nav { display: none; }
  .uh-header-actions { display: none; }
  .uh-mobile-toggle { display: flex; }
  .uh-mobile-nav { display: block; }

  .uh-footer-top { grid-template-columns: 1fr 1fr; }
  .uh-footer-brand { grid-column: span 2; }

  .uh-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .uh-use-cases-grid { grid-template-columns: 1fr 1fr; }
  .uh-security-grid { grid-template-columns: 1fr; gap: 32px; }
  .uh-security-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --uh-header-height: 60px; }
  .uh-logo-img { height: 30px; }
  .uh-hero { padding: 48px 0 40px; }
  .uh-section { padding: 56px 0; }
  .uh-section-sm { padding: 40px 0; }

  .uh-drop-zone { padding: 32px 16px; }
  .uh-upload-card-body { padding: 16px; }
  .uh-share-row { flex-direction: column; }
  .uh-copy-btn { width: 100%; justify-content: center; }
  .uh-success-meta { gap: 12px; }
  .uh-error-actions { flex-direction: column; }

  .uh-use-cases-grid { grid-template-columns: 1fr; }
  .uh-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .uh-footer-brand { grid-column: auto; }
  .uh-footer-desc { max-width: 100%; }
  .uh-footer-bottom { flex-direction: column; align-items: flex-start; }
  .uh-footer-legal { gap: 14px; flex-wrap: wrap; }

  .uh-file-meta-grid { grid-template-columns: 1fr; }
  .uh-section-divider { margin: 40px auto; gap: 12px; }
}

/* ─── Focus / accessibility ───────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0,212,255,0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Support PIN gate */
.uh-gated-page.is-locked {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}
.uh-pin-gate {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10,18,32,0.34);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.uh-pin-card {
  width: min(100%, 390px);
  padding: 28px;
  border-radius: var(--uh-radius-xl);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 24px 70px rgba(10,18,32,0.26);
  text-align: center;
}
.uh-pin-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,145,214,0.09);
  border: 1px solid rgba(0,145,214,0.18);
  color: var(--uh-primary-dark);
  font-size: 20px;
}
.uh-pin-kicker {
  margin-bottom: 8px;
  color: var(--uh-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.uh-pin-card h2 {
  margin-bottom: 8px;
  color: var(--uh-text-base);
  font-size: 24px;
  line-height: 1.2;
}
.uh-pin-copy {
  margin-bottom: 20px;
  color: var(--uh-text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.uh-pin-label {
  display: block;
  margin-bottom: 8px;
  color: var(--uh-text-base);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.uh-pin-input {
  width: 100%;
  height: 54px;
  margin-bottom: 14px;
  border: 1.5px solid var(--uh-border-mid);
  border-radius: var(--uh-radius-md);
  background: #fff;
  color: var(--uh-text-base);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
}
.uh-pin-input:focus {
  border-color: var(--uh-primary-dark);
  box-shadow: 0 0 0 4px rgba(0,145,214,0.12);
}
.uh-pin-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--uh-radius-md);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}
.uh-pin-support {
  display: inline-block;
  margin-top: 14px;
  color: var(--uh-primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0,145,214,0.35);
  text-underline-offset: 3px;
}
.uh-pin-support:hover {
  color: var(--uh-secondary);
}
