/*
  Theme styles for light and dark modes.
  We use CSS variables so pages can reference colors via var(--token).
  The toggle flips a data-theme attribute on <html>.
  We also include smooth transitions for background and text colors.
*/

:root {
  /* Light theme tokens */
  --color-bg: #f5f5f7; /* Gray Light */
  --color-surface: #ffffff; /* White */
  --color-text: #221d67; /* Electric Violet 100% for text in light */
  --color-text-muted: #6b6b7a;
  --color-primary: #3724ce; /* Blue */
  --color-primary-contrast: #ffffff;
  --color-border: #e5e7eb;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --radius: 12px;

  /* Timing */
  --transition-fast: 180ms ease;
}

html[data-theme="dark"] {
  /* Dark theme tokens */
  --color-bg: #101010; /* Gray Bg */
  --color-surface: #16181c; /* Gray Dark */
  --color-text: #ffffff; /* White per style guide */
  --color-text-muted: #b7bcc7;
  --color-primary: #877ce2; /* Blue (dark variant) */
  --color-primary-contrast: #000000;
  --color-border: #262a33;
}

/* Base element theming */
html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.card, .navbar, .dropdown-menu, .list-group-item {
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.border, .table, .table > :not(caption) > * > * {
  border-color: var(--color-border) !important;
}

a, .link-primary {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

/* Ensure navbar links are readable in dark mode */
.navbar .nav-link, .navbar-brand { color: var(--color-text) !important; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--color-primary) !important; }

/* Sticky header + section offsets */
.site-header {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(135, 124, 226, 0.16);
  z-index: 1040;
}
html[data-theme="dark"] .site-header {
  background-color: rgba(16, 18, 24, 0.94) !important;
  border-bottom-color: rgba(135, 124, 226, 0.28);
}
.site-main {
  padding-top: 1.5rem;
}
.section-anchor {
  scroll-margin-top: 104px;
}
@media (max-width: 991.98px) {
  .section-anchor { scroll-margin-top: 90px; }
}

/* Form controls on dark theme */
html[data-theme="dark"] .form-control {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
html[data-theme="dark"] .form-control::placeholder { color: var(--color-text-muted); }

.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: #2f1fb1;
  --bs-btn-hover-border-color: #2f1fb1;
  --bs-btn-active-bg: #291c99;
  --bs-btn-active-border-color: #291c99;
  --bs-btn-color: var(--color-primary-contrast);
}

.text-muted {
  color: var(--color-text-muted) !important;
}

/* Theme toggle control */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  height: 34px;
  min-width: 100px; /* slightly narrower */
  border-radius: 9999px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover { transform: translateY(-1px); }

.theme-toggle .toggle-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.theme-toggle .theme-label { display: inline-block; width: 44px; text-align: left; }

/* Typography - Font Classes */
.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.raleway {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Apply fonts to elements */
h1, h2, h3, h4, h5, h6, 
.navbar-brand, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body, p, .text-muted, .small, 
.nav-link, .btn, .form-control, .form-label {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Utilities */
.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.elevated { box-shadow: var(--shadow-sm); }

/* Compact language switcher */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 4px 14px;
  min-width: 110px;
  border-radius: 9999px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover { background-color: rgba(135, 124, 226, 0.08); }
.lang-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(135, 124, 226, 0.25); }

/* Navbar search reveal */
.navbar-search .search-input {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width var(--transition-fast), opacity var(--transition-fast);
}
.navbar-search.active .search-input {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.icon-btn:hover { color: var(--color-primary); }

/* Search overlay positioned under navbar */
.search-overlay {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  padding: 8px 12px;
  display: none;
  z-index: 1060;
}
.navbar-search.active .search-overlay { display: block; }
.search-overlay #navbarSearchForm { max-width: 640px; margin: 0 auto; }
.search-overlay .form-control { height: 42px; }

/* Dropdown menu improvements to avoid merging with background */
.navbar .dropdown-menu {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  margin-top: 10px;
  padding: 8px;
  min-width: 200px;
  z-index: 1050;
}
.navbar .dropdown-menu .dropdown-item {
  color: var(--color-text);
  padding: 10px 14px;
  margin: 2px 0;
  line-height: 1.25;
  border-radius: 8px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: rgba(135, 124, 226, 0.18); /* primary tone with alpha */
  color: var(--color-text);
}
.navbar .dropdown-menu .dropdown-item.active {
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
}
.navbar .dropdown-menu .dropdown-header {
  padding: 6px 10px; margin: 2px 0 6px; color: var(--color-text-muted);
}
.navbar .dropdown-menu .dropdown-divider { border-color: var(--color-border); }

.navbar .dropdown-toggle::after { display: none; }
.dropdown-caret {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}
.dropdown-toggle .caret-icon {
  width: 12px;
  height: 12px;
  display: none;
}
html:not([data-theme="dark"]) .dropdown-toggle[aria-expanded="false"] .caret-icon--down.caret-icon--light,
html[data-theme="dark"] .dropdown-toggle[aria-expanded="false"] .caret-icon--down.caret-icon--dark {
  display: inline-block;
}
html:not([data-theme="dark"]) .dropdown-toggle[aria-expanded="true"] .caret-icon--up.caret-icon--light,
html[data-theme="dark"] .dropdown-toggle[aria-expanded="true"] .caret-icon--up.caret-icon--dark {
  display: inline-block;
}


/* Narrow content container for better readability */
.container-narrow {
  max-width: 1040px;
}
@media (min-width: 1400px) {
  .container-narrow { max-width: 1120px; }
}
@media (max-width: 576px) {
  .container-narrow { padding-left: 16px; padding-right: 16px; }
}

/* Footer styles */
.site-footer {
  background: var(--color-surface);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}
.site-footer .footer-link {
  color: var(--color-text);
  text-decoration: none;
}
.site-footer .footer-link:hover { color: var(--color-primary); }

/* Hero styles */
.hero-section {
  position: relative;
  min-height: 420px;
  background: var(--color-bg);
  overflow: hidden;
}
.hero-section--compact { min-height: 0; }
.hero-section .hero-title { font-size: 2.75rem; line-height: 1.1; }
@media (min-width: 992px) { .hero-section .hero-title { font-size: 3.5rem; } }
.hero-section .hero-slogan { color: var(--color-text-muted); max-width: 46ch; }
.hero-actions { margin-top: 1.5rem; }
.hero-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(55, 36, 206, 0.55);
  background: rgba(255, 255, 255, 0.9);
  color: #3724ce;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(55, 36, 206, 0.15);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.hero-video-btn:hover,
.hero-video-btn:focus {
  border-color: #3724ce;
  background: rgba(55, 36, 206, 0.12);
  color: #1e1488;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(55, 36, 206, 0.25);
}
.hero-video-btn__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3724ce;
  color: #fff;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease;
  overflow: hidden;
}
.hero-video-btn__icon img { width: 100%; height: 100%; object-fit: cover; filter: invert(1); }
html[data-theme="dark"] .hero-video-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 18, 24, 0.72);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .hero-video-btn:hover,
html[data-theme="dark"] .hero-video-btn:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(40, 42, 52, 0.85);
}
html[data-theme="dark"] .hero-video-btn__icon {
  background: rgba(255, 255, 255, 0.9);
  color: #211f3b;
}
html[data-theme="dark"] .hero-video-btn__icon img { filter: none; }
.hero-stats { color: var(--color-text); }
.hero-stat { min-width: 160px; }
.hero-stat__value { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.875rem; font-weight: 600; }
.hero-stat__label { display: block; font-size: 0.875rem; color: var(--color-text-muted); letter-spacing: 0.02em; text-transform: uppercase; }
.hero-section .container { position: relative; }
.hero-visual {
  position: absolute;
  inset: auto;
  top: clamp(50px, -22vw, -140px);
  right: clamp(0px, 4vw, 60px);
  width: clamp(420px, 55vw, 780px);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero-visual--inline {
  top: clamp(50px, -22vw, -140px);
  right: clamp(0px, 3vw, 40px);
}
.hero-visual img {
  width: 100%;
  opacity: 0.85;
  filter: drop-shadow(0 42px 64px rgba(60, 52, 126, 0.32));
  transform-origin: 70% 60%;
  animation: heroWave 20s ease-in-out infinite alternate;
}
.hero-visual__glow {
  position: absolute;
  width: clamp(340px, 60%, 480px);
  height: clamp(340px, 60%, 480px);
  right: clamp(-10px, 5vw, 80px);
  bottom: clamp(-140px, -12vw, -50px);
  background: radial-gradient(circle at 50% 50%, rgba(135, 124, 226, 0.38), transparent 68%);
  filter: blur(38px);
  opacity: 0.6;
}

@keyframes heroWave {
  0% { transform: translate3d(0, 0, 0) scaleX(1); opacity: 0.72; }
  50% { transform: translate3d(-18px, 0, 0) scaleX(1.04); opacity: 0.82; }
  100% { transform: translate3d(12px, 0, 0) scaleX(0.97); opacity: 0.7; }
}

/* Status pages */
.status-page {
  padding: 4rem 0 4.5rem;
}
.status-page__wrap {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 28px;
  background: var(--color-surface);
  border: 1px solid rgba(135, 124, 226, 0.18);
  box-shadow: 0 28px 48px rgba(16, 24, 40, 0.16);
}
html[data-theme="dark"] .status-page__wrap {
  background: rgba(16, 18, 24, 0.92);
  border-color: rgba(135, 124, 226, 0.32);
  box-shadow: 0 32px 56px rgba(0, 0, 0, 0.45);
}
.status-page__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(135, 124, 226, 0.22), rgba(135, 124, 226, 0.05));
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-primary);
}
.status-page__title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.status-page__summary {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.status-page__actions { display: flex; justify-content: center; gap: 12px; }
.status-page__actions .btn { min-width: 180px; }

@keyframes spectrumDrift {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-1.5%) scale(1.04);
    opacity: 0.97;
  }
  100% {
    transform: translateX(1.5%) scale(1.02);
    opacity: 0.9;
  }
}

