:root {
  --bg: #071123;
  --card: #111827;
  --panel: #1f2937;
  --border: rgba(255, 255, 255, 0.14);
  --text: #f9fafb;
  --muted: #d1d5db;
  --subtle: #9ca3af;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #22c55e;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1e3a8a 0%, #071123 55%, #030712 100%);
  background-size: cover;
}
.page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.card {
  width: min(520px, 100%);
  padding: 48px 34px 34px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.card-logo { display: block; max-width: 190px; max-height: 70px; margin: 0 auto 30px; object-fit: contain; }
h1 { margin: 0 0 16px; font-size: 29px; line-height: 1.2; text-align: center; }
.subtitle { margin: 0 0 28px; color: var(--muted); line-height: 1.55; text-align: center; }
.field-label { display: block; margin: 18px 0 8px; color: var(--text); font-size: 14px; }
.field-hint { margin: 7px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.input-field, .select-field {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  color: var(--text);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  outline: none;
}
.input-field:focus, .select-field:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22); }
.select-field option { background: #111827; color: var(--text); }
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  padding: 14px 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--muted);
}
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12); }
.status.error .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { background: var(--panel); color: white; border: 1px solid rgba(255, 255, 255, 0.18); }
.button:disabled { opacity: 0.7; cursor: not-allowed; }
.spinner { display: none; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .9s linear infinite; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.support-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transform: translateY(calc(100% + 40px));
  transition: transform .2s ease;
}
.support-panel.open { transform: translateY(0); }
.support-info { color: var(--muted); margin-bottom: 12px; }
.support-info-title { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.support-info ul { margin: 6px 0 10px 18px; padding: 0; }
.support-info-hours, .support-detail { display: block; color: var(--subtle); font-size: 12px; margin-top: 5px; }
.support-item { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.support-label { display: block; color: var(--text); font-weight: 700; margin-bottom: 5px; }
a { color: #93c5fd; }
.debug-cog { position: fixed; left: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(17,24,39,.8); color: white; cursor: pointer; }
.debug-panel { margin-top: 20px; color: var(--muted); }
.debug-panel pre { white-space: pre-wrap; overflow: auto; max-height: 240px; padding: 12px; background: #030712; border-radius: 10px; color: #d1d5db; }
@media (max-width: 560px) {
  .card { padding: 34px 22px 24px; }
  .actions { grid-template-columns: 1fr; }
}
