:root {
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-hover: #1f2937;
  --border: #1f2937;
  --border-focus: #38bdf8;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-icon {
  width: 24px;
  height: 24px;
  color: #38bdf8;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--text-main);
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-block {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
}

/* Главный блок */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Дропзона */
.uploader-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dropzone {
  position: relative;
  border: 2px dashed #374151;
  border-radius: 12px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.5);
  transition: all 0.2s ease;
}

.dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-wrapper svg {
  width: 44px;
  height: 44px;
  color: #64748b;
  margin-bottom: 16px;
}

.dropzone-idle h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.highlight {
  color: #38bdf8;
}

.limits {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Прогресс загрузки */
.upload-progress-state {
  text-align: left;
}

.file-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #374151;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #38bdf8;
  transition: width 0.1s linear;
}

.upload-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Настройки */
.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.option-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-select, .form-input {
  width: 100%;
  background: #0a0e17;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Футер */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 14px;
}

.footer-links a:hover {
  color: var(--text-main);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

/* Модалка */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