/* Blog teaser */
.blog-teaser {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
}
.blog-filters .chip {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  padding: 6px 16px;
  font-size: 0.875rem;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.blog-filters .chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-filters .chip--active {
  background: rgba(135, 124, 226, 0.15);
  border-color: rgba(135, 124, 226, 0.35);
}
.blog-teaser__header .btn {
  white-space: nowrap;
  padding: 6px 18px;
}
.blog-filters {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(16, 24, 40, 0.12);
}
html[data-theme="dark"] .blog-card {
  background: rgba(22, 24, 28, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 36px rgba(8, 10, 18, 0.3);
}
.blog-card--promoted {
  border-color: rgba(255, 214, 122, 0.75);
  box-shadow: 0 20px 36px rgba(255, 210, 130, 0.18);
}
html[data-theme="dark"] .blog-card--promoted {
  border-color: rgba(255, 214, 122, 0.6);
  box-shadow: 0 24px 40px rgba(255, 210, 130, 0.18);
}
.exchange-card.is-promoted,
.software-card.is-promoted,
.job-feature--promoted {
  border-color: rgba(255, 214, 122, 0.75);
  box-shadow: 0 20px 36px rgba(255, 210, 130, 0.18);
}
html[data-theme="dark"] .exchange-card.is-promoted,
html[data-theme="dark"] .software-card.is-promoted,
html[data-theme="dark"] .job-feature--promoted {
  border-color: rgba(255, 214, 122, 0.55);
  box-shadow: 0 24px 40px rgba(255, 210, 130, 0.16);
}
.blog-card__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(135, 124, 226, 0.15);
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 122, 0.85);
  color: #53380a;
  box-shadow: 0 12px 24px rgba(255, 214, 122, 0.3);
}
html[data-theme="dark"] .blog-card__promo-badge {
  background: rgba(255, 214, 122, 0.9);
  color: #2f2206;
  box-shadow: 0 16px 32px rgba(255, 214, 122, 0.32);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.blog-card__sep { opacity: 0.4; }
.blog-card__tag { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.blog-card__access {
  margin-left: auto;
  background: rgba(135, 124, 226, 0.15);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-card__title { font-size: 1.25rem; }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--color-primary); }
.blog-card__summary { margin-bottom: 0; color: var(--color-text-muted); }
.blog-card--compact {
  padding: 14px 16px 18px;
  gap: 10px;
}
.blog-card--compact .blog-card__media { aspect-ratio: 16 / 9; }
.blog-card--compact .blog-card__title { font-size: 1.1rem; }
.blog-card--compact .blog-card__summary { font-size: 0.9rem; }
.blog-card--compact .blog-card__meta { font-size: 0.75rem; }
.blog-carousel { margin-top: 12px; }
.blog-carousel .carousel-inner {
  padding-bottom: 6px;
}
.blog-carousel .carousel-item {
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.blog-carousel .carousel-control-prev,
.blog-carousel .carousel-control-next {
  width: 3rem;
}
.blog-carousel .carousel-control-prev-icon,
.blog-carousel .carousel-control-next-icon {
  filter: invert(37%) sepia(22%) saturate(1247%) hue-rotate(216deg) brightness(90%) contrast(89%);
}
.blog-carousel .carousel-control-prev:focus,
.blog-carousel .carousel-control-next:focus {
  outline: none;
  box-shadow: none;
}
.uk-slider-container { padding-bottom: 10px; }
.uk-slider-items { gap: 16px; }

/* Portfolio teaser */
.portfolio-teaser {
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
}
.portfolio-teaser__header p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 1400px) {
  .portfolio-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.portfolio-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 992px) {
  .portfolio-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.portfolio-card {
  position: relative;
  border-radius: 26px;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid rgba(135, 124, 226, 0.15);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  overflow: hidden;
}
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(135, 124, 226, 0.35), rgba(135, 124, 226, 0));
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 0;
}
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(135, 124, 226, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 0;
}
.portfolio-card:hover,
.portfolio-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(16, 24, 40, 0.16);
  border-color: rgba(135, 124, 226, 0.4);
}
.portfolio-card:focus-visible {
  outline: 2px solid rgba(135, 124, 226, 0.6);
  outline-offset: 4px;
}
.portfolio-card:hover::before,
.portfolio-card:focus-within::before,
.portfolio-card:hover::after,
.portfolio-card:focus-within::after {
  opacity: 1;
}
html[data-theme="dark"] .portfolio-card {
  background: rgba(16, 18, 24, 0.9);
  border-color: rgba(135, 124, 226, 0.25);
  box-shadow: 0 28px 50px rgba(6, 8, 14, 0.45);
}
.portfolio-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}
.portfolio-card__headline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.portfolio-card__label { font-weight: 600; }
.portfolio-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portfolio-card__title { font-size: 1.35rem; margin-bottom: 0; }
.portfolio-card__summary { margin-bottom: 0; color: var(--color-text-muted); }
.portfolio-card__focus {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.portfolio-card__list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text);
}
.portfolio-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.portfolio-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-card__guide {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 16px;
}
.portfolio-card__access {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(135, 124, 226, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
}
.portfolio-card__access--pro { background: rgba(135, 124, 226, 0.3); color: var(--color-primary); }
.portfolio-card__access--all { background: rgba(255, 214, 102, 0.25); color: #b8860b; }
.portfolio-card__cta {
  font-size: 0.85rem;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.portfolio-card__cta:hover,
.portfolio-card__cta:focus { border-color: var(--color-primary); color: var(--color-primary); }
.portfolio-card__cta--primary {
  border-color: transparent;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.portfolio-card__cta--primary:hover,
.portfolio-card__cta--primary:focus { background: #2f1fb1; color: var(--color-primary-contrast); }
.portfolio-card--1::before { background: linear-gradient(135deg, rgba(129, 201, 255, 0.45), transparent); }
.portfolio-card--2::before { background: linear-gradient(135deg, rgba(129, 229, 190, 0.45), transparent); }
.portfolio-card--3::before { background: linear-gradient(135deg, rgba(135, 124, 226, 0.55), transparent); }
.portfolio-card--4::before { background: linear-gradient(135deg, rgba(175, 124, 226, 0.6), transparent); }
/* Exchange Showcase - Compact Card Grid */
.exchange-showcase__header .btn {
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
}
.exchange-showcase__section-head .btn {
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
}
.exchange-showcase__eyebrow { letter-spacing: 0.14em; }

.exchange-showcase__activities-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.1;
}
.exchange-showcase__activities-link svg {
  width: 12px;
  height: 12px;
}
.exchange-showcase__activities-link:hover {
  color: var(--color-primary-strong, var(--color-primary));
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .exchange-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .exchange-grid { grid-template-columns: repeat(3, 1fr); }
}

.exchange-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(135, 124, 226, 0.15);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  height: 100%;
}
.exchange-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
  border-color: rgba(135, 124, 226, 0.35);
}
html[data-theme="dark"] .exchange-card {
  background: rgba(22, 24, 28, 0.94);
  border-color: rgba(135, 124, 226, 0.2);
}
html[data-theme="dark"] .exchange-card__logo {
  background: rgba(135, 124, 226, 0.24);
  border-color: rgba(135, 124, 226, 0.4);
}
html[data-theme="dark"] .exchange-card__badge {
  background: rgba(135, 124, 226, 0.32);
}

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

.exchange-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.exchange-card__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(135, 124, 226, 0.25);
  background: rgba(135, 124, 226, 0.08);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.exchange-card:hover .exchange-card__logo {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.exchange-card__logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exchange-card__logo-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.exchange-card__title-wrap {
  flex: 1;
  min-width: 0;
}
.exchange-card__name {
  font-size: 1rem;
  margin-bottom: 2px;
}
.exchange-card__tagline {
  font-size: 0.78rem;
  line-height: 1.3;
}

.exchange-card__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.18);
  color: var(--color-primary);
}

.exchange-card__referral {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(135, 124, 226, 0.06);
  overflow: hidden;
}
.exchange-card__referral-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  word-break: break-all;
  font-family: "Space Grotesk", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.exchange-card__referral-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.exchange-card__copy-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid rgba(135, 124, 226, 0.25);
  background: transparent;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.exchange-card__copy-btn:hover {
  background: rgba(135, 124, 226, 0.1);
  border-color: rgba(135, 124, 226, 0.4);
}

.exchange-card__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.exchange-card__cta {
  border-radius: 12px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.1;
}

.exchange-card__more {
  border-radius: 12px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.1;
  border-color: rgba(135, 124, 226, 0.3);
  color: var(--color-text);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.exchange-card__more:hover {
  background: rgba(135, 124, 226, 0.1);
  border-color: rgba(135, 124, 226, 0.5);
  color: var(--color-text);
}

.exchange-card__activities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  min-height: 0;
}
.exchange-card__activities-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.exchange-card__activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exchange-card__activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(135, 124, 226, 0.05);
  transition: background-color var(--transition-fast);
}
.exchange-card__activity-item:hover {
  background: rgba(135, 124, 226, 0.14);
}

