:root {
  --bg: #eef3fb;
  --bg-2: #f8fbff;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(59, 130, 246, 0.2);
  --line: rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --accent: #0891b2;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --shadow-xl: 0 30px 90px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(8, 145, 178, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(148, 163, 184, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f2f6fd 48%, #edf3fb 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.home-main {
  position: relative;
  min-height: 100vh;
  padding: 32px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
}

.home-bg-orb {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.85;
}

.home-bg-orb--left {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 8%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
}

.home-bg-orb--right {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 4%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.14), transparent 72%);
}

.home-panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 40px 100px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.home-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

.home-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}

.home-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.home-title {
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #07111f;
}

.home-subtitle {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.home-actions {
  margin-top: 30px;
}

.home-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 270px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  cursor: pointer;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow:
    0 22px 48px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
  overflow: hidden;
  isolation: isolate;
}

.home-upload-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  z-index: 0;
  pointer-events: none;
}

.home-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 60px rgba(37, 99, 235, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  filter: saturate(1.04);
}

.home-upload-btn:active {
  transform: translateY(0) scale(0.992);
}

.home-upload-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.18),
    0 28px 60px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.home-upload-btn__glow {
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.42) 48%, transparent 62%),
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.18), transparent 16%);
  animation: homeGlassSweep 6s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.home-upload-btn__text {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@keyframes homeGlassSweep {
  0% {
    transform: translateX(-16%) rotate(0deg);
  }
  50% {
    transform: translateX(16%) rotate(8deg);
  }
  100% {
    transform: translateX(-16%) rotate(0deg);
  }
}

.home-stats {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.home-stat-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 68%);
  pointer-events: none;
}

.home-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-stat-card span {
  display: block;
  max-width: 15rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #091220;
}

.glass-card,
.glass-inset,
.stat-card,
.feature-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-xl),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.glass-inset {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 255, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 30px rgba(15, 23, 42, 0.04);
}

.glass-card--danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(254, 242, 242, 0.94));
  border-color: rgba(220, 38, 38, 0.14);
}

.nav-shell {
  position: relative;
  overflow: hidden;
}

.nav-shell::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background:
    linear-gradient(135deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b7280;
}

.status-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.status-badge {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.14);
}

.status-badge--critical {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.16);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.34);
  animation: pulseGlowStrict 1.8s infinite;
}

