:root {
  --fe-bg: #f8fafc;
  --fe-header: #0f172a;
  --fe-card: #ffffff;
  --fe-border: #e2e8f0;
  --fe-border-dark: #cbd5e1;
  --fe-text: #0f172a;
  --fe-muted: #64748b;
  --fe-primary: #2563eb;
  --fe-primary-hover: #1d4ed8;
  --fe-green: #10b981;
  --fe-green-hover: #059669;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--fe-bg);
  color: var(--fe-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--fe-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.fe-header {
  background: var(--fe-header);
  color: #fff;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fe-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.fe-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--fe-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fe-nav-menu {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.fe-nav-menu a { color: #94a3b8; }
.fe-nav-menu a:hover { color: #fff; text-decoration: none; }

.fe-hero-upload {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 3rem 2rem 4rem;
  text-align: center;
}
.fe-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.fe-hero-desc {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.fe-dropzone {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed #475569;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.fe-dropzone:hover {
  border-color: var(--fe-primary);
  background: rgba(37, 99, 235, 0.08);
}
.fe-drop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: #60a5fa;
}
.fe-drop-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.fe-drop-sub {
  font-size: 0.85rem;
  color: #94a3b8;
}

.fe-features-strip {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.fe-content {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}
.fe-card-files {
  background: var(--fe-card);
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.fe-card-head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--fe-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.fe-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  color: var(--fe-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.fe-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--fe-border);
  vertical-align: middle;
}
.fe-file-link {
  font-weight: 600;
  color: var(--fe-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fe-file-link:hover { color: var(--fe-primary); }

/* File Download Page styles */
.fe-download-box {
  max-width: 650px;
  margin: 3rem auto;
  background: var(--fe-card);
  border: 1px solid var(--fe-border-dark);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fe-file-badge-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.fe-file-icon-big {
  width: 58px;
  height: 58px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fe-primary);
  flex-shrink: 0;
}
.fe-file-name-h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}
.fe-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.fe-meta-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--fe-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.fe-hash-box {
  margin-bottom: 1.5rem;
}
.fe-hash-label {
  font-size: 0.78rem;
  color: var(--fe-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.fe-hash-val {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.8rem;
  background: #0f172a;
  color: #38bdf8;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  overflow-x: auto;
  word-break: break-all;
}
.fe-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--fe-green);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.fe-btn-download:hover {
  background: var(--fe-green-hover);
  text-decoration: none;
}
.fe-virus-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #15803d;
}

/* Auth / 404 */
.fe-auth-box {
  max-width: 440px;
  margin: 3.5rem auto;
  background: var(--fe-card);
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  padding: 2.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.fe-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fe-border-dark);
  border-radius: 6px;
  font-size: 0.92rem;
  margin-top: 0.3rem;
  margin-bottom: 1.1rem;
}
.fe-btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--fe-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.fe-btn-submit:hover { background: var(--fe-primary-hover); }

.fe-footer {
  background: var(--fe-card);
  border-top: 1px solid var(--fe-border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--fe-muted);
  margin-top: auto;
}

@media (max-width: 640px) {
  .fe-meta-grid { grid-template-columns: 1fr; }
  .fe-features-strip { flex-direction: column; gap: 0.5rem; }
}