.exchange-card__activity-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.exchange-card__activity-text {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.3;
}

.exchange-card__activity-badge {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.2);
  color: var(--color-primary);
}
.exchange-card__activity-badge--free {
  background: rgba(34, 189, 156, 0.2);
  color: #178a6c;
}
.blog-card--promoted {
  border-color: rgba(255, 214, 122, 0.75);
  box-shadow: 0 20px 36px rgba(255, 210, 130, 0.18);
}
.blog-card--compact {
  padding: 14px 16px 18px;
  gap: 10px;
}
.blog-card--compact .blog-card__media { aspect-ratio: 16 / 9; }
.blog-card--compact .blog-card__title { font-size: 1.1rem; }
.blog-card--compact .blog-card__summary { font-size: 0.9rem; }
.blog-card--compact .blog-card__meta { font-size: 0.75rem; }

/* Jobs board */
.jobs-board__eyebrow { letter-spacing: 0.14em; }
.jobs-board__header h2 {
  font-size: 2rem;
  line-height: 1.15;
}
.jobs-board__header p { font-size: 0.95rem; }
.jobs-board__header .btn {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

.jobs-board__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.jobs-board__actions .btn {
  min-width: 124px;
  justify-content: center;
  width: auto;
}

.jobs-board__layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 600px;
  overflow: hidden;
}

