.container {
  max-width: 1400px;
  margin: 0 auto;
}

.container > p, .container > .text-block {
  max-width: 65ch;
}

.btn {
  background: #333;
  color: var(--text);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { box-shadow: var(--accent-glow); }

.btn-secondary { background: #333; color: var(--text); }

.btn-success { background: var(--accent-hover); color: #000; }
.btn-success:hover { box-shadow: var(--accent-glow); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 25px;
}

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 25px;
}

.upload-zone {
  border: 2px dashed #444;
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-zone:hover,
.upload-zone.drag-active {
  border-color: var(--accent);
  background: rgba(0, 255, 157, 0.05);
}

.upload-zone input[type="file"] { display: none; }

.file-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-container {
  height: 8px;
  background: #333;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

.badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.9rem;
  text-align: center;
  min-width: 90px;
}

.badge-info { background: rgba(0, 212, 255, 0.2); color: #00d4ff; }
.badge-success { background: rgba(0, 255, 157, 0.2); color: #00ff9d; }
.badge-error { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.label {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.input,
.select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  width: 100%;
}

.preview-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.site-footer {
  text-align: center;
  padding: 0 20px 30px;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}
.site-footer::before {
  content: '';
  display: block;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  margin-bottom: 30px;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

.tool-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
  margin-bottom: 30px;
}
.tool-header-icon {
  flex-shrink: 0;
}
.tool-header h1 { margin-bottom: 0; }
