:root {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0f172a;
}

body {
  margin: 0;
  background: #f5f7fb;
  line-height: 1.7;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.rp-hero {
  background: linear-gradient(120deg, #0f6efc, #5b1bff);
  color: #fff;
  padding: 56px 0 48px;
}

.rp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.rp-subtitle {
  margin: 0 0 12px;
  opacity: 0.95;
  font-size: 1.2rem;
}

.wc-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.wc-bullets span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.rp-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.wc-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.rp-main {
  padding: 40px 0 60px;
}

.wc-grid {
  display: grid;
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.card-head.small h3 {
  margin: 0;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  gap: 10px;
}

.muted {
  color: #64748b;
}

.tiny {
  font-size: 0.9rem;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.secondary-btn {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  color: #0f172a;
}

.ghost-btn {
  background: #fff;
  border: 1px solid #dbeafe;
  color: #0f6efc;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.cta-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stack-on-mobile {
  display: flex;
  gap: 10px;
}

.rp-tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}

.rp-dropzone {
  border: 1.5px dashed #94a3b8;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.rp-dropzone.dragging {
  border-color: #2563eb;
  background: #eef2ff;
}

.rp-dropzone input[type='file'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  margin: 0;
  font-weight: 800;
}

.rp-file-info {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
}

.rp-alert {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.rp-alert.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.rp-alert.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.rp-progress {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid #dbeafe;
  background: #f8fafc;
}

.rp-progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.rp-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  animation: rp-progress 1.2s linear infinite;
}

@keyframes rp-progress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(0);
  }
}

.rp-settings-card {
  background: #f8fafc;
}

.rp-radios {
  display: grid;
  gap: 6px;
}

.rp-setting input[type='text'],
.rp-setting select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}

.rp-custom {
  display: grid;
  gap: 6px;
}

.rp-hint {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #475569;
}

.rp-result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0 1.25rem;
}

.rp-meta-item {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.6rem 0.85rem;
}

.rp-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.rp-meta-value {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.rp-result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rp-section h2 {
  margin-top: 0;
}

.rp-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.rp-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  margin-bottom: 10px;
}

.rp-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.rp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-related a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  text-decoration: none;
  background: #eef2ff;
  font-weight: 700;
}

@media (max-width: 960px) {
  body {
    overflow-x: hidden;
  }
  .rp-hero-grid {
    grid-template-columns: 1fr;
  }
  .rp-hero {
    padding: 32px 0;
  }
  .rp-main {
    padding: 24px 0 36px;
  }
  .card {
    padding: 16px;
    border-radius: 16px;
  }
  .rp-layout {
    grid-template-columns: 1fr;
  }
  .stack-on-mobile {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .rp-result-actions {
    flex-direction: column;
  }
}
