:root {
  --bg: #050508;
  --bg-elevated: #0c0c10;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(88, 101, 242, 0.12);
  --glow-center: rgba(139, 92, 246, 0.08);
  --radius: 10px;
  --radius-pill: 999px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(
    ellipse 55% 45% at 50% 35%,
    var(--glow-center) 0%,
    var(--glow) 35%,
    transparent 70%
  );
  z-index: 0;
}

.nav-float {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 2rem), 920px);
  padding: 0.45rem 0.65rem 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
  color: #e4e4e7;
  opacity: 0.95;
}

.logo:hover .logo-mark {
  color: #fff;
}

.logo:hover {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.main-content {
  padding-top: 4.75rem;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-item.has-chevron .chevron {
  opacity: 0.7;
  margin-top: 1px;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badge-star {
  color: #eab308;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
}

.hero-line--bright {
  color: var(--text);
}

.hero-line--muted {
  color: #9ca3af;
}

.hero-desc {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: #fff;
  color: #09090b;
  border-color: #fff;
}

.btn-primary:hover {
  background: #f4f4f5;
  border-color: #f4f4f5;
}

.btn-primary .icon-arrow {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.showcase {
  position: relative;
  z-index: 1;
  padding: 0 1rem 3rem;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
}

.showcase-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(88, 101, 242, 0.06);
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-elevated);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  gap: 1.5rem 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1 1 140px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

.stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav--compact {
  flex: 0;
}

.nav--compact .nav-track {
  padding: 0.35rem 0.5rem;
}

.page-auth .nav-float {
  width: min(calc(100% - 2rem), 520px);
}

.auth-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 2.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.form-check input {
  accent-color: #fff;
}

.auth-link {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--text);
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
  border: none;
  cursor: pointer;
}

.auth-footer {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.page-dash {
  min-height: 100vh;
}

.page-glow--dash {
  display: none;
}

.dash-page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 232px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 0.85rem;
  background: rgba(8, 8, 11, 0.92);
  border-right: 1px solid var(--border);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.dash-brand:hover {
  color: #fff;
}

.dash-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.dash-side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-side-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.dash-side-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.dash-side-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-sidebar-cta {
  margin-top: auto;
  justify-content: center;
}

.dash-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.4) 0%, var(--bg) 32%);
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dash-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dash-user {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #09090b;
  background: #fff;
}

.dash-main {
  flex: 1;
  padding: 1.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.metric-card--accent {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.dash-panel {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(12, 12, 16, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ann-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ann-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ann-dot {
  width: 6px;
  height: 6px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #a78bfa;
  flex-shrink: 0;
}

.ann-text {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ann-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.info-list {
  margin: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row dt {
  margin: 0;
  color: var(--text-dim);
  font-weight: 500;
}

.info-row dd {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

/* —— Dashboard home (redesign) —— */
.dash-header--home {
  align-items: flex-start;
  padding-bottom: 1.25rem;
}

.dash-header-lead {
  max-width: 36rem;
}

.dash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-user--ring {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 0 4px rgba(139, 92, 246, 0.35);
}

.dash-user--lg {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.dash-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.dash-quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-quick-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-quick-link--muted {
  opacity: 0.92;
}

.dash-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  flex-shrink: 0;
}

.dash-quick-link--muted .dash-quick-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.dash-quick-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.dash-quick-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.stat-brick {
  position: relative;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.95) 0%, rgba(8, 8, 11, 0.98) 100%);
}

.stat-brick::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
}

.stat-brick--users {
  border-color: rgba(59, 130, 246, 0.2);
}

.stat-brick--attacks,
.stat-brick--events {
  border-color: rgba(245, 158, 11, 0.2);
}

.stat-brick--live {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.08);
}

.stat-brick-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-brick-icon {
  display: flex;
  color: var(--text-muted);
  opacity: 0.9;
}

.stat-brick--users .stat-brick-icon {
  color: #93c5fd;
}

.stat-brick--attacks .stat-brick-icon,
.stat-brick--events .stat-brick-icon {
  color: #fcd34d;
}

.stat-brick--live .stat-brick-icon {
  color: #c4b5fd;
}

.stat-brick-icon--pulse {
  animation: dash-pulse 2.2s ease-in-out infinite;
}

@keyframes dash-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.stat-brick-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-brick-value {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-brick-hint {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.dash-home-split {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
}

.dash-panel--feed {
  min-height: 200px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel-head .panel-title {
  margin: 0;
}

.panel-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.ann-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ann-timeline-item {
  position: relative;
  display: flex;
  gap: 0;
  padding-left: 1rem;
}

.ann-timeline-item:not(:last-child) {
  padding-bottom: 1rem;
}

.ann-timeline-line {
  position: absolute;
  left: 3px;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.1));
  border-radius: 1px;
}

.ann-timeline-item:last-child .ann-timeline-line {
  bottom: auto;
  height: 1rem;
}

.ann-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  z-index: 1;
}

.ann-timeline-card {
  padding-left: 0.85rem;
}

.ann-timeline-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.ann-timeline-body {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dash-account {
  padding: 1.2rem 1.25rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(20, 20, 28, 0.95), rgba(10, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.dash-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.dash-account-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.dash-account-email {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  word-break: break-all;
}

.dash-account-grid {
  margin: 0 0 1rem;
}

.dash-acct-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.dash-acct-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-acct-row dt {
  margin: 0;
  color: var(--text-dim);
  font-weight: 500;
}

.dash-acct-row dd {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

.dash-acct-row--emph dd {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.dash-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-account-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 960px) {
  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .dash-home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-float {
    width: calc(100% - 1.5rem);
    top: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    flex: none;
  }

  .nav-track {
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.5rem;
  }

  .main-content {
    padding-top: 6.75rem;
  }

  .dash-page {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
  }

  .dash-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    gap: 0.35rem;
  }

  .dash-side-link {
    padding: 0.45rem 0.55rem;
  }

  .dash-sidebar-cta {
    margin-top: 0;
    width: auto;
  }
}

@media (max-width: 640px) {
  .stat + .stat::before {
    display: none;
  }

  .stat {
    flex-basis: 45%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .auth-main {
    padding-top: 7rem;
  }
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.auth-muted {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.flash {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.flash--ok {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.flash--error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.ann-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.dash-panel--form {
  margin-bottom: 1.25rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.form-field--inline {
  flex: 1 1 200px;
  min-width: 160px;
}

.form-select {
  appearance: auto;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
  color: var(--text-dim);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.cell-clip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill--run {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.status-pill--done {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.form-inline {
  margin: 0;
}

.btn-xs {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.muted {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.doc-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-block .doc-h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.doc-block .doc-p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.doc-block .doc-p a {
  color: #a5b4fc;
  text-decoration: none;
}

.doc-block .doc-p a:hover {
  text-decoration: underline;
}

.doc-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.plans-header {
  align-items: flex-start;
}

.plans-page {
  padding-bottom: 2rem;
}

.plans-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.plans-summary-card {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plans-summary-card--accent {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
}

.plans-summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.plans-summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plans-summary .btn {
  align-self: center;
}

.plans-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 16px;
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid var(--border);
  background-clip: padding-box;
  overflow: hidden;
}

.plan-tier--featured {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(88, 101, 242, 0.08);
}

.plan-tier--current {
  border-color: rgba(255, 255, 255, 0.14);
}

.plan-ribbon {
  position: absolute;
  top: 0.85rem;
  right: -2rem;
  padding: 0.25rem 2.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0c10;
  background: linear-gradient(90deg, #c4b5fd, #a78bfa);
  transform: rotate(35deg);
  transform-origin: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.plan-tier-head {
  margin-bottom: 1rem;
  padding: 0.65rem 0 0;
}

.plan-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 6px;
}

.plan-tier-name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-tier-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.plan-tier-price {
  margin-bottom: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-tier-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-tier-cycle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

.plan-tier-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.plan-features {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-check {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #86efac;
  opacity: 0.9;
}

.plan-tier--featured .plan-check {
  color: #c4b5fd;
}

.plan-tier-form {
  margin-top: auto;
  padding-top: 0.25rem;
}

.plans-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 52rem;
}

.plans-footnote a {
  color: #a5b4fc;
  text-decoration: none;
}

.plans-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .plan-ribbon {
    right: -1.5rem;
    font-size: 0.6rem;
  }

  .plans-summary {
    flex-direction: column;
  }

  .plans-summary .btn {
    align-self: stretch;
    text-align: center;
  }
}
