:root {
  --bg: #0b0f1a;
  --surface: #121826;
  --surface-2: #1a2236;
  --border: #232d45;
  --text: #eef2f8;
  --muted: #8b94a7;
  --accent: #ee4d2d;        /* Shopee orange */
  --accent-2: #ff7337;
  --success: #2dd4a7;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(238, 77, 45, 0.18), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(45, 212, 167, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ---------------- hero ---------------- */

.hero { text-align: center; margin-bottom: 36px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(238, 77, 45, 0.4);
}

.logo-text { font-size: 20px; font-weight: 700; }
.accent { color: var(--accent-2); }

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------------- input card ---------------- */

.input-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}

.input-row {
  display: flex;
  gap: 12px;
}

#url-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
}

#url-input::placeholder { color: #5b6478; }

#submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

#submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(238, 77, 45, 0.35); }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 12px;
  color: #ff8a80;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

/* ---------------- result card ---------------- */

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  animation: rise 0.35s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .result-grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
}

.media video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  margin-bottom: 14px;
}

.btn-primary {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(238, 77, 45, 0.35); }

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--success); color: var(--success); }

.meta h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.price {
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.meta-list {
  list-style: none;
  margin-bottom: 16px;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.meta-list span { color: var(--muted); }

.disclaimer {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(238, 77, 45, 0.15);
  color: var(--accent-2);
  border-radius: 9px;
  font-weight: 800;
  margin-bottom: 12px;
}

.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

footer { text-align: center; color: var(--muted); font-size: 13px; }
