:root {
  --brand: #1d4ed8;
  --brand-soft: #eff6ff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-soft: #eef2ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: #e2e8f0;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 35%), linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--text-primary);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.site-container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.site-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 700;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav-main::-webkit-scrollbar { display: none; }
.site-nav-main a {
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav-main a:hover {
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
}
.site-nav-main a.is-active {
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 1rem;
  background: rgba(255,255,255,0.9);
  color: var(--brand);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}
.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(280px, 80vw);
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: 24px 0 70px rgba(15,23,42,0.12);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: left 0.3s ease;
  z-index: 50;
}
.offcanvas-menu.open {
  left: 0;
}
.offcanvas-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.offcanvas-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
}
.offcanvas-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.offcanvas-links a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  transition: background 0.2s ease;
}
.offcanvas-links a:hover {
  background: rgba(29,78,216,0.08);
}
.offcanvas-links a.is-active {
  background: rgba(29,78,216,0.12);
  color: #1d4ed8;
}
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav-main {
    display: none;
  }
  .site-nav-links {
    display: none;
  }
}
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }
  .site-nav-main {
    display: flex !important;
  }
  .site-nav-links {
    display: flex !important;
  }
  .offcanvas-menu,
  .offcanvas-backdrop {
    display: none !important;
  }
}
.text-sm {
  font-size: 0.95rem;
}
.text-xs {
  font-size: 0.82rem;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-slate-600 {
  color: var(--text-secondary);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 600;
}
.site-button,
.site-button-secondary,
.site-button-ghost {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.site-button {
  background: var(--brand);
  color: white;
  padding: 0.95rem 1.5rem;
}
.site-button:hover {
  transform: translateY(-1px);
  background: #1e40af;
}
.site-button-secondary {
  background: #f8fafc;
  color: var(--text-primary);
  padding: 0.95rem 1.25rem;
}
.site-button-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.95rem 1.25rem;
}
.page-card {
  border-radius: 1.75rem;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
}
.table-card {
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}
.adm-input,
.adm-textarea,
.adm-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-sizing: border-box;
}
.adm-textarea {
  min-height: 5rem;
}
.adm-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.adm-table th,
.adm-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.adm-table thead th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
}
.adm-table tbody tr:last-child td {
  border-bottom: none;
}
.action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
}
.chip-on,
.chip-off {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip-on {
  background: #dcfce7;
  color: #166534;
}
.chip-off {
  background: #f1f5f9;
  color: #475569;
}
.hero-section {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 3rem 0;
}
.hero-content {
  max-width: 58rem;
}
.hero-section h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.02;
  margin: 1rem 0 0.75rem;
}
.hero-copy {
  margin: 0;
  max-width: 42rem;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.75;
}
.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-highlight {
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.24);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.26);
  min-height: 260px;
  display: grid;
  gap: 1.25rem;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.12);
}
.hero-highlight h2 {
  margin: 0;
  font-size: 1.4rem;
  color: white;
}
.hero-highlight p {
  margin: 0;
  color: rgba(255,255,255,0.95);
  line-height: 1.65;
}
.hero-stat-grid {
  display: grid;
  gap: 1rem;
}
.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}
.hero-stat span {
  font-size: 1.65rem;
  font-weight: 800;
  color: white;
}
.hero-stat p {
  margin: 0;
  color: rgba(255,255,255,0.98);
  font-size: 0.98rem;
  text-align: right;
}
.section-panel {
  background: #eef4ff;
  border-radius: 1.75rem;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(198, 217, 255, 0.85);
}
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card {
  background: #e2e8ff;
  border-radius: 1.4rem;
  border: 1px solid rgba(147, 197, 253, 0.9);
  padding: 1.5rem;
}
.stat-label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.stat-value {
  display: block;
  margin: 0.9rem 0 0.45rem;
  font-size: 2rem;
  color: var(--text-primary);
}
.stat-note {
  margin: 0;
  color: var(--text-secondary);
}
.content-grid {
  display: grid;
  gap: 1.5rem;
}
.content-card {
  background: #f3f8ff;
  border-radius: 1.75rem;
  border: 1px solid rgba(199, 210, 254, 0.92);
  padding: 1.5rem;
}
.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.content-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.content-card-count {
  background: #f8fafc;
  color: var(--brand);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}
.content-list {
  display: grid;
  gap: 1rem;
}
.content-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(29,78,216,0.05);
  border: 1px solid rgba(29,78,216,0.1);
}
.content-list-item strong {
  display: block;
  margin-bottom: 0.35rem;
}
.meta {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.tag {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(29,78,216,.12);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-width: max-content;
}
.tag.secondary {
  background: rgba(71,85,105,.12);
  color: #334155;
}
.features-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-item {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--surface-soft);
  border: 1px solid rgba(226,232,240,.95);
}
.feature-item h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.feature-item p {
  margin: 0;
  color: var(--text-secondary);
}
.site-footer {
  margin-top: 4rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: center;
  color: var(--text-secondary);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--text-primary);
}
.site-footer-brand img {
  border-radius: 50%;
  object-fit: cover;
}
.site-footer-copy {
  font-size: .85rem;
  color: var(--text-secondary);
}
.site-footer a {
  color: var(--brand);
}
@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}
@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0;
  }
  .hero-highlight {
    min-height: auto;
  }
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: min(100%, 420px);
  background: white;
  border-radius: 2rem;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 30px 90px rgba(15,23,42,.08);
  overflow: hidden;
}
.auth-card > .auth-card-body {
  padding: 2rem;
}
.auth-heading {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw, 2.5rem);
}
.auth-subtitle {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.site-input,
.site-textarea {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid #cbd5e1;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
}
.site-textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.alert {
  border-radius: 1.5rem;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-success {
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #bae6fd;
}
.alert-info {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-block {
  width: 100%;
}
@media (max-width: 767px) {
  .site-nav .inner { flex-direction: column; align-items: stretch; }
  .site-nav-links { justify-content: center; }
}
