:root{
  --bg: #0f172a;
  --panel: #020617;
  --panel2: rgba(2,6,23,.65);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #2563eb;
  --border: rgba(148,163,184,.18);
  --ok: #22c55e;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -20%, rgba(37,99,235,.35), transparent 70%) , var(--bg);
  color: var(--text);
}

.wrap{
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.brand{
  text-align:center;
  margin-bottom: 18px;
}

.logo {
  width: 360px;
  height: 240px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 16px;
}

h1{
  margin: 0 0 8px;
  font-size: 26px;
}

.sub{
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.45;
}

.card{
  background: linear-gradient(180deg, rgba(2,6,23,.92), rgba(2,6,23,.82));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}

h2{
  margin: 0 0 12px;
  font-size: 18px;
}

.agreement{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  max-height: 220px;
  overflow: auto;
  color: var(--text);
  line-height: 1.5;
}

.check{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--text);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.req{ color: #fca5a5; }

input, select, textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  outline: none;
}

textarea{ resize: vertical; }

.hint{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.actions{
  margin-top: 14px;
  display:flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

button{
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--brand);
  color: white;
  font-weight: 650;
  cursor: pointer;
}

button:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.msg{
  color: var(--muted);
  font-size: 13px;
}

.result{
  margin-top: 14px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.06);
  border-radius: 12px;
  padding: 14px;
}

.result h3{
  margin: 0 0 8px;
  color: var(--ok);
}

.codeLine{
  margin: 10px 0 0;
}

.code{
  display:inline-block;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.hidden{ display:none; }

.footer{
  text-align:center;
  margin-top: 18px;
}

.tiny{
  font-size: 12px;
  color: var(--muted);
}

/* Fix select dropdown text visibility */
select {
  color: var(--text);
  background-color: rgba(255,255,255,0.06);
}

/* Dropdown option colors */
select option {
  color: #000;
  background-color: #fff;
}

/* Disabled placeholder option */
select option[value=""] {
  color: #6b7280;
}
