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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #020617;
  color: #f1f5f9;
  line-height: 1.6;
}

a { color: #f97316; text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid #1e293b;
}
.brand { color: #f97316; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

.btn-primary {
  background: #f97316; color: white; font-weight: 700;
  padding: 12px 28px; border: none; border-radius: 999px;
  cursor: pointer; font-size: 15px; transition: background .15s;
  display: inline-block;
}
.btn-primary:hover { background: #ea6d10; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-lg {
  font-size: 18px; padding: 18px 40px; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(249,115,22,.25);
}

.container { max-width: 900px; margin: 0 auto; padding: 0 32px; }

section { padding: 64px 0; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }

.muted { color: #94a3b8; }
.orange { color: #f97316; }
.label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #f97316; }

.card {
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 16px; padding: 24px;
}

.stats-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; padding: 40px 0; border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: #f97316; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.form-label { display: block; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }
.form-input {
  width: 100%; background: #0f172a; border: 1px solid #1e293b;
  border-radius: 12px; padding: 14px 16px; color: white;
  font-size: 15px; transition: border-color .15s; outline: none;
}
.form-input:focus { border-color: #f97316; }

.error-msg { color: #f87171; font-size: 13px; margin-top: 6px; }

.progress-bar { height: 6px; background: #1e293b; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: #f97316; border-radius: 999px; transition: width .5s; }

footer { text-align: center; padding: 32px; color: #334155; font-size: 13px; border-top: 1px solid #1e293b; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #0f172a; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; text-align: left; border-bottom: 1px solid #1e293b; }
.admin-table td { padding: 12px; border-bottom: 1px solid #0f172a; vertical-align: top; }
.admin-table tr:hover td { background: #0f172a44; }

.status-DONE     { color: #34d399; font-weight: 700; }
.status-FAILED   { color: #f87171; font-weight: 700; }
.status-FETCHING { color: #60a5fa; font-weight: 700; }
.status-ANALYZING{ color: #c084fc; font-weight: 700; }
.status-RENDERING{ color: #fbbf24; font-weight: 700; }
.status-PAID     { color: #f97316; font-weight: 700; }
.status-PENDING_PAYMENT { color: #64748b; }
