:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;

  /* Dark-only core tokens */
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #24324a;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-tertiary: var(--text-muted);
  --link: #93c5fd;
  --primary: #667eea;
  --primary-foreground: #0b1020;
  --primary-color: var(--primary);
  --primary-bg: rgba(59, 130, 246, 0.2);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --success-foreground: #6ee7b7;
  --danger-foreground: #fca5a5;
  --warning-foreground: #fde68a;
  --control-size-touch: 2.75rem;
  --control-size-compact: 2rem;
  --overlay-layer: 1200;
  --popover-layer: 1100;
  --overlay-radius: 1rem;
  --overlay-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  --focus-ring: #67e8f9;
  --content-measure: 70ch;

  /* Existing token aliases for legacy styles */
  --background: var(--bg);
  --surface-elevated: var(--surface-2);
  --border-subtle: #1b263a;
  --text-primary: var(--text);
  --text-secondary: #cbd5e1;
  --primary-hover: #5568d3;
  --primary-light: rgba(102, 126, 234, 0.12);
  --accent: #764ba2;
  --accent-hover: #6a4391;
  --success-light: rgba(16, 185, 129, 0.12);
  --danger-light: rgba(239, 68, 68, 0.12);
  --warning-light: rgba(245, 158, 11, 0.12);

  --bg-primary: var(--bg);
  --bg-secondary: var(--surface);
  --bg-tertiary: var(--surface-2);
  --background-secondary: var(--surface);
  --background-tertiary: var(--surface-2);
  --bg-hover: rgba(148, 163, 184, 0.12);
  --card-bg: var(--surface);
  --card-background: var(--surface);
  --border-color: var(--border);
  --hover-bg: rgba(148, 163, 184, 0.12);
  --hover-background: rgba(148, 163, 184, 0.12);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

  --color-text-primary: var(--text);
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: var(--text-muted);
  --color-foreground: var(--text);
  --color-foreground-muted: var(--text-muted);
  --color-background: var(--bg);
  --color-background-subtle: var(--surface);
  --color-error: var(--danger);
  --color-error-background: rgba(239, 68, 68, 0.12);
  --color-error-border: rgba(239, 68, 68, 0.4);
  --color-border: var(--border);
  --color-background-secondary: var(--surface);
  --color-background-hover: var(--surface-2);
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-hover);
  --color-success: var(--success);
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-primary-hover: var(--primary-hover);

  --accent-primary: var(--primary);
  --accent-primary-hover: var(--primary-hover);
  --accent-secondary: #475569;
  --accent-secondary-hover: #334155;
  --accent-color: var(--primary);

  --secondary-text: var(--text-muted);
  --secondary-bg: var(--surface-2);
  --text-color: var(--text);
  --border-dark: var(--border);
  --text-dark: var(--text);
  --text-secondary-dark: #cbd5e1;

  --success-color: var(--success);
  --warning-color: var(--warning);
  --error-color: var(--danger);

  /* Hero gradient tokens */
  --hero-from: #667eea;
  --hero-to: #764ba2;
  --on-hero-strong: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

#root {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

/* Spinner animation for chunk loading */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* NavDropdown.css */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-dropdown .nav-link:hover,
.nav-dropdown .nav-link:focus-visible {
  background-color: var(--hover-bg);
}

