.drop-zone {
  border: 2px dashed #c9c2b9;
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: #fff;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: #fff8f2;
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}
.drop-primary {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.drop-secondary {
  font-size: 12px;
  color: var(--muted);
}

.file-preview {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff8f2;
  border: 1px solid #f4d8be;
  border-radius: 12px;
}
.file-preview.visible { display: flex; }
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { font-size: 11px; color: var(--muted); margin-top: 2px; }
.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.file-remove:hover { color: #e5345b; }

.lang-section { margin-top: 18px; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.lang-btn {
  padding: 7px 4px;
  border: 1px solid #c9c2b9;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.2;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: #fff8f2; }
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.custom-lang-wrap { margin-top: 8px; }

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.submit-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.progress-wrap { display: none; margin-top: 16px; }
.progress-wrap.visible { display: block; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress-bar-bg {
  height: 4px;
  background: #d6cfc6;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s;
  border-radius: 4px;
}

.status-box {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.status-box.visible { display: block; }
.status-box.error { background: #fdf0f2; border: 1px solid #f4bec8; color: #c0293e; }
.status-box.success { background: #f0fdf5; border: 1px solid #b3e8c8; color: #1a6b3a; }
.status-box.info { background: #fff8f2; border: 1px solid #f4d8be; color: var(--accent); }

.download-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: #f2ece4;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #c9c2b9;
  font-size: 14px;
  transition: background 0.15s;
  cursor: pointer;
}
.download-btn:hover { background: #e8e0d6; }
.btn-arrow { padding-left: 12px; border-left: 1px solid currentColor; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (min-width: 680px) {
  .lang-grid { grid-template-columns: repeat(5, 1fr); }
}
