@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --bg: #070b10;
  --bg-elevated: #0d1117;
  --surface: #111820;
  --card: rgba(22, 27, 34, 0.72);
  --card-solid: #161b22;
  --card-hover: #1a2332;
  --border: rgba(48, 54, 61, 0.8);
  --border-light: rgba(88, 166, 255, 0.15);
  --text: #f0f3f6;
  --text-secondary: #c9d1d9;
  --text-muted: #7d8590;
  --accent: #2ea043;
  --accent-bright: #3fb950;
  --accent-dim: rgba(46, 160, 67, 0.12);
  --blue: #388bfd;
  --blue-dim: rgba(56, 139, 253, 0.12);
  --link: #58a6ff;
  --gradient-1: #238636;
  --gradient-2: #388bfd;
  --gradient-3: #a371f7;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --nav-height: 68px;
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 54, 61, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.25) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}
.bg-glow {
  position: absolute;
  width: 900px;
  height: 600px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(56, 139, 253, 0.08) 0%, transparent 70%);
}
.bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 400px;
  bottom: 10%;
  right: -100px;
  background: radial-gradient(ellipse, rgba(35, 134, 54, 0.06) 0%, transparent 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}
.site-nav a.active {
  color: #fff;
  background: rgba(56, 139, 253, 0.18);
  box-shadow: inset 0 0 0 1px rgba(56, 139, 253, 0.25);
}
.nav-admin-link {
  margin-left: 0.5rem;
  padding: 0.4rem 0.85rem !important;
  border: 1px solid var(--border);
  border-radius: 8px !important;
  font-size: 0.8125rem !important;
}

main { flex: 1; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(46, 160, 67, 0.25);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #56d364 0%, var(--blue) 50%, var(--gradient-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 4px 14px rgba(35, 134, 54, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 20px rgba(35, 134, 54, 0.45);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--card-hover);
  border-color: rgba(88, 166, 255, 0.3);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.metric {
  background: var(--card-solid);
  padding: 1.25rem 1rem;
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.metric-value.accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-head {
  margin-bottom: 2.5rem;
}
.section-head.center { text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
  font-size: 0.9375rem;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
}
.platform-card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.platform-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--platform-color, var(--blue));
  opacity: 0.85;
}
.platform-card:hover {
  border-color: rgba(88, 166, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.platform-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.platform-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.platform-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", monospace;
  word-break: break-all;
}
.platform-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.platform-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.platform-card-foot .cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-badge.live {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(63, 185, 80, 0.25);
}
.status-badge.live::before { background: var(--accent-bright); }
.status-badge.planned {
  background: rgba(210, 153, 34, 0.1);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.25);
}
.status-badge.planned::before { background: #d29922; }
.status-badge.maintenance {
  background: rgba(56, 139, 253, 0.1);
  color: var(--blue);
  border: 1px solid rgba(56, 139, 253, 0.25);
}
.status-badge.maintenance::before { background: var(--blue); }
.status-badge.offline {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.25);
}
.status-badge.offline::before { background: #f85149; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: border-color var(--transition);
}
.feature:hover { border-color: var(--border-light); }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-dim);
  border: 1px solid rgba(56, 139, 253, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--blue);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.arch-panel {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}
.arch-tree {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
  white-space: pre;
}
.arch-tree .root { color: var(--accent-bright); font-weight: 600; }
.arch-tree .node { color: var(--link); }
.arch-tree .dim { color: var(--text-muted); opacity: 0.7; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.75rem 0 0;
  margin-top: auto;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 300px;
  line-height: 1.65;
}
.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--link); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.page-header {
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0.75rem 0;
  letter-spacing: -0.03em;
}
.page-header .lead {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.9375rem;
  margin: 0;
}
.content-panel {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.content-panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.content-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.content-panel li { margin-bottom: 0.4rem; }
.content-panel code {
  font-size: 0.8125rem;
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.mono-url {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--link);
  word-break: break-all;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.skeleton {
  background: linear-gradient(90deg, var(--card-solid) 25%, var(--card-hover) 50%, var(--card-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-lg);
  height: 200px;
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Admin */
.admin-page { padding-bottom: 3rem; }
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.admin-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.admin-table-wrap {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .platform-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.admin-table .platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-table input,
.admin-table select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
}
.admin-table input:focus,
.admin-table select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}
.admin-table .url-input {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}
.admin-table .name-input {
  min-width: 8rem;
}
.admin-table .platform-id {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.admin-table textarea {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
  resize: vertical;
}
.admin-add-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.admin-add-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}
.admin-add-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.admin-add-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.admin-add-form .admin-add-wide {
  grid-column: 1 / -1;
}
.admin-add-form input,
.admin-add-form select,
.admin-add-form textarea {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
}
.admin-add-form input[type="color"] {
  height: 2.25rem;
  padding: 0.2rem;
}
.admin-add-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.field-hint {
  font-weight: 400;
  color: var(--text-muted);
}
.enabled-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.enabled-toggle input {
  width: auto;
}
.row-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.delete-btn {
  color: #ff7b72;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: #1a3a2a;
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: var(--accent-bright);
}
.toast.error {
  background: #3a1a1a;
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #f85149;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
[hidden] { display: none !important; }
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.login-brand { margin-bottom: 1.5rem; }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.login-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}
.login-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: -1rem 0 1rem;
  line-height: 1.5;
}
.login-hint code {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.login-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0.85rem 0 0.35rem;
}
.login-card input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font);
}
.login-card input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}
.login-btn { width: 100%; margin-top: 1.25rem; }
.login-error {
  color: #f85149;
  font-size: 0.8125rem;
  margin: 0.75rem 0 0;
  text-align: center;
}
.login-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}
.login-back:hover { color: var(--link); }
.admin-header-bar { justify-content: space-between; }
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-user {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.admin-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.admin-table-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.visit-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.visit-stat {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
}
.visit-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.visit-stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-add-form { grid-template-columns: 1fr; }
  .visit-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-brand .full { display: none; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 640px; }
}