.nav-dropdown .nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-dropdown .nav-link.active {
  color: var(--hero-from, #667eea);
  font-weight: 600;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  color: currentColor;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  margin-top: 0.25rem;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: block;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background-color: var(--hover-bg);
}

.dropdown-item:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-item-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.dropdown-item-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
/* Dark-only theme uses global tokens */

/* Mobile adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    min-width: auto;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }

  .dropdown-menu.open {
    transform: none;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    margin-left: 1rem;
    border-left: 2px solid var(--border-color);
  }
}
.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.profile-trigger:hover {
  background: var(--color-background-hover);
  border-color: var(--color-primary);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #586bcf 0%, #764ba2 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.profile-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  transition: transform 0.2s ease;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.profile-chevron.open {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-dropdown-header {
  padding: 1rem;
  background: var(--color-background-secondary);
  border-radius: 8px 8px 0 0;
}

.profile-dropdown-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.profile-dropdown-email {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-dropdown-item:hover {
  background: var(--color-background-hover);
}

.profile-dropdown-item.route-exit-blocked {
  cursor: not-allowed;
  opacity: 0.68;
}

.profile-dropdown-item svg {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.profile-dropdown-logout {
  color: var(--danger-foreground);
}

.profile-dropdown-logout svg {
  color: var(--danger-foreground);
}

.profile-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .profile-name {
    display: none;
  }

  .profile-trigger {
    padding: 0.5rem;
  }

  .profile-dropdown {
    right: -1rem;
    min-width: 200px;
  }
}
.header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  width: 100%;
  background-color: var(--bg-primary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 110;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.logo-text {
  white-space: nowrap;
}

.header [aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.68;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  align-items: center;
}

.nav-links > li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.auth-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  background: none;
  border: none;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  line-height: 1;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.2);
  font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 110;
}

.mobile-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-auth-btn {
  white-space: nowrap;
}

.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  background-color: var(--bg-hover);
}

.mobile-menu-button:focus {
  outline: 2px solid var(--primary-color, #3b82f6);
  outline-offset: 2px;
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 22px;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  z-index: var(--overlay-layer, 1200);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 2rem;
  outline: none;
}

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

.mobile-menu-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 500px);
  min-width: 0;
  padding: 0 1rem 1rem;
}

.mobile-menu-dialog-header h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.mobile-menu-exit-block-description {
  width: min(calc(100% - 2rem), 468px);
  margin: 0 1rem 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--warning) 42%, transparent);
  border-radius: 8px;
  background: var(--warning-light);
  color: #fde68a;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.mobile-menu-overlay .mobile-nav-links [aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.68;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-size-touch, 44px);
  height: var(--control-size-touch, 44px);
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--control-radius, 8px);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu-close:hover {
  background: var(--bg-hover);
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-auth-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.mobile-nav-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
}

.mobile-nav-link:hover {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.2);
}

.mobile-nav-link.active {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.2);
}
/* Dark-only theme uses global tokens */

/* Responsive design */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (min-width: 1101px) and (max-width: 1300px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }

  .nav-links {
    gap: 0.35rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .logo {
    font-size: 1.25rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .mobile-nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .mobile-menu-overlay {
    padding-top: 70px;
  }

  .mobile-dropdown-items {
    max-height: 300px;
  }

  .mobile-dropdown-item-name {
    font-size: 0.95rem;
  }

  .mobile-dropdown-item-description {
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  .logo-text {
    display: none;
  }
}

/* Book a Demo Button & Auth Section */
.header-cta-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.header-user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.auth-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-btn,
.dashboard-btn {
  white-space: nowrap;
}

.book-demo-btn {
  white-space: nowrap;
}

/* Mobile Navigation Updates */
.mobile-nav-item {
  width: 100%;
}

.mobile-dropdown-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.mobile-dropdown-arrow.open {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-color, #e2e8f0);
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.mobile-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus-visible {
  background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.mobile-dropdown-item:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.mobile-dropdown-item-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.mobile-dropdown-item-description {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.mobile-cta {
  margin-top: 1.5rem;
  padding: 0 1rem;
  width: 100%;
}

.mobile-auth-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.mobile-book-demo-btn,
.mobile-login-btn,
.mobile-dashboard-btn,
.mobile-logout-btn {
  width: 100%;
  justify-content: center;
}

/* Dark-only theme uses global tokens */
/* Footer Styles - High Contrast & Accessibility */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-top: auto;
}

body.dashboard-route .footer {
  position: relative;
  z-index: 1;
}

body.dashboard-route .footer .container {
  padding-left: calc(2rem + 260px);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

.footer-link:hover,
.footer-link:focus {
  color: var(--text-primary);
  text-decoration: underline;
  outline: none;
}

.footer-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cookie settings link styling */
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  font-style: italic;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.3;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--text-primary);
  text-decoration: underline;
  outline: none;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer .container {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: left;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-link,
  .footer-social-link {
    display: inline-flex;
    align-items: center;
    min-width: var(--control-size-touch, 44px);
    min-height: var(--control-size-touch, 44px);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  body.dashboard-route .footer .container {
    padding-left: 2rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--overlay-layer, 1200);
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  background: var(--color-background);
  border-radius: var(--overlay-radius, 12px);
  box-shadow: var(--overlay-shadow, 0 20px 60px rgba(0, 0, 0, 0.2));
  max-height: 90dvh;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

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

/* Modal Sizes */
.modal-small {
  width: 100%;
  max-width: 400px;
}

.modal-medium {
  width: 100%;
  max-width: 600px;
}

.modal-large {
  width: 100%;
  max-width: 900px;
}

.modal-full {
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: 95dvh;
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-subtle);
  border-radius: 12px 12px 0 0;
}

.modal-title {
  min-width: 0;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
  overflow-wrap: anywhere;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-foreground-muted);
  cursor: pointer;
  padding: 0;
  width: var(--control-size-touch, 44px);
  height: var(--control-size-touch, 44px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

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

.modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Modal Content */
.modal-content {
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  color: var(--color-foreground);
}

/* Scrolling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--color-background-subtle);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-foreground-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .modal {
    animation: modalSlideIn 0.2s ease-out;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: 95vh;
    margin: 0;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }
}
.cookie-modal.modal {
  max-width: 32rem;
  border-radius: var(--overlay-radius, 1rem);
  background: var(--card-bg);
}

.cookie-modal .modal-content {
  padding: 0;
}

.cookie-modal-body {
  padding: 1.5rem 1.5rem 0;
}

.cookie-modal-lead {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
}

.cookie-category {
  padding: 1rem 0;
}

.cookie-category + .cookie-category {
  border-top: 1px solid var(--border-color);
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--control-size-touch, 2.75rem);
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type='checkbox'] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.toggle-slider {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--border-color);
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .toggle-slider::after {
  transform: translateX(1.25rem);
}

.toggle-slider.disabled,
.cookie-toggle input:disabled + .toggle-slider.disabled {
  background: var(--text-tertiary, #94a3b8);
  cursor: not-allowed;
}

.toggle-slider.disabled::after {
  background: #f1f5f9;
}

.category-name {
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  font-size: 0.9rem;
}

.category-description {
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-reset-link {
  display: inline-flex;
  min-height: var(--control-size-touch, 2.75rem);
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.cookie-reset-link:hover {
  color: var(--text-primary, #1e293b);
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cookie-modal button.btn-primary,
.cookie-modal .btn-secondary {
  min-height: var(--control-size-touch, 2.75rem);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
}

.cookie-modal button.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.cookie-modal button.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary-hover);
}

.cookie-modal .btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border-color: var(--border-color, #e2e8f0);
}

.cookie-modal .btn-secondary:hover {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--text-tertiary, #94a3b8);
}

.cookie-modal .cookie-toggle input:focus-visible + .toggle-slider,
.cookie-modal button:focus-visible {
  outline: 2px solid var(--focus-ring, var(--primary));
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-modal.modal {
    border-radius: 1rem;
  }

  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-modal button.btn-primary,
  .cookie-modal .btn-secondary {
    flex: 1;
  }

  .cookie-reset-link {
    text-align: center;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-modal .toggle-slider,
  .cookie-modal .toggle-slider::after,
  .cookie-modal button.btn-primary,
  .cookie-modal .btn-secondary {
    transition: none;
  }
}
/* Cookie Banner Styles - Mobile-first, WCAG-AA compliant */

/* Container with safe-area support */
.cookie-banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-banner {
  max-width: 64rem; /* 4xl */
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--overlay-radius, 1rem);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  position: relative;
  animation: bannerSlideUp 0.3s ease-out;
}

@keyframes bannerSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-content {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: 1fr;
}

/* Mobile-first text layout */
.cookie-banner-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.cookie-banner-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner button.btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-text {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  min-height: 2.75rem;
}

.cookie-banner button.btn-primary:disabled,
.cookie-banner .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cookie-banner button.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.cookie-banner button.btn-primary:hover:not(:disabled),
.cookie-banner button.btn-primary:focus:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary-hover);
}

.cookie-banner .btn-secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.cookie-banner .btn-secondary:hover:not(:disabled),
.cookie-banner .btn-secondary:focus:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  outline: none;
}

.cookie-banner .btn-text {
  background: transparent;
  color: var(--text-secondary, #64748b);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cookie-banner .btn-text:hover,
.cookie-banner .btn-text:focus {
  color: var(--text-primary, #1e293b);
  background: var(--bg-secondary, #f8fafc);
  outline: none;
}

.cookie-policy-link {
  font-size: 0.75rem;
  color: var(--text-tertiary, #94a3b8);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.privacy-link {
  color: var(--text-secondary, #64748b);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.privacy-link:hover,
.privacy-link:focus {
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Dismiss button (only shown after choice) */
.cookie-banner-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-tertiary, #94a3b8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  line-height: 1;
  transition: all 0.2s ease;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-dismiss:hover,
.cookie-banner-dismiss:focus {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Floating cookie settings trigger */
.cookie-settings-trigger {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-trigger--mobile-inline {
  display: none;
}

@media (max-width: 768px) {
  .cookie-settings-trigger--mobile-relocated {
    display: none;
  }

  .cookie-settings-trigger.cookie-settings-trigger--mobile-inline {
    position: static;
    flex: 0 0 auto;
    display: flex;
  }
}

@media (max-width: 639px) {
  .cookie-settings-trigger {
    display: none;
  }
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

.cookie-banner-container button:focus-visible,
.cookie-banner-container a:focus-visible,
.cookie-settings-trigger:focus-visible {
  outline: 2px solid var(--focus-ring, var(--primary));
  outline-offset: 3px;
}

/* Tablet and desktop responsive design */
@media (min-width: 640px) {
  .cookie-banner-container {
    padding: 1.25rem;
  }

  .cookie-banner {
    border-radius: 1.5rem;
  }

  .cookie-banner-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .cookie-banner-text {
    max-width: none;
  }

  .cookie-banner-actions {
    flex-shrink: 0;
    min-width: 20rem;
  }

  .cookie-banner-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary {
    width: auto;
    min-width: 7rem;
    flex: 0 0 auto;
  }

  .cookie-banner .btn-text {
    width: auto;
    flex: 0 0 auto;
  }

  .cookie-policy-link {
    text-align: left;
  }
}

/* Large desktop optimization */
@media (min-width: 1024px) {
  .cookie-banner-content {
    padding: 1.5rem;
  }

  .cookie-banner-text h3 {
    font-size: 1.25rem;
  }

  .cookie-banner-text p {
    font-size: 0.9375rem;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary,
  .cookie-banner .btn-text {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border-width: 2px;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary,
  .cookie-banner .btn-text {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }

  .cookie-banner button.btn-primary:hover,
  .cookie-banner .btn-secondary:hover,
  .cookie-banner .btn-text:hover,
  .cookie-banner-dismiss:hover,
  .cookie-settings-trigger:hover {
    transform: none;
  }
}

/* Dark-only theme uses global tokens */
.toast-stack {
  position: fixed;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1200;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem - env(safe-area-inset-top));
  overflow-y: auto;
  pointer-events: none;
}

.toast-stack:empty {
  display: none;
}

.toast {
  display: flex;
  width: min(100%, 360px);
  align-items: flex-start;
  gap: 0.75rem;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  color: var(--text-primary);
  animation: toastSlideIn 0.2s ease-out;
  overflow-wrap: anywhere;
  pointer-events: auto;
}

.toast-info {
  border-color: rgba(59, 130, 246, 0.35);
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.35);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-weight: 600;
  font-size: 0.95rem;
}

.toast-description {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.toast-close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  touch-action: manipulation;
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

@media (max-width: 480px) {
  .toast-stack {
    inset-inline-start: max(0.75rem, env(safe-area-inset-left));
    inset-inline-end: max(0.75rem, env(safe-area-inset-right));
    width: auto;
    max-width: none;
  }
}
.confirm-modal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.confirm-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.confirm-message > p {
  margin: 0;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.confirm-actions .btn {
  min-height: 44px;
}

.confirm-modal--workspace {
  --confirm-workspace-primary: color-mix(in srgb, var(--primary) 82%, black);
  --confirm-workspace-primary-hover: color-mix(in srgb, var(--primary) 74%, black);
  --confirm-workspace-focus: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}

.confirm-modal--workspace .confirm-actions .btn {
  min-height: var(--control-size-touch, 44px);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 650;
  transition:
    background 100ms cubic-bezier(0.2, 0, 0, 1),
    border-color 100ms cubic-bezier(0.2, 0, 0, 1),
    color 100ms cubic-bezier(0.2, 0, 0, 1);
}

.confirm-modal--workspace .confirm-actions .btn-primary {
  border-color: transparent;
  background: var(--confirm-workspace-primary);
  color: #fff;
}

.confirm-modal--workspace .confirm-actions .btn-primary:hover:not(:disabled) {
  background: var(--confirm-workspace-primary-hover);
  box-shadow: none;
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn-secondary {
  border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border));
  background: var(--surface);
  color: var(--text-primary);
}

.confirm-modal--workspace .confirm-actions .btn-secondary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: var(--surface-elevated);
  color: var(--text-primary);
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn-danger {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--border));
  background: color-mix(in srgb, var(--danger) 16%, var(--surface));
  color: color-mix(in srgb, var(--danger) 72%, white);
}

.confirm-modal--workspace .confirm-actions .btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 26%, var(--surface));
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--confirm-workspace-focus);
}
.App {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-main--pdf-viewer {
  display: flex;
  min-height: 0;
  overflow: visible;
}

* {
  box-sizing: border-box;
}

/* Global Button Styles - Scoped to avoid Drive conflicts */
.legacy-ui .btn,
.page-content .btn,
:not(.drive-area) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.legacy-ui .btn:focus-visible,
.page-content .btn:focus-visible,
:not(.drive-area) .btn:focus-visible {
  outline: 2px solid var(--hero-from, #667eea);
  outline-offset: 2px;
}

/* Button Sizes - Scoped to avoid Drive conflicts */
.legacy-ui .btn-small,
.page-content .btn-small,
:not(.drive-area) .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.legacy-ui .btn-medium,
.page-content .btn-medium,
:not(.drive-area) .btn-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.legacy-ui .btn-large,
.page-content .btn-large,
:not(.drive-area) .btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button Variants - Scoped to avoid Drive conflicts */
.legacy-ui .btn-primary,
.page-content .btn-primary,
:not(.drive-area) .btn-primary {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border: 1px solid transparent;
}

.legacy-ui .btn-primary:hover:not(:disabled),
.page-content .btn-primary:hover:not(:disabled),
:not(.drive-area) .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.legacy-ui .btn-primary:active:not(:disabled),
.page-content .btn-primary:active:not(:disabled),
:not(.drive-area) .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-tertiary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-elevated, var(--bg-tertiary));
  color: var(--text-primary);
}

.btn-danger {
  background: #b91c1c;
  color: white;
  border: 1px solid transparent;
}

.btn-danger:hover:not(:disabled) {
  background: #991b1b;
  transform: translateY(-1px);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Dark-only tokens already provide correct styles */
.soft-constellations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Simple gradient background without canvas */
.constellation-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 25%,
    rgba(59, 130, 246, 0.1) 50%,
    rgba(99, 102, 241, 0.1) 75%,
    rgba(139, 92, 246, 0.1) 100%
  );
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.1) 0%,
      rgba(139, 92, 246, 0.1) 25%,
      rgba(59, 130, 246, 0.1) 50%,
      rgba(99, 102, 241, 0.1) 75%,
      rgba(139, 92, 246, 0.1) 100%
    );
  }
  50% {
    background: linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.1) 0%,
      rgba(59, 130, 246, 0.1) 25%,
      rgba(99, 102, 241, 0.1) 50%,
      rgba(139, 92, 246, 0.1) 75%,
      rgba(59, 130, 246, 0.1) 100%
    );
  }
}

/* Floating Word Chips */
.floating-words {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.floating-word {
  position: absolute;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  animation: floatWord 15s ease-in-out infinite;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: default;
}

/* Elegant word positioning for 12 words - with !important to override defaults */
.word-0 {
  top: 20% !important;
  left: 15% !important;
  animation-delay: 0s;
}
.word-1 {
  top: 25% !important;
  left: 75% !important;
  animation-delay: 3s;
}
.word-2 {
  top: 45% !important;
  left: 20% !important;
  animation-delay: 6s;
}
.word-3 {
  top: 35% !important;
  left: 65% !important;
  animation-delay: 9s;
}
.word-4 {
  top: 60% !important;
  left: 25% !important;
  animation-delay: 12s;
}
.word-5 {
  top: 55% !important;
  left: 80% !important;
  animation-delay: 15s;
}
.word-6 {
  top: 75% !important;
  left: 30% !important;
  animation-delay: 18s;
}
.word-7 {
  top: 70% !important;
  left: 70% !important;
  animation-delay: 21s;
}
.word-8 {
  top: 85% !important;
  left: 45% !important;
  animation-delay: 24s;
}
.word-9 {
  top: 30% !important;
  left: 40% !important;
  animation-delay: 27s;
}
.word-10 {
  top: 50% !important;
  left: 85% !important;
  animation-delay: 30s;
}
.word-11 {
  top: 80% !important;
  left: 15% !important;
  animation-delay: 33s;
}

.floating-word:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Language-specific styling */
.lang-ar,
.lang-he,
.lang-syr,
.lang-cld {
  font-family: 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;
  direction: rtl;
  text-align: right;
}

.lang-am,
.lang-ti,
.lang-gez {
  font-family: 'Noto Sans Ethiopic', 'Arial Unicode MS', sans-serif;
}

.lang-so,
.lang-mt,
.lang-en,
.lang-akk {
  font-family: 'Noto Sans', 'Arial Unicode MS', sans-serif;
}

/* Akkadian transliteration styling */
.lang-akk {
  font-style: italic;
  font-weight: 400;
}

.lang-akk {
  font-style: italic;
  font-family: 'Times New Roman', serif;
}

.lang-en {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
}

/* Floating animation for word chips */
@keyframes floatWord {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) rotate(0.5deg);
    opacity: 0.9;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablet optimizations */
  .floating-word {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .constellation-canvas {
    cursor: default;
  }
}

@media (max-width: 768px) {
  /* Mobile optimizations */
  .floating-word {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }

  /* Hide some words on mobile to avoid overcrowding */
  .word-8,
  .word-9,
  .word-10,
  .word-11 {
    display: none;
  }

  /* Adjust positioning for mobile - keep 8 words */
  .word-0 {
    top: 20%;
    left: 15%;
  }
  .word-1 {
    top: 30%;
    left: 75%;
  }
  .word-2 {
    top: 40%;
    left: 25%;
  }
  .word-3 {
    top: 50%;
    left: 70%;
  }
  .word-4 {
    top: 60%;
    left: 20%;
  }
  .word-5 {
    top: 70%;
    left: 65%;
  }
  .word-6 {
    top: 80%;
    left: 30%;
  }
  .word-7 {
    top: 25%;
    left: 50%;
  }
}

@media (max-width: 480px) {
  /* Small mobile devices */
  .floating-word {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  /* Hide even more words on very small screens - keep 6 words */
  .word-6,
  .word-7,
  .word-8,
  .word-9,
  .word-10,
  .word-11 {
    display: none;
  }

  /* Adjust remaining words for small screens */
  .word-0 {
    top: 25%;
    left: 20%;
  }
  .word-1 {
    top: 40%;
    left: 70%;
  }
  .word-2 {
    top: 55%;
    left: 30%;
  }
  .word-3 {
    top: 70%;
    left: 65%;
  }
  .word-4 {
    top: 35%;
    left: 50%;
  }
  .word-5 {
    top: 60%;
    left: 80%;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .constellation-background {
    animation: none;
  }

  .floating-word {
    animation: none;
    opacity: 0.6;
  }

  .constellation-canvas {
    display: none;
  }
}
.public-section-header {
  margin: 0 auto 2.5rem;
  max-width: 760px;
}

.public-section-header h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  margin: 0 0 0.85rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.public-section-header .public-section-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
}

.public-section-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--link);
}

.public-section-header-center {
  text-align: center;
}

.public-section-header-left {
  text-align: left;
  margin-left: 0;
}

.public-section-actions {
  margin-top: 1.25rem;
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .public-section-header {
    margin-bottom: 2rem;
  }

  .public-section-header .public-section-description {
    font-size: 1rem;
  }
}
.trust-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.trust-signal-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.trust-signal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: var(--shadow-md);
}

.trust-signal-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--link);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.trust-signal-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.trust-signal-card h3 {
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.trust-signal-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
}
.home-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.home-page .hero-section {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 42%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 34%),
    linear-gradient(135deg, #0f172a 0%, #0b2a4a 52%, #0f766e 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.home-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.home-page .hero-section .container {
  pointer-events: none;
}

/* Re-enable pointer events for interactive elements on home page */
.home-page .hero-actions,
.home-page .hero-action-btn,
.home-page .hero-note,
.home-page .hero-note a {
  pointer-events: auto;
}

.home-page .hero-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

/* Ensure hero text doesn't block network interaction */
.home-page .hero-section h1,
.home-page .hero-subtitle {
  pointer-events: none;
}

.home-page .hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  position: relative;
  z-index: 3;
}

.home-page .hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.home-page .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.home-page .hero-action-btn {
  min-width: min(280px, 100%);
}

.home-page .hero-note {
  margin: 1rem auto 0;
  max-width: 680px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}

.home-page .hero-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-page .hero-note a:hover,
.home-page .hero-note a:focus {
  color: #dbeafe;
}

.home-page .hero-note .hint-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 1px;
}

