:root {
  /* Background Colors */
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;

  /* Text Colors - Fixed contrast for WCAG AA compliance */
  --ink: #1c1917;
  --muted: #57534e;
  /* Darkened from #78716c for 4.5:1 contrast ratio */

  /* Accent Colors - Consolidated */
  --accent: #115e59;
  --accent-hover: #0d9488;
  --accent-muted: rgba(17, 94, 89, 0.12);
  --accent-soft: rgba(17, 94, 89, 0.06);
  --accent-warm: #ca8a04;

  /* Card & Surface Colors */
  --card: #ffffff;
  --card-strong: #ffffff;
  --border: rgba(28, 25, 23, 0.08);
  --on-accent: #fefbf7;
  --on-accent-strong: #ffffff;
  --surface-soft: rgba(28, 26, 23, 0.04);
  --surface-muted: rgba(28, 26, 23, 0.08);

  /* Shadow Scale - Standardized */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-panel:
    0 24px 40px -28px rgba(15, 23, 42, 0.28),
    0 16px 20px -24px rgba(15, 23, 42, 0.22);

  /* Border Radius Scale - Standardized */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Spacing Scale - 4px base unit */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-base: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Status Colors */
  --success: #10b981;
  --success-muted: rgba(16, 185, 129, 0.12);
  --error: #ef4444;
  --error-muted: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.12);
  --info: #3b82f6;
  --info-muted: rgba(59, 130, 246, 0.12);

  /* Legacy color mappings for backwards compatibility */
  --accent-bright: var(--accent-hover);
  --error-bg: var(--error-muted);
  --info-bg: var(--info-muted);
  --warning-bg: var(--warning-muted);

  /* Page Background */
  --page-glow:
    radial-gradient(900px 500px at 80% -10%,
      rgba(15, 118, 110, 0.12),
      transparent 60%),
    radial-gradient(700px 600px at -10% 20%,
      rgba(202, 138, 4, 0.08),
      transparent 55%);
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(15, 118, 110, 0.25);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  z-index: var(--z-toast);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-5);
  outline: 2px solid var(--on-accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--bg);
  background-image: var(--page-glow);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding: 40px clamp(18px, 6vw, 90px) 80px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
select,
textarea {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Dashboard page - remove default body padding for full-width layout */
body:has(.dashboard-shell):not(.light-mode),
body.dark-mode:has(.dashboard-shell) {
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.1), transparent 24%),
    linear-gradient(180deg, #061311 0%, #081715 38%, #0b1615 100%);
  background-attachment: fixed;
  color: #e6f1ee;
  --bg: #081311;
  --bg-alt: #0d1a18;
  --card: rgba(8, 19, 17, 0.9);
  --card-strong: #0d1b19;
  --border: rgba(148, 163, 184, 0.16);
  --ink: #e6f1ee;
  --muted: #9db2ae;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-muted: rgba(45, 212, 191, 0.16);
  --accent-soft: rgba(45, 212, 191, 0.08);
  --accent-warm: #f59e0b;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-muted: rgba(255, 255, 255, 0.07);
  --shadow-panel:
    0 28px 50px -34px rgba(0, 0, 0, 0.85),
    0 18px 22px -24px rgba(15, 23, 42, 0.65);
  --shadow-lg:
    0 22px 44px -24px rgba(0, 0, 0, 0.6),
    0 10px 18px -12px rgba(15, 23, 42, 0.45);
  --page-glow:
    radial-gradient(900px 520px at 82% -10%,
      rgba(45, 212, 191, 0.12),
      transparent 58%),
    radial-gradient(700px 560px at -8% 18%,
      rgba(13, 148, 136, 0.12),
      transparent 52%);
}

body.light-mode:has(.dashboard-shell) {
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(202, 138, 4, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fcfb 0%, #f3f7f6 40%, #eef4f2 100%);
  background-attachment: fixed;
  color: #16302d;
  --bg: #f5faf8;
  --bg-alt: #edf5f3;
  --card: rgba(255, 255, 255, 0.94);
  --card-strong: #ffffff;
  --border: rgba(17, 24, 39, 0.09);
  --ink: #16302d;
  --muted: #5f7671;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-muted: rgba(15, 118, 110, 0.14);
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-warm: #d97706;
  --surface-soft: rgba(15, 23, 42, 0.03);
  --surface-muted: rgba(15, 23, 42, 0.06);
  --shadow-panel:
    0 26px 50px -36px rgba(15, 23, 42, 0.18),
    0 16px 22px -18px rgba(15, 23, 42, 0.1);
  --shadow-lg:
    0 22px 40px -26px rgba(15, 23, 42, 0.18),
    0 12px 22px -16px rgba(15, 23, 42, 0.1);
  --page-glow:
    radial-gradient(900px 520px at 82% -10%,
      rgba(15, 118, 110, 0.12),
      transparent 58%),
    radial-gradient(700px 560px at -8% 18%,
      rgba(202, 138, 4, 0.08),
      transparent 52%);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(15, 118, 110, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  display: block;
  white-space: pre;
  background: transparent;
  padding: 0;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.topbar {
  display: block;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: transparent;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0;
  position: relative;
  box-shadow: 0 6px 15px rgba(15, 118, 110, 0.15);
}

.brand-mark::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--on-accent-strong);
  mask: url("/static/logo.svg") center / 70% 70% no-repeat;
  -webkit-mask: url("/static/logo.svg") center / 70% 70% no-repeat;
}

/* Brand text container for stacked title/subtitle */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text .brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-text .brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}

