/* Codexa Tools - Ultra-Clean, High-Precision Fintech Design System */
/* Zero external font requests: 100% Local, instantaneous, privacy-first font stack */

:root {
  /* Default fallbacks - overwritten dynamically by ThemeService */
  --bg-primary: #0b0f17;
  --bg-surface: #111827;
  --bg-card: #131d2e;
  --bg-card-hover: #1a263c;
  --bg-input: #1a263c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --brand-primary: #10b981;
  --brand-primary-hover: #34d399;
  --brand-secondary: #0ea5e9;
  --brand-accent: #059669;
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  
  --hero-pill-bg: rgba(16, 185, 129, 0.12);
  --hero-pill-border: rgba(16, 185, 129, 0.3);
  --hero-pill-text: #34d399;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
  --shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* 100% Local Native Font Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.print-header {
  display: none !important;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-hover);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-logo span span {
  color: var(--brand-primary);
}

.brand-badge {
  background: var(--hero-pill-bg, #ecfdf5);
  color: var(--hero-pill-text, #065f46);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-main);
}

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

/* Theme Switcher in Header */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: #fff;
  transform: scale(1.15);
}

.theme-dot[data-theme="emerald"] { background: #10b981; }
.theme-dot[data-theme="indigo"] { background: #6366f1; }
.theme-dot[data-theme="sky"] { background: #0ea5e9; }
.theme-dot[data-theme="light_clean"] { background: #f8fafc; border: 1px solid #cbd5e1; }

.country-select-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 0.85rem 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb-bar a {
  color: var(--text-muted);
}

.breadcrumb-bar a:hover {
  color: var(--text-main);
}

.breadcrumb-bar span {
  margin: 0 0.4rem;
  color: var(--text-dim);
}

/* Hero Section */
.hero-section {
  padding: 2rem 0 1.25rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--hero-pill-bg, #ecfdf5);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--hero-pill-text, #065f46);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  padding: 1.25rem 0 3.5rem;
}

/* Informational Content Grid */
.content-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.content-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card h2,
.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  letter-spacing: -0.015em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-card ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.info-card ul li {
  position: relative;
  display: block;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-word;
}

.info-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.6;
}

.info-card ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.info-card ol li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Formula Box Component */
.formula-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin: 1rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.92rem;
  color: var(--brand-primary, #10b981);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}

/* Sticky Sidebar on Desktop */
.sticky-sidebar {
  position: sticky;
  top: 90px;
}

/* About Feature Items */
.about-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-text {
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Tables & Horizontal Scroll Container */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.45) var(--bg-surface);
}

.data-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.45);
  border-radius: 4px;
}

.data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  white-space: nowrap;
}

.data-table th {
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQs */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
  margin-bottom: 0.65rem;
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-header {
  padding: 0.95rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 0.95rem;
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--brand-primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq-item.active .faq-body {
  display: block;
}

/* Footer - Premium Deep Dark FinTech Theme */
.site-footer {
  background: #080c14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 2.5rem;
  margin-top: auto;
  font-size: 0.88rem;
  color: #94a3b8;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(16, 185, 129, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col-brand {
  padding-right: 0.5rem;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.footer-tax-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  line-height: 1.4;
}

.footer-col h3,
.footer-col h4 {
  color: #f8fafc !important;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: #94a3b8 !important;
  line-height: 1.6;
}

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

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: #94a3b8 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Footer Salary Conversion Pill Cloud */
.footer-salary-cloud {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-salary-cloud-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.footer-salary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8 !important;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.footer-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399 !important;
  transform: translateY(-1px);
}

.footer-disclaimer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-disclaimer p {
  color: #94a3b8 !important;
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-back-to-top {
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: all 0.15s ease;
}

.footer-back-to-top:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff !important;
  transform: translateY(-1px);
}

/* E-E-A-T Verified Trust Banner */
.eeat-trust-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-left: 4px solid var(--brand-primary, #10b981);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin: 0 auto 2rem;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eeat-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-primary, #10b981);
  flex-shrink: 0;
}

.eeat-trust-content {
  flex: 1;
}

.eeat-trust-headline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.2rem;
}

.eeat-badge-pill {
  background: #065f46;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eeat-trust-subtext {
  font-size: 0.82rem;
  color: var(--text-muted, #334155);
  line-height: 1.45;
}

.eeat-methodology-link {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.eeat-methodology-link:hover {
  color: #065f46;
}

/* Mobile Header Controls & Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-subtle, #f1f5f9);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main, #0f172a);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

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

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

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

/* Mobile Drawer & Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100vh;
  background: var(--bg-surface, #ffffff);
  border-left: 1px solid var(--border-color, #e2e8f0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.mobile-nav-brand strong {
  color: var(--brand-primary, #10b981);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.mobile-nav-close:hover {
  color: var(--text-main, #0f172a);
}

.mobile-nav-content {
  padding: 1.25rem;
  flex: 1;
}

.mobile-nav-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg-card-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 0.6rem;
  transition: all 0.15s ease;
}

.mobile-nav-item:hover {
  background: #ffffff;
  border-color: var(--brand-primary, #10b981);
  transform: translateX(2px);
}

.nav-item-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  flex-shrink: 0;
}

.nav-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  line-height: 1.25;
}

.nav-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

.mobile-theme-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.theme-btn-pill {
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main, #0f172a);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.theme-btn-pill:hover,
.theme-btn-pill.active {
  border-color: var(--brand-primary, #10b981);
  background: var(--bg-card-subtle, #f1f5f9);
}

.mobile-nav-trust-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-trust-links a {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.mobile-nav-trust-links a:hover {
  color: var(--brand-primary, #10b981);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }
  .sticky-sidebar,
  .content-grid > div > .info-card[style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.25rem !important;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .container {
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .desktop-only-badge,
  .desktop-only-theme,
  .country-select-badge,
  .country-lang-dropdown {
    display: none !important;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .brand-logo {
    font-size: 1.15rem;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Mobile Footer Optimization */
  .site-footer {
    padding: 2.25rem 0 1.75rem !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 1rem !important;
    margin-bottom: 1.75rem !important;
  }
  .footer-col-brand {
    grid-column: 1 / -1 !important;
    padding-right: 0 !important;
    margin-bottom: 0.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col h3,
  .footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    color: #38bdf8 !important;
  }
  .footer-col ul li {
    margin-bottom: 0.5rem;
  }
  .footer-col ul li a {
    font-size: 0.84rem;
    padding: 0.15rem 0;
    line-height: 1.4;
  }
  .footer-salary-cloud {
    padding: 1rem 0;
    margin-bottom: 1.25rem;
  }
  .footer-salary-pills {
    gap: 0.35rem;
  }
  .footer-pill {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }
  .footer-disclaimer {
    font-size: 0.74rem;
    line-height: 1.55;
  }
  .footer-bottom-bar {
    font-size: 0.76rem;
  }

  .eeat-trust-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .info-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }
  .data-table th,
  .data-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }
  .faq-header {
    padding: 0.85rem 0.95rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  .faq-body {
    padding: 0 0.95rem 0.85rem;
    font-size: 0.85rem;
  }
  .state-search-box {
    min-width: 0 !important;
    width: 100% !important;
  }
  .state-directory-section .state-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.25rem;
  }
  .formula-box {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }
  .state-directory-section .state-grid-container {
    grid-template-columns: 1fr !important;
  }
  .state-directory-section input#state-search-input {
    width: 100% !important;
    box-sizing: border-box;
  }
  .card-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  .card-actions .btn-secondary {
    width: 100% !important;
    padding: 0.75rem !important;
    box-sizing: border-box;
  }
  .stat-boxes-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
  .links-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