.home-page .consultation-reply-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.home-page .consultation-inline-message {
  margin: 0;
  max-width: 680px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.home-page .consultation-inline-message.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.home-page .consultation-inline-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fee2e2;
}

.home-page .consultation-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-page .consultation-modal-intro {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-page .consultation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-page .consultation-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-page .consultation-form-group-full {
  grid-column: 1 / -1;
}

.home-page .consultation-form-group label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-page .consultation-form-group input,
.home-page .consultation-form-group select,
.home-page .consultation-form-group textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 0.65rem 0.8rem;
}

.home-page .consultation-form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.home-page .consultation-form-group input:focus,
.home-page .consultation-form-group select:focus,
.home-page .consultation-form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.home-page .consultation-honeypot {
  display: none;
}

.home-page .consultation-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.home-page .hint-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Features Section */
.home-page .features-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.home-page .features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.home-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.home-page .feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.home-page .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.home-page .feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.home-page .feature-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.home-page .feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.home-page .feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services Section */
.home-page .services-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.home-page .services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.home-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.home-page .service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.home-page .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.home-page .service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.home-page .service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.home-page .service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home-page .service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-page .service-card li {
  color: var(--text-tertiary);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.home-page .service-card li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* Approach Section */
.home-page .approach-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.home-page .approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.home-page .approach-section .approach-text h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.home-page .approach-section .approach-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.home-page .approach-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-page .point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.home-page .point-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.home-page .point h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.home-page .point p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-page .methodology-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-page .method-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.home-page .method-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.home-page .method-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Success Section */
.home-page .success-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.home-page .success-header {
  text-align: center;
  margin-bottom: 3rem;
}

.home-page .success-header h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-page .success-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.home-page .success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.home-page .success-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home-page .success-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.home-page .success-card.featured {
  border-left: 4px solid #3b82f6;
}

.home-page .success-type {
  color: #3b82f6;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.home-page .success-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.home-page .success-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home-page .success-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-page .success-metrics .metric {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA Section */
.home-page .cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  text-align: center;
}

.home-page .cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-page .cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.home-page .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.home-page .cta-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-page .cta-btn.primary {
  background: white;
  color: var(--text-primary);
}

.home-page .cta-btn.primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.home-page .cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.home-page .cta-btn.secondary:hover {
  background: white;
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-page .approach-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-page .success-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page .container {
    padding: 0 1rem;
  }

  .home-page .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .home-page .hero-section h1 {
    font-size: 2.5rem;
  }

  .home-page .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .home-page .ai-input-container {
    flex-direction: column;
    border-radius: 1rem;
  }

  .home-page .ai-input {
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .home-page .ai-submit-button {
    border-radius: 1rem;
    justify-content: center;
  }

  .home-page .features-section h2,
  .home-page .services-section h2,
  .home-page .approach-section .approach-text h2,
  .home-page .success-header h2,
  .home-page .cta-content h2 {
    font-size: 2rem;
  }

  .home-page .services-grid {
    grid-template-columns: 1fr;
  }

  .home-page .approach-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-page .methodology-cards {
    gap: 1rem;
  }

  .home-page .success-grid {
    grid-template-columns: 1fr;
  }

  .home-page .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .home-page .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .home-page .consultation-form-grid {
    grid-template-columns: 1fr;
  }

  .home-page .consultation-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .home-page .hero-section {
    padding: 3rem 0;
  }

  .home-page .hero-section h1 {
    font-size: 2rem;
  }

  .home-page .hero-subtitle {
    font-size: 1rem;
  }

  .home-page .ai-submit-button {
    width: 100%;
  }

  .home-page .features-grid {
    grid-template-columns: 1fr;
  }

  .home-page .service-card,
  .home-page .method-card,
  .home-page .success-card {
    padding: 1.5rem;
  }

  .home-page .approach-points {
    gap: 1rem;
  }

  .home-page .point {
    flex-direction: column;
    text-align: center;
  }

  .home-page .point-icon {
    align-self: center;
  }
}
.content-public-feed {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.content-public-feed li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.content-public-feed h3 {
  margin: 0 0 0.65rem;
}
.content-public-feed p {
  margin: 0.5rem 0;
  max-width: 70ch;
  line-height: 1.65;
}
/* SectionHero Component Styles */
.section-hero {
  position: relative;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Add decorative grain pattern like Research page */
.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.section-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content-left {
  text-align: left;
}

.hero-content-left .hero-subtitle {
  margin-left: 0;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-hero-muted);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--on-hero-strong);
  margin: 0 0 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-hero-muted);
  max-width: 48rem;
  margin: 0 auto 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-meta-row {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-content-left .hero-meta-row {
  justify-content: flex-start;
}

.hero-meta-row li {
  color: var(--on-hero-muted);
  font-size: 0.88rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-content-left .hero-actions {
  justify-content: flex-start;
}

.hero-action-btn {
  min-height: 2.75rem;
}

.hero-tabs {
  margin-top: 1.5rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .section-hero .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-gradient {
    padding: 5.5rem 0;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .section-hero .container {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-action-btn {
    width: min(100%, 320px);
  }
}
.about-page {
  min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.team-member {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  align-self: start;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.member-avatar {
  position: relative;
  margin-bottom: 1.5rem;
  width: 120px;
  height: 120px;
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.member-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.member-info {
  flex: 1;
}

.team-member.featured .member-avatar {
  margin-right: 2rem;
  margin-bottom: 0;
}

.team-member h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.member-role {
  color: #667eea;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.member-bio {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

/* Show bio on team member hover */
.team-member:hover .member-bio {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
}

.member-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.team-member.featured .member-expertise {
  justify-content: flex-start;
}

.expertise-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* LinkedIn Social Link */
.member-social {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0077b5;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
}

/* Team Categories */
.team-category {
  margin-bottom: 4rem;
}

.team-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Single column grid for interns */
.team-grid-single {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Intern-specific styling */
.team-member-intern {
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  position: relative;
  color: white;
}

.team-member-intern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.2;
}

.team-member-intern .member-role {
  color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.team-member-intern .expertise-tag {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Ensure good text contrast for intern cards */
.team-member-intern .member-bio {
  color: #e2e8f0;
  font-weight: 400;
}

.team-member-intern h3 {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-banner h1 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Story Section */
.story-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1));
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}

.story-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
}

.language-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

.language-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.language-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.values-section h2 {
  text-align: center;
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.value-card.innovation {
  border-top-color: #3b82f6;
}

.value-card.preservation {
  border-top-color: #10b981;
}

.value-card.inclusivity {
  border-top-color: #f59e0b;
}

.value-card.integrity {
  border-top-color: #8b5cf6;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.value-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.team-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.team-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 4rem;
  opacity: 0.95;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.member-avatar {
  margin-bottom: 2rem;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.member-role {
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.member-bio {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mission & Vision */
.mission-vision {
  padding: 5rem 0;
  background: #1e293b;
  color: white;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.mission-card,
.vision-card {
  padding: 3rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.vision-card {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  pointer-events: none;
}

.mission-card h2,
.vision-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.mission-card p,
.vision-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Journey Timeline Section */
.journey-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1));
}

.journey-timeline {
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 5%;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: white;
}

.timeline-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: #475569;
  line-height: 1.7;
}

/* Philosophy Section */
.philosophy-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-text h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}

.philosophy-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.point:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.point-icon {
  font-size: 1.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
}

.point h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.point p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.mission-vision-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-card,
.vision-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #667eea;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.vision-card {
  border-left-color: #764ba2;
}

.mission-card h3,
.vision-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* Enhanced Team Section */
.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.team-member {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-info {
  flex: 1;
}

.member-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.expertise-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Strip Section */
.contact-strip-section {
  padding: 2.5rem 0 3rem 0;
}

.contact-strip {
  background: linear-gradient(to right, var(--hero-from), var(--hero-to));
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact-strip {
    grid-template-columns: 1fr auto;
    padding: 1.75rem 2rem 2rem 2rem;
  }
}

.contact-strip-content h2 {
  color: var(--on-hero-strong, white);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.contact-strip-content p {
  color: var(--on-hero-muted, rgba(255, 255, 255, 0.9));
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.contact-strip-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 640px) {
  .contact-strip-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.contact-strip .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .contact-strip .btn {
    width: auto;
  }
}

.contact-strip .btn:focus-visible {
  outline: 2px solid var(--on-hero-strong, white);
  outline-offset: 2px;
}

.contact-strip .btn-primary {
  background: var(--on-hero-strong, white);
  color: var(--hero-from);
}

.contact-strip .btn-primary:hover {
  background: var(--on-hero-muted, rgba(255, 255, 255, 0.9));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-strip .btn-secondary {
  background: transparent;
  color: var(--on-hero-strong, white);
  border: 1.5px solid var(--on-hero-strong, white);
}

.contact-strip .btn-secondary:hover {
  background: var(--on-hero-strong, white);
  color: var(--hero-from);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Dark mode styles */
.about-page .hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

.about-page .story-section {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 1));
}

.about-page .story-text h2 {
  color: #f1f5f9;
}

.about-page .story-text p {
  color: #cbd5e1;
}

.about-page .values-section {
  background: #1e293b;
}

.about-page .values-section h2 {
  color: #f1f5f9;
}

.about-page .value-card {
  background: #334155;
  border: 1px solid #475569;
}

.about-page .value-card h3 {
  color: #f1f5f9;
}

.about-page .value-card p {
  color: #cbd5e1;
}

.about-page .team-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

.about-page .team-header h2 {
  color: #f1f5f9;
}

.about-page .team-intro {
  color: #cbd5e1;
}

.about-page .category-title {
  color: #f1f5f9;
}

.about-page .team-member {
  background: #1e293b;
  color: #f1f5f9;
}

.about-page .team-member h3 {
  color: #f1f5f9;
}

.about-page .member-role {
  color: #a5b4fc;
}

.about-page .member-bio {
  color: #cbd5e1;
}

.about-page .mission-vision {
  background: #0f172a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-banner {
    padding: 4rem 0 3rem;
  }

  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .language-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .story-section,
  .values-section,
  .team-section,
  .mission-vision {
    padding: 3rem 0;
  }

  .story-text h2,
  .values-section h2,
  .team-section h2 {
    font-size: 2rem;
  }

  .journey-timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }

  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }

  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .category-title {
    font-size: 1.8rem;
  }

  .team-category {
    margin-bottom: 3rem;
  }

  .team-member {
    min-height: auto;
    padding: 1.5rem;
  }

  .language-item {
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 260px;
  }
}
/**
 * Authentication Pages Styles
 * ============================
 * Styles for login, signup, and auth-related components
 */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.25), rgba(15, 23, 42, 0.95)),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

.auth-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
}

.auth-success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.auth-button-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
}

.auth-button-secondary:hover:not(:disabled) {
  background: var(--surface);
}

.auth-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-inline-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.auth-inline-link a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.auth-inline-link a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  background: var(--surface-2);
  color: var(--text);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[aria-invalid='true'] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:disabled {
  background-color: var(--surface-2);
  cursor: not-allowed;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-group .auth-field-error {
  color: #fca5a5;
  font-weight: 600;
}

.auth-button {
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 0;
}

.auth-button-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-button-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-button-google {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.auth-button-google:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--border);
}

.auth-button-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-turnstile {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.5rem;
}

.bot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-page {
    padding: 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .auth-button {
    font-size: 0.95rem;
  }
}
/* Card.css - Lighter, responsive card design using theme tokens */

.card {
  display: flex;
  height: auto;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.card--actionable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, var(--text-primary));
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-title-section {
  flex: 1;
  min-width: 0;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
}

.card-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Body */
.card-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Actions - pinned to bottom with consistent alignment */
.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 639px) {
  .card-actions {
    flex-direction: column;
  }
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-width: fit-content;
}

/* On mobile, buttons stack and take full width */
@media (max-width: 639px) {
  .card-action {
    flex: 1;
  }
}

/* On larger screens, buttons size to content */
@media (min-width: 640px) {
  .card-action--primary {
    flex: 1;
    max-width: 140px;
  }

  .card-action--secondary {
    flex: 0 0 auto;
    min-width: 100px;
  }
}

.card-action--primary {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: white;
  border-color: transparent;
}

.card-action--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-action--secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.card-action--secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

/* Icon-only button styling */
.card-action--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  flex: 0 0 auto;
  min-width: auto;
}

.card-action--icon:hover {
  background: var(--hero-from, #667eea);
  color: white;
  border-color: var(--hero-from, #667eea);
}

/* Responsive Design */
@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 1.25rem;
  }

  .card-actions {
    gap: 0.5rem;
  }

  .card-action {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 768px) {
  .card {
    padding: 1.25rem;
  }

  .card-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .card-icon {
    font-size: 1.75rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-body {
    margin-bottom: 1.25rem;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-actions > * {
    flex: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }

  .card-badge {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }
}
/*
 * Shared presentation for route-level denial and not-found states.
 *
 * Replaces roughly thirty lines of inline style objects with the existing Card and Button
 * primitives so these screens match the rest of the application instead of being a one-off.
 */

.route-denied {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 3rem 1rem;
}

.route-denied-card {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.route-denied-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.route-denied-message {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.route-denied-detail {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.route-denied-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.route-denied-actions .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .route-denied {
    padding: 2rem 0.75rem;
  }

  .route-denied-actions .btn {
    flex: 1 1 100%;
  }
}
.subscription-manager {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.subscription-manager h1,
.subscription-manager-title {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.subscription-manager--embedded .subscription-manager-title {
  font-size: 1.25rem;
}

.subscription-manager h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.subscription-manager .loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.subscription-manager .error-banner {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #fca5a5;
}

/* Current Subscription Section */
.current-subscription {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 1rem;
}

/* Internal card layout (used inside <Card>{children}</Card> wrapper) */
.sm-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sm-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.sm-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-primary, #6366f1);
  flex-shrink: 0;
}

.sm-card-title-section {
  flex: 1;
  min-width: 0;
}

.sm-card-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
  overflow-wrap: anywhere;
}

.sm-card-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sm-card-body {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.42;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sm-card-body p {
  margin: 0 0 0.35rem 0;
}

.sm-plan-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.sm-currency-note {
  margin: 0 0 0.75rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
  min-width: 0;
}

.sm-card-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.sm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

.sm-modal-actions .btn {
  flex: 0 0 auto;
}

.sm-status-message {
  margin: 0;
  padding: 0.75rem;
  background-color: rgba(245, 158, 11, 0.16);
  border-radius: 6px;
  color: #fcd34d;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Plans Grid */
.available-plans {
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0.25rem;
}

.plan-type-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
}

.plan-type-group + .plan-type-group {
  margin-top: 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.plan-type-header {
  margin-bottom: 0;
}

.plan-type-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.plan-type-header p {
  margin: 0.25rem 0 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 0.75rem;
}

.plans-grid--type {
  margin-top: 0;
}

.sm-cycle-chip {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.16);
}

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

  .subscription-manager .card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
}

.feature-list li {
  padding: 0.2rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.sm-shared-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 0.75rem;
  margin-top: 0;
}

/* Badge Spacing */
.subscription-manager .card-body > div > p:first-child + .badge {
  margin-top: 0.5rem;
}

.subscription-manager .card:hover {
  transform: none;
}

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

  .sm-shared-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sm-card-header {
    flex-direction: column;
  }

  .sm-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sm-card-actions .btn {
    width: 100%;
  }
}

.subscription-manager .sm-comparison {
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}
.subscription-manager .sm-comparison p {
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.subscription-manager .sm-comparison .sm-intro {
  color: var(--text-primary);
  font-size: 1rem;
}
.subscription-manager .sm-comparison table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
  text-align: left;
}
.subscription-manager .sm-comparison caption {
  text-align: left;
  padding-bottom: 1rem;
  color: var(--text-secondary);
}
.subscription-manager .sm-comparison th,
.subscription-manager .sm-comparison td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  vertical-align: top;
}
.subscription-manager .sm-comparison th:first-child {
  width: 46%;
}
.subscription-manager .sm-comparison tbody th {
  font-weight: 400;
}
.subscription-manager .sm-plan-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.subscription-manager .sm-card-body,
.subscription-manager .sm-plan-note,
.subscription-manager .sm-currency-note {
  font-size: 0.875rem;
}
@media (max-width: 480px) {
  .subscription-manager .sm-comparison th,
  .subscription-manager .sm-comparison td {
    padding: 0.625rem 0.25rem;
  }
  .subscription-manager .sm-comparison th:first-child {
    width: 40%;
  }
}