/* Fallback for direct brand-title/brand-subtitle without brand-text wrapper */
.brand>.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand>.brand-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link.cta {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.12);
}

.nav-link.cta-outline {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}

.nav-link:hover {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

.nav-link.is-active {
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-icon {
  display: none;
  width: 16px;
  height: 16px;
}

.theme-toggle[data-theme="light"] .icon-light,
.theme-toggle[data-theme="dark"] .icon-dark,
.theme-toggle[data-theme="system"] .icon-system {
  display: inline-flex;
}

.theme-toggle:hover {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle[data-theme="dark"] {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.15);
  color: var(--accent);
}

.dashboard-theme-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: calc(var(--z-sticky) + 1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.badge {
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 42ch;
}

.footer-brand .brand {
  width: fit-content;
}

.footer-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .brand {
    margin: 0 auto;
  }

  .footer-meta {
    justify-items: center;
  }
}

.meta {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  background: rgba(217, 119, 6, 0.14);
  color: #9a4b00;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  width: fit-content;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0;
  max-width: 560px;
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.hero-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.coming-soon-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 119, 6, 0.3);
  background: rgba(217, 119, 6, 0.12);
  color: #9a4b00;
  font-weight: 600;
  width: fit-content;
}

.coming-soon-banner span {
  color: var(--muted);
  font-weight: 500;
}

.hero-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.hero-item span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-item strong {
  font-size: 0.95rem;
}

.status-card {
  background: linear-gradient(180deg, rgba(11, 26, 24, 0.92), rgba(8, 18, 17, 0.96));
  padding: 22px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  display: grid;
  gap: 10px;
  backdrop-filter: blur(18px);
}

.status-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.status-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8ea29d;
}

.status-body {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-lg);
  width: fit-content;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
}

.status-body::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-body[data-tone="success"] {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
}

.status-body[data-tone="error"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.status-body[data-tone="info"] {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
}

.status-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-layout {
  display: grid;
  gap: 28px;
}

.auth-page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.auth-page-layout #authPanel {
  min-width: 0;
}

.auth-page-layout #appContent {
  grid-column: 1 / -1;
}

.auth-page-layout .status-card {
  position: sticky;
  top: 20px;
}

.app-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.app-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(28, 26, 23, 0.2);
  border-radius: var(--radius-sm);
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 26, 23, 0.3);
}

/* Dashboard Layout - Left Sidebar Style */
.dashboard-shell {
  display: block;
  min-height: 100vh;
}

.dashboard-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 20, 18, 0.96), rgba(9, 19, 17, 0.92)),
    rgba(9, 19, 17, 0.94);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sticky);
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(20px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.sidebar-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-close:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4) 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-item {
  margin: 0;
}

.dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px 14px;
  text-decoration: none;
  color: #93a8a3;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dashboard-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  transform: translateX(2px);
}

.dashboard-sidebar .nav-link.active {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.06)),
    rgba(255, 255, 255, 0.02);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.18);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.05);
}

.dashboard-sidebar .nav-link.active .nav-icon {
  color: var(--accent);
}

.nav-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-email {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 0.75rem;
  color: #8ea29d;
  text-transform: capitalize;
}

.dashboard-sidebar .logout-btn {
  width: 100%;
  justify-content: flex-start;
  color: var(--error);
}

.dashboard-sidebar .logout-btn:hover {
  background: var(--error-muted);
  color: var(--error);
}

.sidebar-toggle {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: calc(var(--z-sticky) + 1);
  background: rgba(9, 19, 17, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  cursor: pointer;
  color: var(--ink);
  display: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--surface-muted);
}

body.light-mode .dashboard-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 245, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.06);
}

body.light-mode .dashboard-sidebar .nav-link {
  color: #45625d;
}

body.light-mode .dashboard-sidebar .nav-link:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--ink);
}

body.light-mode .dashboard-sidebar .nav-link.active {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.08)),
    rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 118, 110, 0.22);
  color: #0f5f58;
}

body.light-mode .sidebar-user {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(17, 24, 39, 0.06);
}

body.light-mode .user-plan {
  color: #6d847f;
}

body.light-mode .sidebar-toggle {
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 28px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(6, 19, 17, 0.78), rgba(6, 19, 17, 0.22));
  background-image: var(--page-glow);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-width: 0;
}

body.light-mode .dashboard-main {
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 247, 0.72));
  background-image: var(--page-glow);
}

