:root {
  --bg: #f5f9ff;
  --bg2: #eef5ff;
  --surface: rgba(255, 255, 255, 0.98);
  --surface2: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.70);
  --border: rgba(15, 23, 42, 0.12);
  --primary: #2563eb;
  --primary2: #1d4ed8;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
  --shadow2: 0 10px 24px rgba(2, 6, 23, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(900px 540px at 20% -10%, rgba(37, 99, 235, 0.20), transparent 60%),
    radial-gradient(900px 540px at 92% 0%, rgba(96, 165, 250, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
  color: inherit;
  text-decoration: none;
}

.app-topnav {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-topnav > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.app-topnav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
}

.app-topnav li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.75);
  font-size: 14px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-topnav li a:hover {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}

.app-header-nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-header-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-header-nav li {
  margin: 0;
}

.app-header-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.78);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.app-header-nav a:hover {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(15, 23, 42, 0.92);
}

.container {
  display: flex;
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
}
