:root {
  --bg-main: #0b1015;
  --bg-secondary: #0f1621;
  --panel: #131c27;
  --panel-strong: #192432;
  --panel-soft: #0e1620;
  --accent: #1fe5d8;
  --accent-strong: #43fff1;
  --border: #1f2b39;
  --muted: #92a3b7;
  --text: #e8ecef;
  --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(33, 229, 216, 0.12);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(33, 229, 216, 0.08);
  --radius: 18px;
  --gap: 18px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", -apple-system, sans-serif;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(33, 229, 216, 0.06),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(33, 229, 216, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(33, 229, 216, 0.09),
      transparent 45%
    ),
    var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.sidebar-overlay {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 23, 0.1) 0%,
    rgba(8, 12, 18, 0.1) 60%,
    rgba(10, 14, 21, 0.1) 100%
  );
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 28px 22px;
  background: linear-gradient(
    160deg,
    rgba(20, 30, 42, 0.85) 0%,
    rgba(14, 20, 28, 0.95) 100%
  );
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar .brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(33, 229, 216, 0.75);
}

.sidebar .welcome {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(25, 36, 50, 0.55);
  border: 1px solid var(--border);
}

.sidebar .welcome .eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sidebar .welcome .name {
  font-size: 18px;
  font-weight: 700;
}

.nav-stack {
  display: grid;
  gap: 10px;
}

.nav-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(19, 28, 39, 0.6);
  overflow: hidden;
}

.nav-site {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(20, 30, 42, 0.85) 0%,
    rgba(14, 22, 32, 0.95) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 2px;
}