.dashboard-content {
  width: min(100%, 1000px);
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dashboard-panel {
  margin-bottom: 0;
}

.dashboard-content > * {
  width: 100%;
  min-width: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-panel {
  min-width: 0;
}

.sidebar-panel {
  min-width: 0;
}

.sidebar-panel .panel-header {
  margin-bottom: 14px;
}

.sidebar-panel h2 {
  font-size: 1.3rem;
}

.sidebar-panel h3 {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 28px;
}

.pricing {
  display: grid;
  gap: 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-lead,
.panel-lead {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.toggle-pill {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(15, 118, 110, 0.18);
  cursor: pointer;
}

.toggle-pill:hover {
  background: rgba(15, 118, 110, 0.16);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--card-strong);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  display: grid;
  gap: 16px;
  min-height: 320px;
  align-content: start;
  position: relative;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-card .amount {
  font-size: 2.25rem;
  font-weight: 700;
}

.price-card .per {
  color: var(--muted);
}

.price-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(17, 94, 89, 0.04), var(--card));
}

.price-card.featured button {
  background: var(--accent-bright);
}

.price-card button {
  align-self: end;
}

.price-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-summary {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.pricing-callout {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 94, 89, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(17, 94, 89, 0.08),
    rgba(202, 138, 4, 0.06)
  );
}

.pricing-callout strong {
  color: var(--ink);
}

.panel {
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  backdrop-filter: blur(18px);
}

.panel:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 212, 191, 0.16);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.panel h3 {
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.muted.small {
  font-size: 0.85rem;
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card-strong);
  transition: var(--transition);
}

input:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card-strong);
  cursor: pointer;
  transition: var(--transition);
}

select:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.addon-card .row button {
  flex: 1;
  min-width: max-content;
  font-size: 0.85rem;
  padding: 8px 12px;
}

.divider {
  height: 1px;
  background: var(--surface-muted);
  margin: 18px 0 12px;
}

.link {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 0;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.reset-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

button {
  background: var(--accent);
  color: var(--on-accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

button:hover {
  background: var(--accent-bright);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.5);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

button.ghost:hover {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.05);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
}

.dashboard-panel .panel-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.dashboard-panel .panel-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.plan-banner {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.08),
    rgba(15, 118, 110, 0.03)
  );
  margin: 14px 0 18px;
  display: grid;
  gap: 12px;
}

.plan-banner-title {
  font-weight: 700;
  color: var(--ink);
}

.plan-banner-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-banner-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-step {
  border-radius: var(--radius-lg);
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 600;
}

.plan-step.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.auth-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
  margin: 6px 0 18px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab.active {
  background: var(--card-strong);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.auth-stack {
  display: grid;
  gap: 14px;
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: grid;
  gap: 12px;
}

.auth-form {
  gap: 14px;
}

.auth-panel {
  animation: fade-in 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-link {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 0;
  font-weight: 600;
  box-shadow: none;
}

.btn-link::before {
  display: none;
}

.btn-link:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

/* Loading spinner */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

/* Forgot password link */
.forgot-link {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: var(--accent);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Code info */
.code-info {
  padding: 1rem;
  background: linear-gradient(180deg, var(--bg-alt), rgba(255, 255, 255, 0.7));
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.info-text {
  margin: 0;
  font-weight: 500;
  color: var(--success);
}

.info-text strong {
  font-weight: 600;
}

.info-subtext {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Code input hint */
.code-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Resend button styling */
.resend-code-btn {
  font-size: 0.875rem;
}

.resend-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.form-actions .btn {
  flex: 1;
  min-width: 150px;
}

.form-actions .btn-link {
  flex: initial;
  min-width: auto;
}

.entitlements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.sidebar-panel .entitlements-grid {
  grid-template-columns: 1fr;
}

.entitlement-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
  padding: 14px;
}

.entitlement-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.entitlement-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.addons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.addon-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.addon-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.addon-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: var(--z-modal-backdrop);
}

.modal-backdrop:focus {
  outline: none;
}

.modal {
  width: min(520px, 100%);
  background: var(--card-strong);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  display: grid;
  gap: 12px;
  z-index: var(--z-modal);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-body {
  color: var(--ink);
  line-height: 1.5;
}

.api-key-value {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.api-key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.api-key-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.team-member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.team-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.api-usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.locked-feature {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed var(--border);
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.08), transparent 32%),
    linear-gradient(180deg, var(--card), var(--card-strong));
}

.locked-overlay {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 560px;
  text-align: center;
}

.lock-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.locked-overlay h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: -0.02em;
}

.locked-overlay p {
  max-width: 44ch;
}

body.light-mode .locked-feature {
  border-color: rgba(17, 24, 39, 0.09);
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.95));
}

.rules-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  gap: 10px;
}

.rules-list {
  display: grid;
  gap: 8px;
}

.rules-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.rules-form select,
.rules-form input {
  width: 100%;
}

.security-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.security-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

