:root {
  --bg: #f8faff;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #475569;
  --border: rgba(71, 85, 105, 0.18);
  --primary: #3b82f6;
  --primary-2: #2563eb;
  --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% 10%, #dbeafe 0%, var(--bg) 55%);
  color: var(--text);
}

.container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 255, 0.85);
  border-bottom: none !important;
  border-bottom: 0 !important;
  border-bottom-color: transparent !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.card {
  margin: 22px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(59, 130, 246, 0.08);
}

h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

p { margin: 8px 0; }

.muted { color: var(--muted); }

code {
  background: rgba(59, 130, 246, 0.08);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  background-color: #3b82f6 !important;
  color: white !important;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.alert.error {
  border-color: rgba(255, 90, 122, 0.35);
  background: rgba(255, 90, 122, 0.10);
  color: #dc2626;
}

.result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 255, 0.85);
}

.result-main {
  font-size: 16px;
}

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

  .site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
  }
  
  .footer-links {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .footer-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-weight: 600;
  }
  
  .copyright {
    display: inline-block;
    margin: 0;
    margin-top: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: #c62828;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
  }