* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
  --primary: #4f7cff;
  --primary-dark: #3d5fa3;
  --accent: #8df5a4;
  --accent-pink: #ff6b9d;
  --bg-dark: #0b1220;
  --bg-card: #151f36;
  --border: #22345f;
  --text-primary: #fff;
  --text-secondary: #9db4ff;
  --success: #8df5a4;
  --danger: #ff6b6b;
}

/* Material Icons */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-flex;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

.logo-icon {
  font-size: 48px;
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
}

.stat-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.inline-icon {
  font-size: 24px;
  color: var(--primary);
  margin-right: 8px;
  vertical-align: middle;
}

.inline-icon-sm {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

.inline-icon-xs {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 3px;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 20px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  body {
    padding: 30px;
  }
}

header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 30px;
}

.header-content {
  max-width: 900px;
  margin: auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.mobile-menu-btn i {
  font-size: 28px;
}

/* Mobile Navigation Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 999;
  flex-direction: column;
  padding-top: 80px;
  padding-left: 20px;
  padding-right: 20px;
}

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

.mobile-menu-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 15px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color 0.2s;
}

.mobile-menu-link:hover {
  color: var(--primary);
}

.logo {
  font-size: 48px;
  filter: drop-shadow(0 0 10px var(--primary));
}

header h1 {
  font-size: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  opacity: 0.85;
  font-size: 16px;
}

main {
  max-width: 1000px;
  margin: 0 auto;
}

/* Filters Section */
.filters-section {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.filters-section h2 {
  margin-bottom: 15px;
  font-size: 18px;
  margin-top: 0;
}

.filter-group {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 10px;
  vertical-align: middle;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.filter-label input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

select, input[type="number"] {
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color 0.2s;
  min-width: 140px;
}

select:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
}

.reset-btn {
  padding: 8px 16px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.reset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Top Paying Section */
.top-paying-section {
  margin-bottom: 30px;
}

.top-paying-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.top-paying-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.top-paying-card {
  background: var(--bg-card);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.top-paying-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

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

.paying-header h4 {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.salary-tag {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.paying-company {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.paying-range {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

/* Jobs Section */
.jobs-section {
  margin-bottom: 40px;
}

.jobs-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.jobs-container {
  margin-bottom: 25px;
}

.job-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.job-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.15);
}

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

.job-header > div {
  flex: 1;
}

.job-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.job-company {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.remote-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.job-location {
  color: var(--text-secondary);
}

.job-posted {
  color: var(--text-secondary);
  opacity: 0.8;
}

.job-salary {
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.job-desc {
  opacity: 0.85;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.apply-btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.apply-btn:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
}

.apply-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pagination-btn {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  font-weight: 500;
  opacity: 0.9;
}

/* Insights Section */
.insights-section {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.insights-section h2 {
  margin-bottom: 25px;
  font-size: 20px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.insight-box {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.insight-box h3 {
  font-size: 15px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.insight-stat {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.insight-change {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.insight-box ul {
  list-style: none;
  padding: 0;
}

.insight-box li {
  padding: 8px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
}

.count-badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* SEO Content Section */
.seo-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  line-height: 1.8;
}

.seo-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.seo-content h3 {
  font-size: 20px;
  margin: 25px 0 15px 0;
  color: var(--text-primary);
}

.seo-content p {
  margin-bottom: 16px;
  opacity: 0.9;
  font-size: 15px;
}

.seo-content strong {
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
footer.footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-about .logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-about .logo span {
  color: var(--accent);
}

.footer-about p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-links,
.footer-legal {
  text-align: left;
}

.footer-links h4,
.footer-legal h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

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

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  opacity: 0.6;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom strong {
  opacity: 1;
}

/* Legal Content Pages */
.legal-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.legal-content p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-content li {
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Loading State */
.loading {
  text-align: center;
  opacity: 0.7;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 640px) {
  body {
    padding: 15px;
  }

  header {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .logo-section {
    justify-content: flex-start;
  }

  .logo {
    font-size: 36px;
  }

  header h1 {
    font-size: 28px;
  }

  header p {
    font-size: 14px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filters-section {
    padding: 15px;
  }

  .filter-group {
    display: block;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .filter-label {
    white-space: normal;
  }

  select, input[type="number"] {
    width: 100%;
    min-width: auto;
  }

  .reset-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .top-paying-container {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pagination-btn {
    flex: 1;
    min-width: 120px;
  }

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

  .seo-content {
    padding: 20px;
  }

  .seo-content h2 {
    font-size: 22px;
  }

  .seo-content h3 {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-about,
  .footer-links,
  .footer-legal {
    text-align: center;
  }

  .footer-about .logo {
    text-align: center;
  }

  .footer-links h4,
  .footer-legal h4 {
    text-align: center;
  }

  .footer-links ul,
  .footer-legal ul {
    text-align: center;
  }
}
