:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0369a1;
  --accent-soft: rgba(3, 105, 161, 0.12);
  --border: #e2e8f0;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

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

body {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
}

h1,
h2,
h3 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 2.6vw, 2.7rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 0.95rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

code {
  background: #eef2f6;
  padding: 2px 6px;
  border-radius: 6px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(191, 219, 254, 0.25), transparent 45%),
    radial-gradient(circle at bottom right, rgba(254, 215, 170, 0.25), transparent 45%);
}

.nav {
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #0369a1);
  box-shadow: 0 10px 20px rgba(3, 105, 161, 0.25);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill,
.user-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.user-pill {
  background: #f1f5f9;
  color: var(--muted);
}

.container {
  max-width: 1100px;
  margin: 20px auto 48px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.6s ease-out;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.subtitle {
  max-width: 420px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.quick-card {
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.92rem;
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(3, 105, 161, 0.2);
  border-color: var(--accent);
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  font-size: 0.9rem;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(3, 105, 161, 0.2);
}

.btn.primary:hover {
  background: #02588a;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(3, 105, 161, 0.25);
}

.btn.ghost:hover {
  background: var(--accent-soft);
}

.btn.small {
  padding: 4px 10px;
  font-size: 0.8rem;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.panel-sub {
  font-size: 0.9rem;
}

.token-preview {
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 10px;
}

.form-message {
  font-size: 0.8rem;
  color: #b45309;
  min-height: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 10px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.list-item strong {
  color: var(--ink);
}

.tips {
  background: linear-gradient(120deg, #ffffff 0%, #f1f5f9 100%);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

:focus-visible {
  outline: 2px solid rgba(3, 105, 161, 0.4);
  outline-offset: 2px;
}

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

@media (max-width: 800px) {
  .nav-inner {
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .container {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
