.pdfsplit-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.pdfsplit-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.pdfsplit-title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pdfsplit-icon {
  font-size: 1.3em;
}

.pdfsplit-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.pdfsplit-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Upload Zone */
.upload-zone {
  border: 3px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.upload-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.upload-btn {
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Controls */
.split-controls {
  margin-top: 2rem;
}

.file-info {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.file-info strong {
  color: var(--primary);
}

.split-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.split-options label {
  font-weight: 500;
  color: var(--text);
}

#splitMode, .option-input input {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
}

.option-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.split-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.split-btn {
  padding: 1rem 2.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Progress */
.progress {
  margin-top: 2rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.progress-bar {
  height: 12px;
  background: var(--primary);
  width: 0%;
  border-radius: 6px;
  transition: width 0.4s;
}

/* Download Card */
.download-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 520px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.dark-mode .download-card {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.download-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .split-actions { flex-direction: column; }
  .split-btn, .action-btn { width: 100%; }
  .upload-zone { padding: 3rem 1rem; }
}