.inline-form {
  display: flex;
  gap: 12px;
  margin: 16px 0 18px;
  align-items: flex-end;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-form input,
.inline-form select {
  flex: 1;
  margin-top: 0;
}

.inline-form button {
  flex-shrink: 0;
  white-space: nowrap;
}

.inline-form button[type="submit"] {
  align-self: flex-end;
}

.inline-help {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 16px;
}

.logs-toggle {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.logs-block {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.logs-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logs-controls select {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  background: var(--card-strong);
  color: var(--ink);
}

.logs-controls select option {
  color: var(--ink);
  background: var(--card-strong);
}

.logs-list {
  gap: 10px;
}

.log-load-more {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.log-load-more .ghost {
  min-width: 220px;
}

.log-end {
  text-align: center;
  padding-top: 4px;
}

.log-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  align-items: center;
  font-size: 0.9rem;
}

.log-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.log-status {
  font-weight: 600;
  text-transform: capitalize;
}

.log-status.accepted {
  color: #0f766e;
}

.log-status.failed {
  color: #b42318;
}

.log-status.rejected {
  color: #9a4b00;
}

.domain-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.domain-card:hover {
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: var(--shadow-sm);
}

.domain-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.domain-header>div:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.domain-name {
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.domain-meta {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.domain-mx {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.domain-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.domain-next-steps {
  padding: 14px 16px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.06);
}

.domain-next-steps-title {
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f766e;
}

.domain-next-steps-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.92rem;
}

.domain-next-steps code {
  font-size: 0.9em;
}

.domain-name,
.domain-meta,
.domain-mx {
  word-break: break-word;
}

.alias-form {
  display: grid;
  gap: 10px;
}

.alias-toolbar {
  display: flex;
  justify-content: flex-start;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkbox input {
  width: auto;
  margin: 0;
}

.alias-list {
  display: grid;
  gap: 10px;
}

.alias-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: 0.9rem;
  align-items: center;
}

.alias-item span {
  font-family: "IBM Plex Mono", monospace;
}

.alias-details {
  display: grid;
  gap: 4px;
}

.alias-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.reveal {
  animation: reveal 0.7s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .app-content {
    grid-template-columns: 1fr;
  }

  .auth-page-layout {
    grid-template-columns: 1fr;
  }

  .auth-page-layout .status-card {
    position: static;
  }

  .app-sidebar {
    position: static;
    max-height: none;
  }

  /* Dashboard responsive styles */
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.open {
    left: 0;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + 60px);
  }

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

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

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

  .panel-split {
    flex-direction: column;
  }

  .inline-form {
    flex-direction: column;
  }

  h1 {
    font-size: 2.2rem;
  }

  .topbar-inner {
    gap: 16px;
  }

  .topbar-actions {
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  body {
    padding: 32px 20px 60px;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .topbar-nav {
    display: none;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .domain-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .domain-header {
    align-items: flex-start;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-copy {
    gap: 18px;
  }

  .panel {
    padding: 20px;
  }

  .status-card {
    padding: 16px 18px;
  }

  .entitlements-grid,
  .addons-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .log-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .alias-item,
  .team-member-row,
  .api-key-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .alias-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-highlights,
  .dashboard-highlights,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading[aria-busy="true"] {
  /* Explicit aria-busy state for screen readers */
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(15, 118, 110, 0.08) 25%,
      rgba(15, 118, 110, 0.15) 50%,
      rgba(15, 118, 110, 0.08) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  /* Avoid header collision */
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

/* Mobile toast positioning */
@media (max-width: 720px) {
  .toast-container {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 20px;
    max-width: none;
  }
}

.toast {
  background: var(--card-strong);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  border-left: 4px solid var(--error);
}

.toast.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast.toast-info {
  border-left: 4px solid var(--info);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  font-size: 0.95rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: none;
  box-shadow: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-exit {
  animation: toast-out 0.3s ease-in-out forwards;
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Improved Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 118, 110, 0.05);
  border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.3);
  border-radius: var(--radius);
  transition: var(--transition);
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.3) rgba(15, 118, 110, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 118, 110, 0.5);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Pulse animation for active elements */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Shimmer effect for loading cards */
.shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Smooth hover effects for cards */
.domain-card,
.price-card,
.addon-card,
.entitlement-card {
  transition: var(--transition);
}

.domain-card:hover,
.addon-card:hover,
.entitlement-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Better mobile touch targets - apply at tablet and below */
@media (max-width: 980px) {

  button,
  a.nav-link,
  .tab,
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Dark mode support */
body.dark-mode {
  --bg: #141210;
  --bg-alt: #1d1a18;
  --ink: #f7f2ed;
  --muted: #a9a39c;
  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-warm: #f59e0b;
  --card: #1d1a18;
  --card-strong: #22201e;
  --border: rgba(255, 255, 255, 0.12);
  --on-accent: #0b1412;
  --on-accent-strong: #08110f;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-muted: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
  --page-glow:
    radial-gradient(900px 500px at 80% -10%,
      rgba(45, 212, 191, 0.14),
      transparent 60%),
    radial-gradient(700px 600px at -10% 20%,
      rgba(245, 158, 11, 0.1),
      transparent 55%);
}

body.light-mode {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --ink: #1c1917;
  --muted: #78716c;
  --accent: #115e59;
  --accent-bright: #0d9488;
  --accent-warm: #ca8a04;
  --card: #ffffff;
  --card-strong: #ffffff;
  --border: rgba(28, 25, 23, 0.08);
  --on-accent: #fefbf7;
  --on-accent-strong: #ffffff;
  --surface-soft: rgba(28, 26, 23, 0.04);
  --surface-muted: rgba(28, 26, 23, 0.08);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --page-glow:
    radial-gradient(900px 500px at 80% -10%,
      rgba(15, 118, 110, 0.12),
      transparent 60%),
    radial-gradient(700px 600px at -10% 20%,
      rgba(202, 138, 4, 0.08),
      transparent 55%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --bg-alt: #1d1a18;
    --ink: #f7f2ed;
    --muted: #a9a39c;
    --accent: #2dd4bf;
    --accent-bright: #5eead4;
    --accent-warm: #f59e0b;
    --card: #1d1a18;
    --card-strong: #22201e;
    --border: rgba(255, 255, 255, 0.12);
    --on-accent: #0b1412;
    --on-accent-strong: #08110f;
    --surface-soft: rgba(255, 255, 255, 0.05);
    --surface-muted: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
    --page-glow:
      radial-gradient(900px 500px at 80% -10%,
        rgba(45, 212, 191, 0.14),
        transparent 60%),
      radial-gradient(700px 600px at -10% 20%,
        rgba(245, 158, 11, 0.1),
        transparent 55%);
  }
}

/* Usage Dashboard Styles */
.usage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.usage-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.usage-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.usage-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.usage-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.usage-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}

.usage-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.usage-bar {
  height: 6px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition:
    width 0.3s ease,
    background-color 0.2s ease;
}

.usage-bar-fill.status-ok {
  background: linear-gradient(90deg, #10b981, #059669);
}

.usage-bar-fill.status-warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.usage-bar-fill.status-critical {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@media (max-width: 720px) {
  .usage-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Billing History Styles */
.billing-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.upcoming-charge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.charge-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.charge-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.charge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.charge-item:last-child {
  border-bottom: none;
}

.charge-item-name {
  color: var(--ink);
  flex: 1;
}

.charge-item-amount {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.charge-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  padding-top: 8px;
  border-top: 2px solid var(--accent);
}

.charge-total-label {
  color: var(--muted);
}

.charge-total-amount {
  color: var(--accent);
}

.billing-invoices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invoice-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.invoice-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.invoice-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invoice-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.invoice-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.invoice-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
}

.invoice-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.invoice-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.invoice-status.draft {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.invoice-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.invoice-download {
  font-size: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.invoice-download:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.invoice-details {
  margin-top: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.invoice-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--muted);
}

.invoice-line-description {
  flex: 1;
}

.invoice-line-amount {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  margin-left: 8px;
}

.empty-state {
  text-align: center;
  padding: 24px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(17, 94, 89, 0.2);
  background: linear-gradient(180deg, rgba(17, 94, 89, 0.06), rgba(255, 255, 255, 0.92));
}

body.dark-mode .empty-state {
  color: #b9c2bc;
  border-color: rgba(94, 234, 212, 0.22);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(16, 28, 26, 0.9));
}

.auth-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-highlights,
.dashboard-highlights,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.highlight-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 17, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.highlight-card strong {
  font-size: 0.94rem;
  color: #f3fbf9;
}

.highlight-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(17, 94, 89, 0.05);
  border: 1px solid rgba(17, 94, 89, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-intro {
  display: grid;
  gap: 16px;
  padding: 34px 36px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(10, 26, 24, 0.94), rgba(8, 18, 17, 0.98));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  position: relative;
}

body.light-mode .dashboard-intro {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, rgba(202, 138, 4, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 251, 0.98));
}

.dashboard-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 32%);
  pointer-events: none;
}

body.light-mode .dashboard-intro::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 32%);
}

body.light-mode .highlight-card {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.94)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 24px -20px rgba(15, 23, 42, 0.14);
}

body.light-mode .highlight-card strong {
  color: #16302d;
}

body.light-mode .status-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 245, 0.94));
  border-color: rgba(17, 24, 39, 0.08);
}

body.light-mode .quick-link {
  color: #0f5f58;
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
}

body.light-mode .quick-link:hover {
  background: rgba(15, 118, 110, 0.14);
  color: #0b4b46;
}

.dashboard-intro h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.25rem, 3.6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.dashboard-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

.quick-link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #dff8f3;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.18);
  font-weight: 600;
}

