.product-switch-panel {
  order: 0;
  width: min(100%, 700px);
  margin: 0 auto 12px;
}

.product-switch-prompt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding-left: 7px;
  color: #738198;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: left;
}

.product-switch-prompt svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-switcher.product-switcher--three {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 30px;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(33.333% - 0.5px),
      rgba(148, 163, 184, 0.24) calc(33.333% - 0.5px),
      rgba(148, 163, 184, 0.24) calc(33.333% + 0.5px),
      transparent calc(33.333% + 0.5px),
      transparent calc(66.667% - 0.5px),
      rgba(148, 163, 184, 0.24) calc(66.667% - 0.5px),
      rgba(148, 163, 184, 0.24) calc(66.667% + 0.5px),
      transparent calc(66.667% + 0.5px)
    ),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-switcher--three .product-switch-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 58px;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #5f6b81;
  background: transparent;
  box-shadow: none;
  font-size: 15.5px;
  font-weight: 760;
  letter-spacing: -0.012em;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.product-switcher--three .product-switch-link:hover:not(.is-active) {
  color: #273248;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-switcher--three .product-switch-link:focus-visible {
  z-index: 3;
  outline: 3px solid rgba(79, 112, 242, 0.2);
  outline-offset: 2px;
}

.product-switch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-switch-label--short {
  display: none;
}

.product-switch-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 4px 10px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.product-switch-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

body[data-page="recharge"] .product-switcher--three .product-switch-link.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #8457f5 0%, #6265eb 100%);
  box-shadow:
    0 11px 24px rgba(99, 80, 231, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-page="claude-recharge"] .product-switcher--three .product-switch-link.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #c85b39 0%, #df7957 100%);
  box-shadow:
    0 11px 24px rgba(184, 75, 23, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-page="grok-recharge"] .product-switcher--three .product-switch-link.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #242832, #080a0f);
  box-shadow:
    0 11px 24px rgba(15, 23, 42, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.product-switcher--three .product-switch-link.is-active .product-switch-icon {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.grok-header .product-switch-panel {
  order: 0;
  margin-bottom: 18px;
}

.grok-header .product-switch-panel .product-switcher {
  margin-bottom: 0;
}

@media (max-width: 1320px) {
  .official-brand-subtitle {
    display: none;
  }
}

@media (max-width: 620px) {
  .product-switch-panel {
    width: 100%;
    margin-bottom: 10px;
  }

  .product-switch-prompt {
    gap: 6px;
    margin-bottom: 6px;
    padding-left: 3px;
    font-size: 12px;
  }

  .product-switch-prompt svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .product-switcher.product-switcher--three {
    gap: 0;
    width: 100%;
    padding: 4px;
    border-radius: 22px;
  }

  .product-switcher--three .product-switch-link {
    min-height: 50px;
    gap: 5px;
    padding: 5px 4px;
    border-radius: 17px;
    font-size: 11.5px;
    letter-spacing: -0.015em;
  }

  .product-switch-label--full {
    display: none;
  }

  .product-switch-label--short {
    display: inline;
  }

  .product-switch-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .product-switch-icon img {
    width: 100%;
    height: 100%;
  }

  .grok-header .product-switch-panel {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-switcher--three .product-switch-link {
    transition: none;
  }
}
