/* =========================================================
   BESTBROKER.ID - MODERN FOOTER
   Load after style.css
   ========================================================= */

.partner-ticker-section,
.partner-ticker-section *,
.footer,
.footer * {
  box-sizing: border-box;
}

/* Partner ticker */
.partner-ticker-section {
  position: relative;
  padding: 54px 0 34px;
  overflow: hidden;
  border-top: 1px solid rgba(71, 85, 105, 0.45);
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.15), transparent 30%),
    radial-gradient(circle at 85% 100%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #0d1427 0%, #080d1a 100%);
}

.partner-ticker-head {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  text-align: center;
}

.partner-ticker-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.partner-ticker-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.partner-ticker-head p {
  max-width: 620px;
  margin: 10px auto 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.partner-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.partner-ticker::before,
.partner-ticker::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  width: min(12vw, 150px);
  height: 100%;
  pointer-events: none;
}

.partner-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #080d1a 10%, transparent);
}

.partner-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #080d1a 10%, transparent);
}

.partner-ticker-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 4px 0;
  animation: bbPartnerTicker 34s linear infinite;
  will-change: transform;
}

.partner-ticker:hover .partner-ticker-track {
  animation-play-state: paused;
}

.partner-ticker-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.partner-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
  height: 72px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.82));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  color: #e2e8f0;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.partner-item::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
}

.partner-item:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(145deg, rgba(30, 52, 75, 0.94), rgba(15, 23, 42, 0.9));
  transform: translateY(-2px);
}

.partner-item img {
  display: block;
  width: 44px;
  height: 44px;
  padding: 6px;
  flex: 0 0 44px;
  object-fit: contain;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.partner-item span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.partner-ticker-note {
  width: min(840px, calc(100% - 32px));
  margin: 22px auto 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

@keyframes bbPartnerTicker {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

/* Main footer */
.footer {
  position: relative;
  z-index: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  background: #050914;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-glow {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.footer-glow-one {
  top: -220px;
  left: -150px;
  background: #0ea5e9;
}

.footer-glow-two {
  right: -190px;
  bottom: -250px;
  background: #2563eb;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
  padding: 22px 24px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.13), rgba(37, 99, 235, 0.05)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
}

.footer-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.2);
  color: #ffffff;
}

.footer-cta-icon svg {
  width: 25px;
  height: 25px;
}

.footer-cta-copy span {
  display: block;
  margin-bottom: 3px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.23);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-cta-button svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.footer-cta-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
}

.footer-cta-button:hover svg {
  transform: translateX(3px);
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 50px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr);
  gap: clamp(42px, 7vw, 90px);
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 13px;
  color: #ffffff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.footer-logo span {
  color: #38bdf8;
}

.footer-brand .footer-description {
  max-width: 510px;
  margin: 0 0 17px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.75;
}

.footer-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-values span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.07);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
}

.footer-values span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.11);
}

.footer-risk {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 540px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(251, 191, 36, 0.04));
  color: #fde68a;
  font-size: 12px;
}

.footer-risk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.footer-risk-icon svg {
  width: 16px;
  height: 16px;
}

.footer-risk p {
  margin: 0;
  color: #d6bf78;
  font-size: 12px;
  line-height: 1.65;
}

.footer-risk strong {
  display: block;
  margin-bottom: 2px;
  color: #fde68a;
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.footer-link-group {
  min-width: 0;
}

.footer-link-group summary {
  position: relative;
  margin: 0 0 17px;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  list-style: none;
  cursor: default;
}

.footer-link-group summary::-webkit-details-marker {
  display: none;
}

.footer-link-group summary::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-link-list a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0;
  padding-left: 13px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-list a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334155;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.footer-link-list a:hover {
  color: #7dd3fc;
  transform: translateX(3px);
}

.footer-link-list a:hover::before {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.11);
}

.footer-bottom {
  width: 100%;
  padding: 19px 0 22px;
  border-top: 1px solid rgba(30, 41, 59, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #64748b;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-affiliate-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-affiliate-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #38bdf8;
}

.footer a:focus-visible,
.footer summary:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .footer-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer-cta-button {
    grid-column: 2;
    width: fit-content;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 720px) {
  .partner-ticker-section {
    padding: 40px 0 27px;
  }

  .partner-ticker-head {
    width: min(100% - 28px, 1180px);
    margin-bottom: 21px;
  }

  .partner-ticker-head h2 {
    font-size: 25px;
  }

  .partner-ticker-head p {
    max-width: 340px;
    font-size: 13px;
  }

  .partner-ticker-track,
  .partner-ticker-group {
    gap: 12px;
  }

  .partner-ticker-track {
    animation-duration: 27s;
  }

  .partner-item {
    min-width: 172px;
    height: 62px;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .partner-item img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
  }

  .partner-item span {
    font-size: 12px;
  }

  .partner-ticker::before,
  .partner-ticker::after {
    width: 38px;
  }

  .partner-ticker-note {
    width: min(100% - 28px, 840px);
    margin-top: 18px;
    font-size: 11px;
  }

  @keyframes bbPartnerTicker {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 6px)); }
  }

  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 28px;
    padding: 19px;
    border-radius: 19px;
  }

  .footer-cta-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .footer-cta-copy h2 {
    font-size: 19px;
  }

  .footer-cta-button {
    width: 100%;
  }

  .footer-inner {
    padding: 38px 0 30px;
    gap: 30px;
  }

  .footer-logo {
    font-size: 25px;
  }

  .footer-brand .footer-description {
    font-size: 13px;
  }

  .footer-values {
    gap: 6px;
  }

  .footer-values span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .footer-risk {
    padding: 13px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .footer-link-group {
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
  }

  .footer-link-group summary {
    margin: 0;
    padding: 14px 44px 14px 15px;
    border: 0;
    cursor: pointer;
    user-select: none;
  }

  .footer-link-group summary::before,
  .footer-link-group summary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: auto;
    right: 16px;
    bottom: auto;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: #7dd3fc;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
  }

  .footer-link-group summary::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .footer-link-group[open] summary::after {
    transform: translateY(-50%) rotate(0);
  }

  .footer-link-list {
    gap: 0;
    padding: 0 15px 12px;
  }

  .footer-link-list a {
    width: 100%;
    padding: 9px 0 9px 14px;
    border-top: 1px solid rgba(51, 65, 85, 0.45);
  }

  .footer-bottom {
    padding: 18px 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-ticker-track {
    animation-play-state: paused;
  }

  .partner-item,
  .footer-cta-button,
  .footer-cta-button svg,
  .footer-link-list a {
    transition: none;
  }
}