.quick-link:hover {
  background: rgba(45, 212, 191, 0.18);
  color: #ffffff;
}

.panel-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-split > * {
  min-width: 0;
}

.surface-note {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 191, 0.12);
  background: rgba(45, 212, 191, 0.08);
  color: var(--muted);
  line-height: 1.5;
}

.surface-note strong {
  color: var(--ink);
}

.metric-card,
.overview-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(17, 94, 89, 0.03)
  );
  box-shadow: var(--shadow-sm);
}

.overview-card strong {
  display: block;
  margin-bottom: 6px;
}

.overview-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.dark-mode .overview-card,
body.dark-mode .highlight-card {
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.08),
    rgba(34, 32, 30, 0.96)
  );
  border-color: rgba(45, 212, 191, 0.16);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .overview-card strong,
body.dark-mode .highlight-card strong {
  color: #f8f4ef;
}

body.dark-mode .overview-card span,
body.dark-mode .highlight-card span {
  color: #c8c0b7;
}

body.dark-mode .status-card {
  background: linear-gradient(
    180deg,
    rgba(29, 26, 24, 0.96),
    rgba(34, 32, 30, 0.98)
  );
  border-color: rgba(45, 212, 191, 0.14);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark-mode .status-title {
  color: #b8b0a8;
}

body.dark-mode .status-body[data-tone="info"] {
  color: #8fdcff;
  background: rgba(59, 130, 246, 0.18);
}

body.dark-mode .status-meta,
body.dark-mode .plan-banner-body {
  color: #d2cac2;
}

body.dark-mode .plan-banner {
  border-color: rgba(45, 212, 191, 0.18);
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.12),
    rgba(29, 26, 24, 0.92)
  );
}

body.dark-mode .plan-banner-title {
  color: #f7f2ed;
}

body.dark-mode .plan-step {
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(45, 212, 191, 0.08);
  color: #a7f3e8;
}

