body[data-service="bank"] {
  --accent: #176b57;
  --accent-soft: #edf9f5;
}

body[data-service="bank"] .page {
  padding-top: 10px;
  padding-bottom: 18px;
}

body[data-service="bank"] .header {
  margin-bottom: 10px;
}

body[data-service="bank"] .search-card {
  margin-bottom: 12px;
  padding: 13px 16px;
}

body[data-service="bank"] .search-card::before {
  background: linear-gradient(90deg, #176b57, #2b8cbe);
}

body[data-service="bank"] .search-head {
  margin-bottom: 6px;
}

body[data-service="bank"] .quick-engines {
  margin-top: 0;
}

body[data-service="bank"] .search-engine,
body[data-service="bank"] .search-input,
body[data-service="bank"] .search-button {
  min-height: 40px;
  font-size: 15px;
}

body[data-service="bank"] .badge {
  min-height: 29px;
  padding: 3px 10px;
  font-size: 13px;
}

body[data-service="bank"] .lead {
  font-size: 15px;
}

body[data-service="bank"] .bank-search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  min-width: 0;
}

body[data-service="bank"] .bank-affiliates {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

body[data-service="bank"] .bank-affiliate-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body[data-service="bank"] .bank-affiliate-group strong {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

body[data-service="bank"] .bank-affiliate-group a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: .16s ease;
}

body[data-service="bank"] .bank-affiliate-group a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

body[data-service="bank"] .bank-affiliate-group img {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}

body[data-service="bank"] .bank-directory {
  padding: 20px;
}

body[data-service="bank"] .bank-favorites {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 107, 87, .18);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(23, 107, 87, .10), rgba(43, 140, 190, .06)), var(--card);
  box-shadow: var(--shadow);
}

body[data-service="bank"] .bank-favorites[hidden] {
  display: none;
}

body[data-service="bank"] .bank-favorites__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-service="bank"] .bank-favorites__head strong {
  color: var(--accent);
  font-size: 14px;
}

body[data-service="bank"] .bank-favorites__head span {
  color: var(--muted);
  font-size: 11px;
}

body[data-service="bank"] .bank-favorites__head button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

body[data-service="bank"] .bank-favorites__head button:hover {
  color: var(--accent);
}

body[data-service="bank"] .bank-favorites__links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

body[data-service="bank"] .bank-favorites__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body[data-service="bank"] .bank-favorites__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body[data-service="bank"] .bank-favorites__links img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

body[data-service="bank"] .bank-favorites__links small {
  color: var(--muted);
  font-size: 10px;
}

body[data-service="bank"] .bank-directory .section-head,
body[data-service="bank"] .bank-directory .filter-row {
  margin-bottom: 12px;
}

body[data-service="bank"] .directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-service="bank"] .link-section {
  overflow: hidden;
  padding: 0 10px 9px;
  background: linear-gradient(180deg, rgba(23, 107, 87, .055), var(--card-soft) 36%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
}

body[data-service="bank"] .link-section__title {
  margin: 0 -10px 7px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(23, 107, 87, .16);
  background: linear-gradient(135deg, rgba(23, 107, 87, .14), rgba(43, 140, 190, .09));
  color: var(--accent);
  font-size: 18px;
}

body[data-service="bank"] .link-list {
  gap: 0;
}

body[data-service="bank"] .link-list a {
  min-height: 28px;
  margin-top: -1px;
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 4px;
  background: var(--card);
  font-size: 15px;
}

body[data-service="bank"] .link-list li:first-child a {
  margin-top: 0;
}

body[data-service="bank"] .link-list a:hover {
  border-color: rgba(23, 107, 87, .34);
  box-shadow: 0 2px 8px rgba(23, 107, 87, .08);
}

body[data-service="bank"].theme-dark .link-section {
  background: linear-gradient(180deg, rgba(45, 212, 191, .08), var(--card-soft) 36%);
}

body[data-service="bank"].theme-dark .link-section__title {
  border-bottom-color: rgba(94, 234, 212, .16);
  background: linear-gradient(135deg, rgba(45, 212, 191, .14), rgba(56, 189, 248, .08));
}

body[data-service="bank"] .link-favicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  padding: 1px;
}

body[data-service="bank"] .link-favicon--empty {
  background:
    linear-gradient(135deg, rgba(23, 107, 87, .18), rgba(43, 140, 190, .18)),
    var(--card);
}

body[data-service="bank"] .bank-tools {
  margin-top: 18px;
}

body[data-service="bank"] .bank-tools .section-head {
  margin-bottom: 10px;
}

body[data-service="bank"] .tools-lead {
  color: var(--muted);
  font-size: 15px;
}

body[data-service="bank"] .tools-row {
  margin-bottom: 0;
}

body[data-service="bank"] .footer {
  padding-top: 16px;
}

@media (max-width: 1100px) {
  body[data-service="bank"] .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-service="bank"] .bank-search-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body[data-service="bank"] .page {
    padding-top: 8px;
  }

  body[data-service="bank"] .bank-directory {
    padding: 15px;
  }

  body[data-service="bank"] .bank-favorites {
    padding: 9px 10px;
  }

  body[data-service="bank"] .bank-favorites__head span {
    display: none;
  }

  body[data-service="bank"] .directory-grid {
    grid-template-columns: 1fr;
  }

  body[data-service="bank"] .bank-affiliates {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
}