.nav-site.is-open {
  border-color: rgba(33, 229, 216, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(33, 229, 216, 0.12);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
}

.site-link {
  flex: 1;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-link:hover,
.site-link.active {
  color: var(--accent);
}

.site-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(19, 28, 39, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.site-toggle:hover {
  border-color: rgba(33, 229, 216, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(33, 229, 216, 0.16);
}

.site-chevron {
  transition: transform 0.2s ease;
  color: var(--muted);
  font-size: 14px;
}

.nav-site.is-open .site-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.nav-sublist {
  display: none;
  padding: 8px 10px 12px;
  background: rgba(9, 14, 21, 0.85);
  border-top: 1px solid var(--border);
}

.nav-site.is-open .nav-sublist {
  display: grid;
  gap: 6px;
}

.nav-expand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav-expand:hover {
  background: rgba(33, 229, 216, 0.08);
}

.nav-chevron {
  transition: transform 0.2s ease;
  color: var(--muted);
  font-size: 14px;
}

.nav-group.is-open .nav-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.nav-children {
  display: none;
  padding: 8px 10px 12px;
  background: rgba(12, 18, 26, 0.8);
  border-top: 1px solid var(--border);
}

.nav-group.is-open .nav-children {
  display: grid;
  gap: 10px;
}

.nav-subheader {
  margin: 6px 4px 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(19, 28, 39, 0.55);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-sub:hover {
  border-color: rgba(33, 229, 216, 0.35);
  color: var(--accent);
  transform: translateX(2px);
}

.nav-sub.active {
  border-color: rgba(33, 229, 216, 0.45);
  background: rgba(33, 229, 216, 0.08);
  color: var(--accent);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(19, 28, 39, 0.6);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(33, 229, 216, 0.12);
  color: var(--accent);
}

.nav-btn:hover {
  border-color: rgba(33, 229, 216, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 20px rgba(33, 229, 216, 0.16);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: linear-gradient(
    145deg,
    rgba(33, 229, 216, 0.14),
    rgba(33, 229, 216, 0.05)
  );
  border-color: rgba(33, 229, 216, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(33, 229, 216, 0.18);
}

.content {
  padding: 32px;
  position: relative;
  overflow: visible;
}

.content-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  filter: blur(70px);
  opacity: 0.15;
  pointer-events: none;
}

.content::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 30%;
  background: radial-gradient(
    circle,
    rgba(33, 229, 216, 0.18),
    transparent 70%
  );
}

.content::after {
  height: 360px;
  bottom: -120px;
  left: 18%;
  background: radial-gradient(
    circle,
    rgba(33, 229, 216, 0.18),
    transparent 70%
  );
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 14px;
}

.mobile-nav {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(19, 28, 39, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.nav-toggle:hover {
  border-color: rgba(33, 229, 216, 0.38);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(33, 229, 216, 0.18);
  transform: translateY(-1px);
}

.crumbs {
  color: var(--muted);
  font-size: 14px;
}

.crumbs strong {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 229, 216, 0.12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(33, 229, 216, 0.25);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(25, 36, 50, 0.9) 0%,
    rgba(15, 22, 33, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 35% 10%,
    rgba(33, 229, 216, 0.2),
    transparent 35%
  );
  opacity: 0.6;
  pointer-events: none;
}

.hero-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

.hero-card h1 {
  margin: 8px 0 8px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.hero-card p {
  margin: 0 0 16px;
  color: #c2cdd8;
  max-width: 620px;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1015;
  box-shadow: 0 12px 30px rgba(33, 229, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(33, 229, 216, 0.36);
}

.btn-ghost {
  border-color: rgba(146, 163, 183, 0.25);
  color: var(--text);
  background: rgba(20, 30, 42, 0.7);
}

.btn-ghost:hover {
  border-color: rgba(33, 229, 216, 0.35);
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 22px;
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(19, 28, 39, 0.95) 0%,
    rgba(12, 18, 28, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card .muted {
  color: var(--muted);
  font-size: 14px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-main);
  border-radius: 12px;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
}

.table thead {
  background: rgba(25, 36, 50, 0.8);
  color: #cdd7e3;
}

.table tbody tr {
  background: rgba(16, 23, 33, 0.75);
  border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
  background: rgba(25, 36, 50, 0.8);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.chip.success {
  color: #4ef5d8;
  border-color: rgba(78, 245, 216, 0.35);
  background: rgba(78, 245, 216, 0.12);
}

.chip.warn {
  color: #ffc861;
  border-color: rgba(255, 200, 97, 0.32);
  background: rgba(255, 200, 97, 0.12);
}

.chip.info {
  color: #7fb6ff;
  border-color: rgba(127, 182, 255, 0.28);
  background: rgba(127, 182, 255, 0.12);
}

.section-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(18, 27, 38, 0.95) 0%,
    rgba(12, 18, 27, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: 100%;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.notes-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(25, 36, 50, 0.85);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.notes-btn:hover {
  border-color: rgba(33, 229, 216, 0.35);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(33, 229, 216, 0.16);
}

.rows {
  display: grid;
  gap: 12px;
}

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

.row-label {
  color: #c7d3df;
  font-size: 15px;
}

.status-set {
  display: inline-flex;
  gap: 8px;
}

.status-btn {
  min-width: 36px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(25, 36, 50, 0.8);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.status-btn:hover {
  border-color: rgba(33, 229, 216, 0.4);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(33, 229, 216, 0.16);
}

.status-btn.is-active {
  border-color: rgba(33, 229, 216, 0.6);
  background: rgba(33, 229, 216, 0.14);
  color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(33, 229, 216, 0.2);
}

.section-stack {
  display: grid;
  gap: 18px;
}

.graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  min-width: 620px;
}

.graph-box {
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(
      circle at 40% 30%,
      rgba(33, 229, 216, 0.06),
      transparent 55%
    ),
    rgba(14, 20, 28, 0.9);
  display: grid;
  place-items: center;
  color: #c7d3df;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.graph-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-main);
  border-radius: 14px;
}
/* Login */
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(33, 229, 216, 0.06),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(33, 229, 216, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(33, 229, 216, 0.09),
      transparent 45%
    ),
    #0b1015;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(19, 28, 39, 0.95) 0%,
    rgba(12, 18, 28, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-brand .brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(33, 229, 216, 0.75);
}

.login-card h1 {
  margin: 6px 0 14px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.login-card .muted {
  margin-bottom: 18px;
  display: block;
}

.form-field {
  margin-bottom: 16px;
}

.login-card label {
  margin-bottom: 6px;
  display: block;
  color: #c7d3df;
  font-weight: 700;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 20, 28, 0.85);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
}

.login-card input::placeholder {
  color: #7c8b9c;
}

.login-card input:focus {
  outline: none;
  border-color: rgba(33, 229, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 229, 216, 0.16);
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px rgba(14, 20, 28, 0.85) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.login-actions {
  margin-top: 10px;
}

.password-wrap {
  position: relative;
}

.toggle-visibility {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #7c8b9c;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-visibility:hover {
  color: var(--accent);
}

.login-actions .btn {
  width: 100%;
}

.login-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Fingerprint Animation Styles */
.fp-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 10000;
}

.fp-container {
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(25, 36, 50, 0.95),
    rgba(16, 24, 34, 0.98)
  );
  border-radius: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35),
    0 10px 20px rgba(33, 229, 216, 0.12);
  display: flex;
  height: 80px;
  justify-content: center;
  position: relative;
  width: 200px;
  overflow: hidden;
  pointer-events: none;
}

.fp-text {
  color: var(--accent);
  position: absolute;
  transition: opacity 300ms;
  user-select: none;
}

.fp-print {
  left: -8px;
  opacity: 0;
  position: absolute;
  stroke: rgba(31, 229, 216, 0.45);
  top: -9px;
  transition: opacity 1ms;
  filter: drop-shadow(0 0 6px rgba(31, 229, 216, 0.35));
}

.fp-active {
  stroke: var(--accent);
  filter: drop-shadow(0 0 10px rgba(31, 229, 216, 0.55));
}

.fp-out {
  opacity: 1;
}

.fp-odd {
  stroke-dasharray: 0px 50px;
  stroke-dashoffset: 1px;
  transition: stroke-dasharray 1ms;
}

.fp-even {
  stroke-dasharray: 50px 50px;
  stroke-dashoffset: -41px;
  transition: stroke-dashoffset 1ms;
}

.fp-ok {
  opacity: 0;
}

.fp-ok path {
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(31, 229, 216, 0.6));
}

.fp-container.active {
  animation: 6s fp-container-anim;
}

.fp-container.active .fp-text {
  opacity: 0;
  animation: 6s fp-text-anim forwards;
}

.fp-container.active .fp-print {
  opacity: 1;
  transition: opacity 300ms 200ms;
}

.fp-container.active .fingerprint-base .fp-odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 800ms 100ms;
}

.fp-container.active .fingerprint-base .fp-even {
  stroke-dashoffset: 0px;
  transition: stroke-dashoffset 800ms;
}

.fp-container.active .fingerprint-active .fp-odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 2000ms 1500ms;
}

.fp-container.active .fingerprint-active .fp-even {
  stroke-dashoffset: 0px;
  transition: stroke-dashoffset 2000ms 1300ms;
}

.fp-container.active .fp-out {
  opacity: 0;
  transition: opacity 300ms 4100ms;
}

.fp-container.active .fp-ok {
  opacity: 1;
  animation: 6s fp-ok-anim forwards;
}

@keyframes fp-container-anim {
  0% {
    width: 200px;
  }
  6% {
    width: 80px;
  }
  71% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
  77% {
    transform: scale(1);
  }
  94% {
    width: 80px;
  }
  100% {
    width: 200px;
  }
}

@keyframes fp-text-anim {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  6% {
    opacity: 0;
    transform: scale(0.5);
  }
  93% {
    opacity: 0;
    transform: scale(0.5);
  }
  96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fp-ok-anim {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 0;
    transform: scale(0);
  }
  75% {
    opacity: 1;
    transform: scale(1.1);
  }
  77% {
    opacity: 1;
    transform: scale(1);
  }
  92% {
    opacity: 1;
    transform: scale(1);
  }
  96% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
  }
}

.scroll-pane {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  border-radius: 16px;
  padding: 2px 0;
}

.intro-banner {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(33, 229, 216, 0.18),
    rgba(19, 28, 39, 0.9)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.intro-banner h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.intro-banner p {
  margin: 0;
  color: #c7d3df;
  font-weight: 600;
}

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

.panel {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(17, 24, 33, 0.9);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #c7d3df;
  font-weight: 600;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 20, 28, 0.8);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(33, 229, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 229, 216, 0.16);
}

.banner {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(146, 163, 183, 0.35);
  background: rgba(19, 28, 39, 0.65);
}

.list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 21, 30, 0.9);
}

.site-ident-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
}

.site-ident {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(25, 36, 50, 0.95) 0%,
    rgba(16, 24, 34, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  flex: 1 1 auto;
  max-width: fit-content;
}

.site-ident .titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.site-ident[data-month-card] {
  cursor: pointer;
}

.month-select {
  display: none;
  margin-top: 8px;
  max-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.month-select:hover {
  border-color: var(--accent);
}

.month-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 229, 216, 0.1);
}

.site-ident.month-open .month-select {
  display: block;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.site-edit {
  white-space: nowrap;
}

.bubble-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(19, 28, 39, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.bubble-panel h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 22px;
}

.bubble-panel p {
  margin: 0;
  text-align: center;
  color: #c7d3df;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.site-grid {
  margin-top: 22px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.site-tile {
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(21, 31, 44, 0.95) 0%,
    rgba(14, 22, 32, 0.98) 100%
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.site-tile h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.site-tile .muted {
  display: block;
  color: #c7d3df;
}

.tagline {
  color: #c7d3df;
  font-size: 17px;
  max-width: 780px;
}

.cta-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
}

.cta-foot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(33, 229, 216, 0.8);
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    min-height: 100vh;
    border-right: 1px solid var(--border);
    border-radius: 0;
    z-index: 10;
  }

  .sidebar.is-open {
    display: flex;
  }

  .content {
    padding: 24px;
    position: relative;
    z-index: 1;
  }

  .site-ident-row {
    flex-direction: column;
    align-items: center;
  }

  .site-edit {
    width: 100%;
    text-align: center;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.68);
    backdrop-filter: blur(2px);
    z-index: 8;
    transition: opacity 0.18s ease;
  }

  body.nav-open .sidebar-overlay {
    display: block;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 20px 16px 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-row {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1;
    justify-content: center;
  }

  .content-inner,
  .site-ident-row,
  .site-ident,
  .bubble-panel,
  .site-grid,
  .site-tile {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }
}

/* Particle Animation Canvas */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(33, 229, 216, 0.06),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(33, 229, 216, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(33, 229, 216, 0.09),
      transparent 45%
    ),
    #0b1015; /* Dark background color */
}

/* Make sure your page content sits above the canvas */
body {
  position: relative;
}

/* If using a wrapper div, ensure it's above the canvas */
.page,
.app-container,
.main-content {
  position: relative;
  z-index: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 16, 21, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  width: 90%;
  max-width: 600px;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--panel);
  color: var(--text);
}

.modal-body {
  padding: 28px;
}

.modal-body textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
}

