@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Lora:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;600&display=swap");
:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --secondary-color: #fdd835;
  --accent-color: #558b2f;
  --text-color: #2d3436;
  --text-muted: #636e72;
  --bg-color: #fafaf7;
  --soft-cream: #fbfaf7;
  --light-border: #e8e6e1;
  --footer-bg: #1a1a1a;
  --footer-text: #e0e0e0;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Lora", serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --transition: all 0.3s ease;
  --trust-color: #1565c0;
  --warning-color: #f9a825;
  --risk-color: #c62828;
  --success-color: #2e7d32;
  --neutral-color: #546e7a;
  --sidebar-bg: #1b5e20;
  --sidebar-text: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, 0.1);
  --sidebar-active: rgba(255, 255, 255, 0.2);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* {
  text-wrap: pretty;
}
html {
  overflow-x: hidden;
}
body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: #1a1a1a;
  line-height: 1.2;
}
h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
}
header {
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 5%;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--light-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}
.logo a {
  display: flex;
  align-items: center;
}
.logo img {
  height: 70px;
  width: 70px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}
.sidebar-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: var(--sidebar-bg);
  padding: 6px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}
.logo img:hover {
  transform: scale(1.02);
}
.logo-text {
  white-space: nowrap;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
}
nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}
nav a:hover {
  color: var(--primary-color);
}
nav a[aria-current="page"] {
  color: var(--primary-color);
}
nav a[aria-current="page"]::after {
  width: 100%;
}
nav a:hover::after {
  width: 100%;
}
nav .btn-outline {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 50px;
}
nav .btn-outline::after {
  display: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
section {
  padding: 5rem 5%;
  overflow: hidden;
}
.hero {
  height: 64vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url("../assets/images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.05);
  z-index: -1;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.hero .btn {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero .btn:hover {
  background: var(--soft-cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}
.btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-main);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.5;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}
.btn:active {
  transform: scale(0.97);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.grid-2col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col {
  grid-template-columns: repeat(4, 1fr);
}
.align-center {
  align-items: center;
}
.card {
  background: var(--soft-cream);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--light-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}
.card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: block;
}
.card p {
  flex: 1;
  margin-bottom: 1rem;
}
footer {
  background: #111;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 5%;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
footer a {
  color: rgba(255, 255, 255, 0.8);
}
footer a:hover {
  color: #fff;
}
.text-center {
  text-align: center;
}
.section-desc {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.section-desc-small {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}
.bg-cream {
  background: var(--soft-cream);
}
.bg-white {
  background: #fff;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.text-primary {
  color: var(--primary-color);
}
.font-bold {
  font-weight: 700;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
}
.page-header {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 5rem 5%;
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}
.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  section {
    padding: 3.5rem 5%;
  }
  .hero {
    height: 45vh;
    padding: 0 5%;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .page-header {
    padding: 3.5rem 5%;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .menu-toggle {
    display: flex;
  }
  .logo img {
    height: 40px;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    padding: 6rem 5%;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    visibility: hidden;
  }
  nav.active {
    right: 0;
    visibility: visible;
  }
  nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  nav a {
    font-size: 1.2rem;
  }
  .card {
    padding: 2rem 1.5rem;
  }
  .grid,
  .grid-2col {
    grid-template-columns: 1fr !important;
  }
  .grid-3col {
    grid-template-columns: 1fr !important;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3col {
    grid-template-columns: 1fr !important;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  section {
    padding: 2.5rem 5%;
  }
  .hero {
    height: 38vh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .page-header {
    padding: 2.5rem 5%;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .card {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  footer p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
  }
}
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 2rem 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
}
.sidebar-header {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}
.sidebar-header h2 {
  font-size: 1.3rem;
  color: var(--sidebar-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-logo {
  height: 32px;
}
.sidebar-header p {
  font-size: 0.85rem;
  opacity: 0.7;
}
.sidebar-nav {
  list-style: none;
}
.sidebar-nav li {
  margin-bottom: 0.25rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--sidebar-text);
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-nav a:hover {
  background: var(--sidebar-hover);
}
.sidebar-nav a.active {
  background: var(--sidebar-active);
  border-left: 3px solid var(--secondary-color);
}
.sidebar-nav .icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.sidebar-nav .material-icons {
  font-size: 1.25rem;
  opacity: 0.9;
}
.btn-icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
}
.notif-badge-top {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.6rem;
}
.modal-narrow {
  max-width: 400px;
}
.btn-danger {
  background: var(--risk-color);
  color: #fff;
}
.btn-danger:hover {
  opacity: 0.9;
}
.mt-1 {
  margin-top: 1rem;
}
.my-1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.alert a {
  text-decoration: underline;
}
.notif-badge {
  background: var(--risk-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  margin-left: auto;
  line-height: 1.4;
}
.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.notif-panel.open {
  transform: translateX(0);
}
.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-border);
}
.notif-panel-header h3 {
  margin: 0;
}
.notif-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.notif-item {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.notif-item:hover {
  background: var(--soft-cream);
}
.notif-item.unread {
  background: #e8f5e9;
  border-left: 3px solid var(--primary-color);
}
.notif-item .notif-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--light-border);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}
.admin-tab:hover {
  color: var(--primary-color);
}
.admin-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.admin-tab .material-icons {
  font-size: 1.1rem;
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.admin-section-header h3 {
  margin-bottom: 0;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 3px;
}
.btn-sm .material-icons {
  font-size: 1rem;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--light-border);
}
.modal-header h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-body {
  padding: 2rem;
}
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--soft-cream);
  min-height: 100vh;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-border);
}
.top-bar h1 {
  font-size: 2rem;
  margin-bottom: 0;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.top-bar-link:hover {
  color: var(--primary-color);
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.data-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--soft-cream);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid var(--light-border);
}
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-border);
}
.data-table tr:hover {
  background: var(--soft-cream);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.score-gauge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
}
.score-gauge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 6px solid var(--light-border);
}
.score-gauge.tier-a {
  color: var(--success-color);
}
.score-gauge.tier-a::before {
  border-color: var(--success-color);
}
.score-gauge.tier-b {
  color: var(--trust-color);
}
.score-gauge.tier-b::before {
  border-color: var(--trust-color);
}
.score-gauge.tier-c {
  color: var(--warning-color);
}
.score-gauge.tier-c::before {
  border-color: var(--warning-color);
}
.score-gauge.tier-d {
  color: var(--risk-color);
}
.score-gauge.tier-d::before {
  border-color: var(--risk-color);
}
.score-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
}
.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}
.risk-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.risk-badge.low {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success-color);
}
.risk-badge.medium {
  background: rgba(249, 168, 37, 0.1);
  color: var(--warning-color);
}
.risk-badge.high {
  background: rgba(198, 40, 40, 0.1);
  color: var(--risk-color);
}
.chart-container {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}
.chart-container h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}
.chart-canvas {
  width: 100%;
  height: 300px;
}
.map-container {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}
.map-container h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}
#map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.alert-success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}
.alert-warning {
  background: rgba(249, 168, 37, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}
.alert-danger {
  background: rgba(198, 40, 40, 0.1);
  color: var(--risk-color);
  border-left: 4px solid var(--risk-color);
}
.alert-info {
  background: rgba(21, 101, 192, 0.1);
  color: var(--trust-color);
  border-left: 4px solid var(--trust-color);
}
.hidden {
  display: none !important;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.subscribe-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.subscribe-phone {
  font-size: 0.9rem;
}
.subscribe-btn {
  position: relative;
}
.subscribe-btn.loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.subscribe-btn.loading.btn-outline::after {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-color);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-cream);
  padding: 2rem;
}
.auth-container {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header .logo {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-header .logo img {
  height: 45px;
  width: 45px;
}
.auth-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.auth-form {
  margin-bottom: 2rem;
}
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-border);
}
.auth-footer p {
  margin-bottom: 0.5rem;
}
.flywheel-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.flywheel-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.flywheel-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: block;
}
.flywheel-step h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.flywheel-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.flywheel-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}
.pricing-card {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.pricing-card .subscribe-form {
  margin-top: auto;
}
.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.price {
  margin: 1.5rem 0;
}
.price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
}
.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}
.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-ref-table {
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto 0;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--light-border);
  border-radius: 8px;
}
.pricing-ref-table th,
.pricing-ref-table td {
  padding: 0.5rem 1rem;
  text-align: left;
  border: 1px solid var(--light-border);
  vertical-align: top;
}
.pricing-ref-table th {
  font-weight: 600;
  color: var(--text-color);
  width: 35%;
  background: var(--soft-cream);
}
.pricing-ref-table td {
  color: var(--text-muted);
}
.pricing-ref-table a {
  text-decoration: underline;
}
.pricing-features li:last-child {
  border-bottom: none;
}
.check-icon {
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}
.btn-full {
  width: 100%;
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
code {
  background: var(--soft-cream);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .main-content {
    margin-left: 0;
  }
  .data-table {
    overflow-x: auto;
  }
  .stat-card {
    margin-bottom: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  .flywheel-diagram {
    flex-direction: column;
  }
  .flywheel-arrow {
    transform: rotate(90deg);
  }
  .pricing-card.featured {
    transform: none;
  }
  .auth-container {
    padding: 2rem 1.5rem;
  }
  .pricing-ref-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  footer p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
  }
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid;
  color: #111;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast-info {
  border-color: #2196f3;
  color: #2196f3;
}
.toast-success {
  border-color: #4caf50;
  color: #4caf50;
}
.toast-error {
  border-color: #e74c3c;
  color: #e74c3c;
}
.toast-warning {
  border-color: #ff9800;
  color: #ff9800;
}
.role-badge {
  background: var(--role-color, var(--neutral-color)) 20;
  color: var(--role-color, var(--neutral-color));
}
.rate-limit-meta {
  font-size: 0.875rem;
  font-weight: 400;
}
.support-link {
  color: #1b5e20;
  font-weight: 600;
}
.section-subhead {
  margin-top: 1.5rem;
}