.jobs-board__column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.jobs-board__filters-top,
.jobs-board__list,
.job-feature {
  padding: 18px 20px;
  border-radius: calc(var(--radius) + 2px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.jobs-board__filters-head .jobs-board__filters-title {
  font-size: 1rem;
}

.jobs-board__filters-head p {
  font-size: 0.85rem;
}

.pro-subscription {
  position: relative;
}
.pro-subscription__shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(135, 124, 226, 0.12), rgba(135, 124, 226, 0.02));
  border: 1px solid rgba(135, 124, 226, 0.25);
  box-shadow: 0 28px 46px rgba(23, 18, 72, 0.12);
}
html[data-theme="dark"] .pro-subscription__shell {
  background: rgba(17, 20, 28, 0.94);
  border-color: rgba(135, 124, 226, 0.35);
  box-shadow: 0 28px 46px rgba(8, 10, 18, 0.65);
}
.pro-subscription__bg {
  position: absolute;
  inset: -18% -18% -22%;
  pointer-events: none;
  z-index: 0;
}
.pro-subscription__bg::before,
.pro-subscription__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  mix-blend-mode: screen;
  transition: opacity 0.6s ease;
}
.pro-subscription__bg::before {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(135, 124, 226, 0.45), transparent 60%),
    radial-gradient(ellipse at 78% 28%, rgba(104, 208, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 50% 82%, rgba(190, 124, 226, 0.28), transparent 55%);
  animation: pro-bg-orbit 18s ease-in-out infinite alternate;
}
.pro-subscription__bg::after {
  background:
    repeating-linear-gradient(135deg, rgba(135, 124, 226, 0.12) 0 14px, transparent 14px 40px),
    repeating-linear-gradient(45deg, rgba(96, 192, 255, 0.08) 0 18px, transparent 18px 50px);
  animation: pro-bg-waves 22s linear infinite;
  opacity: 0.35;
}
html[data-theme="dark"] .pro-subscription__bg::before {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(135, 124, 226, 0.6), transparent 60%),
    radial-gradient(ellipse at 78% 28%, rgba(114, 218, 255, 0.4), transparent 55%),
    radial-gradient(ellipse at 50% 82%, rgba(140, 90, 226, 0.32), transparent 55%);
  opacity: 0.75;
}
html[data-theme="dark"] .pro-subscription__bg::after {
  opacity: 0.45;
}
.pro-subscription__shell::before,
.pro-subscription__shell::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: 0;
  pointer-events: none;
}
.pro-subscription__shell::before {
  width: 320px;
  height: 360px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(135, 124, 226, 0.45), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(78, 196, 255, 0.35), transparent 70%);
  filter: blur(0.5px);
  opacity: 0.65;
  transform: rotate(18deg);
  animation: pro-eth-wave 12s ease-in-out infinite alternate;
  clip-path: polygon(50% 0%, 100% 48%, 50% 100%, 0% 48%);
}
.pro-subscription__shell::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -160px;
  background: radial-gradient(circle at 50% 50%, rgba(135, 124, 226, 0.25), transparent 70%);
  filter: blur(42px);
  opacity: 0.5;
  animation: pro-eth-glow 16s ease-in-out infinite alternate;
}
html[data-theme="dark"] .pro-subscription__shell::before {
  background: radial-gradient(circle at 30% 30%, rgba(135, 124, 226, 0.55), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(94, 199, 255, 0.42), transparent 70%);
  opacity: 0.75;
}
html[data-theme="dark"] .pro-subscription__shell::after {
  background: radial-gradient(circle at 50% 50%, rgba(92, 78, 226, 0.34), transparent 72%);
  opacity: 0.6;
}
.pro-subscription__overview,
.pro-subscription__features {
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .pro-subscription__shell {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: center;
  }
}
.pro-subscription__overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pro-subscription__eyebrow { letter-spacing: 0.14em; }
.pro-subscription__title {
  font-size: 2rem;
  line-height: 1.15;
}
.pro-subscription__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pro-subscription__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pro-subscription__price-amount {
  font-size: 3rem;
  font-weight: 700;
}
.pro-subscription__price-currency {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pro-subscription__price-note {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pro-subscription__cta {
  align-self: flex-start;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 18px 28px rgba(47, 31, 177, 0.24);
}

.pro-subscription__features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 576px) {
  .pro-subscription__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .pro-subscription__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pro-subscription__feature {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(135, 124, 226, 0.18);
  box-shadow: 0 18px 30px rgba(23, 18, 72, 0.12);
}
html[data-theme="dark"] .pro-subscription__feature {
  background: rgba(17, 20, 28, 0.9);
  border-color: rgba(135, 124, 226, 0.35);
}
.pro-subscription__feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pro-subscription__feature-chip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.22);
  color: var(--color-primary);
}
.pro-subscription__feature-title {
  font-size: 1.1rem;
  margin: 0;
}
.pro-subscription__feature-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.software-market__header {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.software-market__eyebrow { letter-spacing: 0.14em; }
.software-market__title {
  font-size: 2rem;
  line-height: 1.15;
}
.software-market__actions {
  margin-top: 12px;
}
.software-market__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.software-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid rgba(135, 124, 226, 0.2);
  box-shadow: 0 22px 32px rgba(16, 24, 40, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(16, 24, 40, 0.16);
  border-color: rgba(135, 124, 226, 0.35);
}
html[data-theme="dark"] .software-card {
  background: rgba(17, 20, 28, 0.9);
  border-color: rgba(135, 124, 226, 0.35);
  box-shadow: 0 26px 46px rgba(8, 10, 18, 0.7);
}
.software-card__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.software-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.software-card__title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.software-card__logo {
  width: 64px;
  height: 44px;
  border-radius: 14px;
  background: rgba(135, 124, 226, 0.12);
  border: 1px solid rgba(135, 124, 226, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.software-card__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.software-card__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.16);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.software-card__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 214, 122, 0.25);
  color: #b37a10;
}
.software-card__name {
  font-size: 1.25rem;
  margin: 0;
}
.software-card__headline {
  font-size: 0.9rem;
  margin-bottom: 0;
}
.software-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.software-card__feature {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.software-card__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.software-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.software-card__price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.software-card__cta {
  border-radius: 12px;
  padding: 6px 14px;
  font-weight: 600;
}

@keyframes pro-eth-wave {
  0% { transform: rotate(16deg) translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: rotate(22deg) translate3d(-16px, 18px, 0) scale(1.05); opacity: 0.7; }
  100% { transform: rotate(14deg) translate3d(12px, -12px, 0) scale(0.98); opacity: 0.5; }
}

@keyframes pro-eth-glow {
  0% { transform: scale(0.9); opacity: 0.45; }
  100% { transform: scale(1.1); opacity: 0.65; }
}

@keyframes pro-bg-orbit {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.04); }
  100% { transform: rotate(-6deg) scale(0.96); }
}