/* Addon Recommendations Styles */
.addons-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.recommendation-card {
  background: linear-gradient(135deg,
      rgba(20, 184, 166, 0.05) 0%,
      rgba(15, 118, 110, 0.02) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.recommendation-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.recommendation-card.is-popular {
  border: 2px solid var(--accent-bright);
  background: linear-gradient(135deg,
      rgba(20, 184, 166, 0.1) 0%,
      rgba(15, 118, 110, 0.05) 100%);
}

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

.recommendation-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.recommendation-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recommendation-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.recommendation-badge {
  background: var(--accent-bright);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.recommendation-description {
  margin: 0 0 8px 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.recommendation-reason {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.recommendation-adoption {
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(15, 118, 110, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.recommendation-adoption strong {
  color: var(--accent);
}

.recommendation-cost-comparison {
  background: var(--card-strong);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.cost-label {
  color: var(--muted);
  flex: 1;
}

.cost-value {
  font-weight: 600;
  color: var(--ink);
  min-width: 80px;
  text-align: right;
}

.cost-line.is-bundle {
  border-top: 1px solid rgba(15, 118, 110, 0.15);
  padding-top: 8px;
  margin-top: 8px;
}

.cost-line.is-bundle .cost-label {
  color: var(--accent);
  font-weight: 600;
}

.cost-line.is-bundle .cost-value {
  color: var(--accent);
  font-weight: 700;
}

.cost-savings {
  background: var(--success-muted);
  color: #059669;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: auto;
}

.recommendation-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.addon-btn-small {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 140px;
}

.addon-btn-small:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-sm);
}

.addon-btn-small:active {
  transform: translateY(0);
}

.addon-btn-small:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .recommendation-card {
    padding: 12px;
  }

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

  .recommendation-badge {
    align-self: flex-start;
  }

  .recommendation-actions {
    flex-direction: column;
  }

  .addon-btn-small {
    min-width: unset;
  }

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

  .cost-value {
    text-align: left;
    min-width: unset;
  }

  .invoice-item {
    flex-direction: column;
  }

  .invoice-actions {
    align-items: flex-start;
  }
}

/* Target verification badges */
.target-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.target-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.target-badge .target-email {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.target-badge .target-status {
  font-size: 14px;
}

.target-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.target-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.target-expired {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.target-badge .resend-verification {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.target-badge .resend-verification:hover {
  background: rgba(255, 255, 255, 0.2);
}

.target-badge .resend-verification:active {
  transform: scale(0.95);
}

.target-badge .resend-verification:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .target-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .target-badge {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================
   Enhanced Header & Conversion Styles
   ============================================ */

/* Header Structure */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Primary CTA Button */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-bright) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(15, 118, 110, 0.25),
    0 2px 4px rgba(15, 118, 110, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(15, 118, 110, 0.35),
    0 4px 8px rgba(15, 118, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-primary:hover::before {
  opacity: 1;
}

.cta-primary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(15, 118, 110, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(3px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(17, 94, 89, 0.15);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.cta-secondary:hover {
  color: var(--accent);
  border-color: rgba(17, 94, 89, 0.3);
  background: rgba(17, 94, 89, 0.05);
}

/* Sign In Link */
.nav-link-login {
  font-weight: 600;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.nav-link-login:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.3);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 100;
  padding: 100px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.mobile-login {
  display: block;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.mobile-login:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.3);
}

.cta-mobile {
  padding: 16px 24px;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    animation: none;
  }
}

/* Body state for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Trust Indicators */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 10px 24px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--success);
}

/* Newsletter CTA Section */
.newsletter-cta {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.08) 0%,
      rgba(15, 118, 110, 0.02) 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.newsletter-cta h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.newsletter-cta p {
  max-width: 400px;
  margin: 0 auto 20px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
}

/* Floating CTA for Blog Posts */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-width: 320px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.floating-cta-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Social Proof Badge */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--success-muted);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
}

.social-proof-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Responsive Styles */
@media (max-width: 980px) {
  .topbar-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav-link-login {
    display: none;
  }

  .cta-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .cta-primary .cta-text {
    display: none;
  }

  .cta-primary::after {
    content: "Get Started";
  }

  .trust-bar {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px 0;
  }

  .topbar-inner {
    gap: 16px;
  }

  .brand-text .brand-title {
    font-size: 1rem;
  }

  .brand-text .brand-subtitle {
    font-size: 0.75rem;
  }

  .newsletter-cta {
    padding: 24px 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .floating-cta {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* Dark Mode Adjustments */
body.dark-mode .cta-primary {
  /* Use bright accent with black text for optimal contrast */
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-bright) 100%);
  color: #0b1412;
  /* Black text on bright teal for WCAG AAA contrast */
  box-shadow:
    0 4px 12px rgba(45, 212, 191, 0.25),
    0 2px 4px rgba(45, 212, 191, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark-mode .cta-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
  box-shadow:
    0 8px 20px rgba(45, 212, 191, 0.35),
    0 4px 8px rgba(45, 212, 191, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.dark-mode .cta-primary:active {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

body.dark-mode .cta-secondary {
  color: #f7f2ed;
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(29, 26, 24, 0.88);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .cta-secondary:hover {
  color: var(--accent-bright);
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.08);
}

body.dark-mode .mobile-menu {
  background: var(--bg);
}

/* ==========================================================================
   Blog Post Styles - Uniform across all blog pages
   ========================================================================== */

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.blog-header {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.blog-title {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
  max-width: none;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  align-items: center;
}

.badge {
  background: var(--accent-muted, rgba(15, 118, 110, 0.12));
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 0.8rem;
}

.blog-content {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
  margin-top: 1.5rem;
  color: var(--ink);
}

.blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--ink);
}

.blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.blog-content p {
  margin-bottom: 1.25rem;
  color: var(--ink);
  max-width: none;
}

.blog-content ul,
.blog-content ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
  color: var(--ink);
}

.blog-content li {
  margin-bottom: 0.75rem;
}

.blog-content code {
  background: var(--surface-soft);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.blog-content pre {
  background: var(--surface-muted);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: var(--ink);
}

.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: var(--accent-hover, var(--accent));
}

.blog-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* Table of Contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc h2,
.toc h3,
.toc h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.toc ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

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

.toc a:hover {
  color: var(--accent);
}

/* Info/Warning/Success Boxes - Theme-aware */
.highlight-box,
.info-box {
  background: var(--accent-muted, rgba(15, 118, 110, 0.08));
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

.warning-box {
  background: var(--warning-muted, rgba(245, 158, 11, 0.12));
  border-left: 4px solid var(--warning, #f59e0b);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

.success-box {
  background: var(--success-muted, rgba(16, 185, 129, 0.12));
  border-left: 4px solid var(--success, #10b981);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

.error-box {
  background: var(--error-muted, rgba(239, 68, 68, 0.12));
  border-left: 4px solid var(--error, #ef4444);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Pros/Cons Grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-cons>div {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.pros-cons h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink);
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--ink);
}

/* Blog CTA Section */
.blog-cta,
.cta-section,
.blog-footer-cta {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.95),
      rgba(20, 184, 166, 0.85));
  color: #fff !important;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.blog-cta h2,
.blog-cta h3,
.cta-section h2,
.cta-section h3,
.blog-footer-cta h2,
.blog-footer-cta h3 {
  margin: 0 0 0.75rem !important;
  color: #fff !important;
  border: none !important;
}

.blog-cta p,
.cta-section p,
.blog-footer-cta p {
  margin: 0 0 1.5rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
}

.blog-cta a,
.cta-section a,
.blog-footer-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: var(--accent) !important;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.blog-cta a:hover,
.cta-section a:hover,
.blog-footer-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: #f8fafc !important;
}

/* Blog Related Posts */
.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-related h3 {
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.blog-related-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-related-card:hover {
  border-color: rgba(15, 118, 110, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.blog-related-card h4 {
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.blog-related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Domain Diagram Box */
.domain-diagram {
  background: var(--accent-muted, rgba(15, 118, 110, 0.05));
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.domain-box {
  display: inline-block;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 0.5rem;
}

.arrow {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0.5rem;
  display: inline-block;
}

/* Tech/Workflow Cards */
.tech-card,
.workflow-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

/* Cost Savings Box */
.cost-savings {
  background: var(--success-muted, rgba(16, 185, 129, 0.1));
  border-left: 4px solid var(--success, #10b981);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: none;
  box-sizing: border-box;
}

/* Privacy Box */
.privacy-box {
  background: var(--info-muted, rgba(59, 130, 246, 0.12));
  border-left: 4px solid var(--info, #3b82f6);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Blog Layout with TOC */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 980px) {
  .blog-layout {
    grid-template-columns: 280px 1fr;
  }

  .toc {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .blog-cta,
  .cta-section {
    padding: 1.75rem;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode specific adjustments for blog */
body.dark-mode .toc {
  background: var(--card);
}

body.dark-mode .blog-content code {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .blog-content pre {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .domain-box {
  background: var(--card-strong);
}

body.dark-mode .blog-cta,
body.dark-mode .cta-section {
  background: linear-gradient(135deg,
      rgba(17, 94, 89, 0.95),
      rgba(20, 184, 166, 0.85));
}

body.dark-mode .blog-cta a,
body.dark-mode .cta-section a {
  background: var(--ink);
  color: var(--accent);
}

/* ==========================================================================
   Additional Blog Component Styles
   ========================================================================== */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box,
.stat-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Benchmark Colors */
.benchmark-good {
  color: #28a745;
  font-weight: 600;
}

.benchmark-bad {
  color: #dc3545;
  font-weight: 600;
}

.benchmark-warning {
  color: #ffc107;
  font-weight: 600;
}

/* Benefit Grid */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.benefit-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Blog Card Grid (for index page) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  border-color: rgba(15, 118, 110, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.1),
      rgba(20, 184, 166, 0.05));
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  color: var(--ink);
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Blog Search */
.blog-search {
  margin: 2rem 0;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
  outline: none;
}

.blog-search input:focus {
  border-color: var(--accent);
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.blog-tag {
  display: inline-block;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.blog-tag:hover {
  background: rgba(15, 118, 110, 0.2);
}

/* Blog Footer CTA */
.blog-footer-cta {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.95),
      rgba(20, 184, 166, 0.85));
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  text-align: center;
}

.blog-footer-cta a {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: var(--accent);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* Challenge List */
.challenge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.challenge-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Checklist */
.checklist {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.checklist h4 {
  margin: 0 0 1rem;
  color: var(--ink);
}

.checklist ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.checklist li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0.5rem;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: -1.5rem;
}

.checklist-item {
  margin-bottom: 0.75rem;
}

.checklist-item input[type="checkbox"] {
  margin-right: 0.5rem;
  min-height: 48px;
  min-width: 48px;
}

/* Code Block */
.code-block {
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Comparison Grid & Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.comparison-card h4 {
  margin: 0 0 1rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.comparison-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-item h4 {
  margin: 0 0 0.5rem;
  color: var(--accent);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th {
  background: rgba(15, 118, 110, 0.1);
  padding: 1rem;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--ink);
}

.comparison-table td {
  padding: 1rem;
  border: 1px solid var(--border);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: #28a745;
  font-weight: bold;
}

.comparison-table .cross {
  color: #dc3545;
  font-weight: bold;
}

/* Cost Comparison */
.cost-comparison {
  margin: 2rem 0;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.cost-table th {
  background: rgba(15, 118, 110, 0.08);
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.cost-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.cost-item:last-child {
  border-bottom: none;
}

/* Device Section */
.device-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.device-icon {
  font-size: 2.5rem;
}

/* Email Types */
.email-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.email-type {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.email-type-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Inbox Box */
.inbox-box {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 0.5rem;
}

/* Integration Table */
.integration-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.integration-table th {
  background: rgba(15, 118, 110, 0.1);
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.integration-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.integration-table tr:last-child td {
  border-bottom: none;
}

.integration-tag {
  display: inline-block;
  background: var(--surface-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 0.2rem;
}

/* Method Card */
.method-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.method-icon {
  font-size: 2rem;
}

.method-badge {
  display: inline-block;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Metric Card */
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Nonprofit Card */
.nonprofit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.pricing-table th {
  background: rgba(15, 118, 110, 0.1);
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.pricing-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* Risk Box */
.risk-box {
  background: rgba(239, 68, 68, 0.05);
  border-left: 4px solid #ef4444;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* ROI Box */
.roi-box {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.1),
      rgba(20, 184, 166, 0.05));
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Scenario Box & Card */
.scenario-box {
  background: rgba(239, 68, 68, 0.05);
  border-left: 4px solid #dc3545;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

.scenario-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.scenario-card h4 {
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.scenario-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Step List */
.step-list {
  counter-reset: step;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}

/* Steps List (alternative) */
.steps-list {
  counter-reset: step-counter;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.steps-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Time Saved Badge */
.time-saved {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item h4 {
  margin: 0 0 0.5rem;
  color: var(--ink);
}

/* Tip Box */
.tip-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid #0d6efd;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Workflow Card */
.workflow-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.workflow-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workflow-icon {
  font-size: 2.5rem;
}

/* Automation Box */
.automation-box {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.08),
      rgba(20, 184, 166, 0.03));
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Price Display */
.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 1rem 0;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {

  .stats-grid,
  .benefit-grid,
  .comparison-grid,
  .feature-list,
  .challenge-list,
  .email-types {
    grid-template-columns: 1fr;
  }

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

  .method-header,
  .workflow-header,
  .device-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark Mode Adjustments for Additional Components */
body.dark-mode .checklist {
  background: var(--card);
}

body.dark-mode .comparison-table th,
body.dark-mode .cost-table th,
body.dark-mode .integration-table th,
body.dark-mode .pricing-table th {
  background: rgba(15, 118, 110, 0.15);
}

body.dark-mode .tip-box {
  background: rgba(59, 130, 246, 0.12);
}

body.dark-mode .risk-box,
body.dark-mode .scenario-box {
  background: rgba(239, 68, 68, 0.1);
}

body.dark-mode .automation-box {
  background: linear-gradient(135deg,
      rgba(15, 118, 110, 0.12),
      rgba(20, 184, 166, 0.05));
}

/* Background Decorative Elements */
.bg-sheen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 80% 50% at 50% 0%,
      rgba(15, 118, 110, 0.08),
      transparent 50%);
}

.gridlines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(28, 25, 23, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Analytics Panel Styles */
.analytics-panel {
  margin-top: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.analytics-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.analytics-panel .panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.analytics-panel .panel-header select {
  padding: 6px 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.analytics-panel .panel-header select:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

.analytics-panel .panel-header select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-chart-container {
  height: 200px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .analytics-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Logs Search Form Styles */
.logs-search-form {
  margin-bottom: 16px;
}

.logs-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.logs-search-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.logs-search-input:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

.logs-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.logs-search-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.logs-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.logs-filters-row select,
.logs-filters-row input[type="date"] {
  padding: 8px 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.logs-filters-row select:hover,
.logs-filters-row input[type="date"]:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

.logs-filters-row select:focus,
.logs-filters-row input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.logs-filters-row input[type="date"] {
  min-width: 140px;
}

.logs-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Subscription Invoices Styles */
.subscription-invoices {
  margin-top: 8px;
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.invoice-row:last-child {
  border-bottom: none;
}

.invoice-number {
  font-weight: 500;
  font-size: 0.9rem;
}

.invoice-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.invoice-amount {
  font-weight: 600;
  color: var(--accent);
}

.invoice-row .ghost.small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* Empty state for analytics */
.analytics-panel .muted.small {
  text-align: center;
  padding: 20px;
}