.modal-body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 229, 216, 0.1);
}

.modal-body textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
}

.modal-footer button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-discard {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-discard:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.btn-save {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 600;
}

.btn-save:hover {
  background: var(--accent-strong);
  box-shadow: 0 4px 16px rgba(31, 229, 216, 0.3);
}

/* Month Selector Styles - Old styles removed, using card-based approach */

/* Status button active state */
.status-btn.active {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 600;
  border-color: var(--accent);
}

/* Empty state */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Error message */
.error-message {
  padding: 40px 20px;
  text-align: center;
  color: #ff6b6b;
  font-size: 16px;
}

/* Voice Visualizer */
.voice-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin: 12px 0;
}

.voice-bar {
  width: 6px;
  height: 8px;
  border-radius: 4px;
  background: rgba(33, 229, 216, 0.4);
  transform-origin: bottom;
  transition: height 0.12s ease, background 0.12s ease;
}

.voice-visualizer.is-active .voice-bar {
  animation: pulseBar 0.6s ease-in-out infinite;
  background: rgba(33, 229, 216, 0.9);
}

@keyframes pulseBar {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 28px;
  }
}

.voice-visualizer .voice-bar:nth-child(2) {
  animation-delay: 0.05s;
}
.voice-visualizer .voice-bar:nth-child(3) {
  animation-delay: 0.1s;
}
.voice-visualizer .voice-bar:nth-child(4) {
  animation-delay: 0.15s;
}
.voice-visualizer .voice-bar:nth-child(5) {
  animation-delay: 0.2s;
}

