/* ==========================================================================
   SentinelHub — business module styles (task board / SentinelAI / training)
   Appended to the Immunefi-derived base stylesheet; visual language unchanged.
   ========================================================================== */

/* =========================== SRC task board =========================== */
.bounties-section { background: #000; padding: 100px 0; }
.bounties-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 34px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  max-width: 760px;
}
.bounties-section .body-dim { max-width: 760px; }

.b-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 32px 0 28px;
}
.b-search,
.b-select {
  height: 44px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14.4px;
  padding: 0 14px;
  outline: none;
  transition: border-color .15s ease;
}
.b-search { flex: 1 1 220px; min-width: 180px; }
.b-search::placeholder { color: rgba(255, 255, 255, 0.4); }
.b-search:focus, .b-select:focus { border-color: rgba(255, 255, 255, 0.38); }
.b-select { flex: 0 0 auto; min-width: 150px; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.55)' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.b-select option { background: #121212; color: #fff; }
.b-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}

.b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.b-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(18, 18, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13.5px;
  padding: 22px;
  min-height: 214px;
  transition: border-color .15s ease, transform .15s ease;
}
.b-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.b-card.is-paused { opacity: .55; }

.b-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #1c1c1c;
}
.b-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background-image: var(--grad);
}
.b-name {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-reward { display: flex; align-items: baseline; gap: 8px; }
.b-reward-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.b-reward-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.b-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.b-tag {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.b-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.b-badge {
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 3px 7px;
}
.b-badge-paused { color: #F0416B; border-color: rgba(240, 65, 107, .5); }

.b-card-foot { margin-top: auto; }
.b-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--pink);
}
.b-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.b-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  padding: 40px 0;
}
.b-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
#bMore { height: 46px; padding: 0 30px; border-radius: 7px; font-size: 14.4px; }

/* =========================== SentinelAI =========================== */
.ai-section { background: #000; padding: 100px 0; }
.ai-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 34px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  max-width: 780px;
}
.ai-copy {
  max-width: 660px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .5px;
  color: var(--dim);
  margin-bottom: 40px;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ai-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13.5px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(157, 16, 191, 0.0);
  filter: blur(50px);
  transition: background-color .25s ease;
  pointer-events: none;
}
.ai-card:hover::before { background: rgba(157, 16, 191, 0.22); }
.ai-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #F0416B;
  flex: none;
}
.ai-card-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}
.ai-card-copy {
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: .4px;
  color: var(--dim);
}
.ai-cta { margin-top: 40px; }

/* =========================== Training cards =========================== */
.courses-head { max-width: 1100px; margin: 0 auto 34px; }
.courses-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 34px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.courses-copy {
  font-size: 16px;
  letter-spacing: .5px;
  color: var(--dim);
}
.c-card { gap: 0; }
.c-level { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.75); }
.c-level-beginner { color: #6ee7a8; border-color: rgba(110, 231, 168, .45); }
.c-level-intermediate { color: #E52B65; border-color: rgba(229, 43, 101, .45); }
.c-level-advanced { color: #C08CF0; border-color: rgba(192, 140, 240, .45); }
.c-title {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}
.c-summary {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, 0.75);
}
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }
.c-tag {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 3px 8px;
}
.c-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.c-foot { margin-top: 16px; }
.c-foot .text-link { font-size: 14px; }
.courses-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 28px;
}

/* =========================== footer data note =========================== */
.data-note {
  font-size: 12.6px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.3);
  max-width: 420px;
}

/* =========================== responsive =========================== */
@media (max-width: 1024px) {
  .b-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .b-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .bounties-section, .ai-section { padding: 60px 0; }
  .bounties-title, .ai-title, .courses-title { font-size: 26px; line-height: 28.6px; }
  .b-toolbar { gap: 10px; }
  .b-search { flex: 1 1 100%; }
  .b-select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .b-count { margin-left: 0; width: 100%; }
  .b-grid { grid-template-columns: 1fr; }
  .ai-card { padding: 24px; }
  .footer-bottom .data-note { max-width: 100%; }
  .courses-head { margin-bottom: 26px; }
}

/* =========================== hero number length fix =========================== */
/* The rebranded hero shows "$100M+" (6 glyphs) instead of the base site's "40+",
   so the desktop clamp floor overflows narrow screens. Scale it to fit. */
@media (max-width: 700px) {
  .hero-big { font-size: clamp(64px, 16.5vw, 120px); }
}
html[lang="vi"] .hero-big { letter-spacing: -0.03em; }
