* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f6f9;
  color: #1a202c;
}

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.nav-link.active {
  background: #eff6ff;
  color: #2563eb;
}

.page-wrap {
  width: 100%;
  max-width: 640px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ad-slot {
  width: 100%;
  min-height: 90px;
  background: #e2e8f0;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.8rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.converter-box {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

h1 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.subtitle {
  color: #4a5568;
  font-size: 0.92rem;
  margin-bottom: 22px;
  line-height: 1.45;
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
  padding: 18px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
  font-weight: 500;
  color: #334155;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.controls {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
}

select,
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  background: #fff;
  width: 100%;
}

textarea {
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.status-msg {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #0f766e;
  min-height: 20px;
  text-align: center;
}

.seo-info {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  line-height: 1.6;
  color: #334155;
  font-size: 0.92rem;
}

.seo-info h2 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 8px;
}