@keyframes pulseGlowStrict {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.34);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 52px;
  padding: 0 1.18rem;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition);
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.action-link:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.danger-btn:active,
.action-link:active {
  transform: translateY(0) scale(0.992);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.danger-btn:focus-visible,
.action-link:focus-visible,
.readonly-input:focus-visible,
.upload-zone:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 16px 40px rgba(15, 23, 42, 0.08);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled,
.action-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.primary-btn {
  color: #ffffff;
  background:
    linear-gradient(135deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow:
    0 18px 36px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.primary-btn:hover {
  box-shadow:
    0 22px 42px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.secondary-btn {
  color: #1e3a8a;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
  border-color: rgba(59, 130, 246, 0.14);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.ghost-btn,
.action-link {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ghost-btn:hover,
.action-link:hover {
  border-color: rgba(59, 130, 246, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.88));
}

.ghost-btn--small {
  min-height: 42px;
  padding: 0 0.94rem;
  border-radius: 14px;
  font-size: 0.93rem;
}

.danger-btn,
.action-link--danger {
  color: #b91c1c;
  background:
    linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.88));
  border-color: rgba(220, 38, 38, 0.14);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.06);
}

.feature-pill {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.feature-pill strong {
  font-size: 0.98rem;
  color: #0f172a;
}

.feature-pill span {
  font-size: 0.89rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-mockup {
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 26px 56px rgba(15, 23, 42, 0.08);
}

.hero-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.18rem;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-mockup__content {
  padding: 1.18rem;
}

.traffic {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

.traffic--red {
  background: #fb7185;
}

.traffic--yellow {
  background: #fbbf24;
}

.traffic--green {
  background: #34d399;
}

.upload-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.upload-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.28rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.mock-files {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  margin-top: 1rem;
}

.mock-file {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mock-file strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.mock-file span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mock-ext {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.mock-ext--pdf {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.mock-ext--img {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.mock-ext--mov {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
}

.mini-indicator {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mini-indicator span {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.mini-indicator strong {
  font-size: 0.94rem;
  color: #0f172a;
}

.stat-card,
.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 1.25rem 1.35rem;
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.stat-card span,
.feature-card p {
  color: var(--text-muted);
}

.stat-card strong {
  display: block;
  margin-top: 0.52rem;
  font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.feature-card h3 {
  margin: 0 0 0.48rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.feature-card p {
  margin: 0;
  line-height: 1.65;
}

.share-strip {
  display: flex;
  gap: 0.86rem;
  align-items: center;
}

.readonly-input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.countdown-value {
  margin: 0.45rem 0 0;
  font-size: clamp(1.46rem, 2.4vw, 1.96rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.upload-zone {
  width: 100%;
  min-height: 270px;
  padding: 2rem 1.4rem;
  border: 1.5px dashed rgba(59, 130, 246, 0.22);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.upload-zone strong {
  color: #0f172a;
  font-size: 1.07rem;
}

.upload-zone span:last-child {
  max-width: 42rem;
  line-height: 1.64;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 20px 44px rgba(37, 99, 235, 0.08);
}

.upload-zone__icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.62rem;
  background:
    linear-gradient(135deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow:
    0 18px 36px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.progress-shell {
  padding: 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.84);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 58%, #0891b2 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  transition: width 0.12s linear;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.stat-mini span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-mini strong {
  font-size: 1.18rem;
  color: #0f172a;
}

.notice-box {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  line-height: 1.65;
  color: var(--text-soft);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.file-row:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.file-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.file-main__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.file-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
}

.action-link {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.file-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 14px 28px rgba(15, 23, 42, 0.06);
}

.file-icon span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.file-icon--pdf {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.file-icon--image {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.file-icon--video {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #6d28d9;
}

.file-icon--audio {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #047857;
}

.file-icon--archive {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.file-icon--document {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #334155;
}

.file-icon--sheet {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
}

.file-icon--slide {
  background: linear-gradient(135deg, #ffedd5, #fdba74);
  color: #c2410c;
}

.file-icon--text {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #334155;
}

.file-icon--code {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

.file-icon--design {
  background: linear-gradient(135deg, #fce7f3, #f9a8d4);
  color: #be185d;
}

.file-icon--font {
  background: linear-gradient(135deg, #f5f3ff, #ddd6fe);
  color: #7c3aed;
}

.file-icon--app {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
}

.file-icon--database {
  background: linear-gradient(135deg, #cffafe, #67e8f9);
  color: #0f766e;
}

.file-icon--model {
  background: linear-gradient(135deg, #ecfccb, #bef264);
  color: #3f6212;
}

.file-icon--file {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
}

.empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  color: var(--text-muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.82));
}

.empty-state strong {
  font-size: 1.12rem;
  color: #0f172a;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preview-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 0.7rem;
}

.preview-body {
  min-height: 320px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.preview-body img,
.preview-body video,
.preview-body iframe {
  width: 100%;
  height: min(72vh, 820px);
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  object-fit: contain;
}

.preview-body audio {
  width: min(760px, 100%);
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: rgba(5, 150, 105, 0.96);
}

.toast--danger {
  background: rgba(220, 38, 38, 0.96);
}

.toast--info {
  background: rgba(15, 23, 42, 0.92);
}

@media (max-width: 1100px) {
  .home-panel {
    padding: 38px;
    border-radius: 34px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stat-card {
    min-height: 126px;
  }
}

@media (max-width: 980px) {
  .share-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .file-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}