@keyframes pro-bg-waves {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 220px 260px, -260px 180px; }
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}
.auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid rgba(135, 124, 226, 0.18);
  box-shadow: 0 24px 42px rgba(16, 24, 40, 0.12);
}
html[data-theme="dark"] .auth-card {
  background: rgba(17, 20, 28, 0.92);
  border-color: rgba(135, 124, 226, 0.32);
  box-shadow: 0 24px 42px rgba(8, 10, 18, 0.7);
}
.auth-card h1 {
  font-size: 2rem;
}
.auth-form .form-control {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(135, 124, 226, 0.3) !important;
  background: rgba(135, 124, 226, 0.08) !important;
  color: var(--color-text) !important;
}
.auth-form .form-control:focus {
  border-color: rgba(135, 124, 226, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(135, 124, 226, 0.18);
  background: rgba(135, 124, 226, 0.12) !important;
}
.auth-form .form-control::placeholder {
  color: var(--color-text-muted);
}
.auth-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.auth-form .form-text {
  color: var(--color-text-muted);
}
.auth-form .btn {
  padding: 10px 20px;
  border-radius: 12px;
}

.jobs-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.jobs-filter-tabs::-webkit-scrollbar { height: 6px; }
.jobs-filter-tabs::-webkit-scrollbar-thumb {
  background: rgba(135, 124, 226, 0.3);
  border-radius: 999px;
}

.jobs-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(135, 124, 226, 0.08);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.jobs-filter-tab:focus { outline: none; border-color: rgba(135, 124, 226, 0.45); }
.jobs-filter-tab:hover { background: rgba(135, 124, 226, 0.14); }
.jobs-filter-tab.is-active {
  background: rgba(135, 124, 226, 0.18);
  border-color: rgba(135, 124, 226, 0.45);
}

.jobs-filter-tab__bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.jobs-filter-tab__bullet--all { background: linear-gradient(135deg, #5d8cff, #3d6bff); }
.jobs-filter-tab__bullet--engineering { background: linear-gradient(135deg, #a47dff, #7b5bff); }
.jobs-filter-tab__bullet--growth { background: linear-gradient(135deg, #ffcf66, #ff9f4d); }
.jobs-filter-tab__bullet--operations { background: linear-gradient(135deg, #49d4c4, #2a9d8f); }
.jobs-filter-tab__bullet--trading { background: linear-gradient(135deg, #ff7aa2, #ff477e); }

.jobs-filter-tab__label { white-space: nowrap; }
.jobs-filter-tab__count {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jobs-filter-refine {
  border-top: 1px solid rgba(135, 124, 226, 0.12);
  padding-top: 14px;
}

.jobs-filter-refine__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jobs-filter-refine__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jobs-chip-refine {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(135, 124, 226, 0.25);
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.jobs-chip-refine:hover { background: rgba(135, 124, 226, 0.12); border-color: rgba(135, 124, 226, 0.45); }
.jobs-chip-refine.is-active {
  background: rgba(135, 124, 226, 0.2);
  border-color: rgba(135, 124, 226, 0.6);
  color: var(--color-primary);
  font-weight: 600;
}

.jobs-board__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.jobs-board__list-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.jobs-board__list-scroll::-webkit-scrollbar { width: 6px; }
.jobs-board__list-scroll::-webkit-scrollbar-thumb {
  background: rgba(135, 124, 226, 0.4);
  border-radius: 999px;
}

.jobs-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: var(--radius);
  background: rgba(22, 24, 28, 0.02);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

html[data-theme="dark"] .jobs-item {
  background: rgba(135, 124, 226, 0.05);
}

.jobs-item:hover {
  background: rgba(135, 124, 226, 0.1);
}

.jobs-item.is-active {
  border-color: rgba(135, 124, 226, 0.45);
  background: rgba(135, 124, 226, 0.14);
}

.jobs-item__header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.jobs-item__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.jobs-item__title { flex: 1 1 auto; }

.jobs-item__role {
  margin: 0;
  font-size: 1rem;
}

.jobs-item__company {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.jobs-item__meta {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jobs-item__comp {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.jobs-item__posted { text-transform: uppercase; letter-spacing: 0.05em; }

.jobs-item__divider { color: var(--color-text-muted); }

.jobs-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jobs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(135, 124, 226, 0.12);
  color: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .jobs-chip {
  background: rgba(135, 124, 226, 0.2);
}

.job-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.job-feature__badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(135, 124, 226, 0.14);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.job-feature--promoted .job-feature__badge {
  background: rgba(255, 214, 122, 0.25);
  color: #b37a10;
}

.job-feature__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-feature__title {
  font-size: 1.45rem;
  margin: 0;
}

.job-feature__company {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.job-feature__company:hover { text-decoration: underline; }

.job-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-feature__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 6px;
}

.job-feature__actions .btn {
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.job-feature__location,
.job-feature__posted {
  font-size: 0.85rem;
}

.job-feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.job-feature__list li {
  position: relative;
  padding-left: 20px;
}

.job-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.job-feature__body::-webkit-scrollbar {
  width: 6px;
}
.job-feature__body::-webkit-scrollbar-thumb {
  background: rgba(135, 124, 226, 0.35);
  border-radius: 999px;
}

.btn-ghost {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid transparent;
  color: var(--color-text);
  background: transparent;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: rgba(135, 124, 226, 0.1);
}

@media (max-width: 767.98px) {
  .jobs-board__list-scroll {
    max-height: none;
  }
  .jobs-board__header h2 { font-size: 1.75rem; }
  .jobs-board__layout { gap: 20px; }
  .job-feature__body {
    overflow: visible;
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .jobs-board__layout {
    flex-direction: row;
    align-items: stretch;
    gap: 28px;
  }
  .jobs-board__column { flex: 1 1 0; }
  .jobs-board__list-scroll,
  .job-feature__body {
    max-height: 600px;
  }
}