/* Voice Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 16, 21, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  animation: modalSlideIn 0.3s ease;
}

.modal-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* Ad Preview Styles */
.ad-thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

.modal-image {
  width: min(90vw, 720px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  display: block;
  margin: 0 auto;
}

/* Modal close for ad preview - positioned absolutely */
.modal-overlay .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(19, 28, 39, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.modal-overlay .modal-close:hover {
  border-color: rgba(33, 229, 216, 0.45);
  box-shadow: var(--shadow-strong);
}

/* Performance Graphs Styles */
.graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  min-width: 620px;
}

.graph-box {
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(
      circle at 40% 30%,
      rgba(33, 229, 216, 0.06),
      transparent 55%
    ),
    rgba(14, 20, 28, 0.9);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  color: #c7d3df;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.graph-title {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
}

.graph-scroll {
  overflow-x: auto;
  padding: 2px;
}

/* SweetAlert theme: dark/teal */
.swal-themed {
  background: #0b1015;
  color: #e8ecef;
  border: 1px solid #1f2b39;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(33, 229, 216, 0.12);
}
.swal-themed-title {
  color: #1fe5d8;
  font-weight: 700;
}
.swal-themed-body {
  color: #c7d3df;
}
.swal-themed-confirm {
  background: linear-gradient(135deg, #1fe5d8, #43fff1) !important;
  color: #0b1015 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 12px 30px rgba(33, 229, 216, 0.3);
}
.swal-themed-cancel {
  background: rgba(14, 20, 28, 0.9) !important;
  color: #e8ecef !important;
  border: 1px solid #1f2b39 !important;
}
