:root {
  --primary: #6e29f6;
  --primary-2: #8a35ff;
  --ink: #111827;
  --muted: #57627f;
  --line: #dfe4ef;
  --soft: #f2f5fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 34px;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(214, 218, 230, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  width: 250px;
  min-width: 250px;
}

.brand img {
  display: block;
  width: 250px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  gap: 30px;
  color: #1f2937;
  font-size: 16px;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--primary);
}

.nav-product {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.desktop-nav .nav-product {
  align-self: stretch;
  height: 100%;
}

.desktop-nav .nav-product::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -58px;
  right: -360px;
  height: 54px;
  z-index: 39;
}

.product-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-product:hover .product-trigger,
.nav-product:focus-within .product-trigger,
.nav-product.open .product-trigger {
  color: var(--primary);
}

.product-menu {
  position: absolute;
  top: 100%;
  left: -34px;
  z-index: 120;
  width: 430px;
  padding: 32px 40px 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(49, 44, 92, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-product:hover .product-menu,
.nav-product:focus-within .product-menu,
.nav-product.open .product-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-menu strong {
  display: block;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.product-menu strong:nth-of-type(2) {
  margin-top: 34px;
}

.product-menu a {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 -18px;
  padding: 16px 18px;
  border-radius: 999px;
  color: #20283a;
  font-size: 22px;
  font-weight: 500;
}

.product-menu a:hover {
  color: var(--primary);
  background: #efe9ff;
}

.product-icon {
  width: 38px;
  color: #05070b;
  text-align: center;
  font-size: 22px;
  line-height: 1;
}

.login-btn,
.mobile-panel button {
  margin-left: auto;
  min-width: 82px;
  height: 38px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.mobile-panel {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 30;
  display: none;
  width: min(280px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
}

.mobile-panel.open {
  display: grid;
  gap: 16px;
}

.mobile-panel .nav-product {
  display: grid;
  align-items: stretch;
}

.mobile-panel .product-menu {
  position: static;
  width: auto;
  padding: 6px 0 0 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-panel .product-menu strong {
  margin: 10px 0 4px;
  font-size: 13px;
}

.mobile-panel .product-menu strong:nth-of-type(2) {
  margin-top: 12px;
}

.mobile-panel .product-menu a {
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
}

.mobile-panel .product-icon {
  width: 18px;
  font-size: 13px;
}

.product-landing {
  background: #fff;
}

.product-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(116, 212, 255, 0.22), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(126, 41, 246, 0.2), transparent 28%),
    #fff;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  min-height: 760px;
  padding: 150px clamp(24px, 7vw, 126px) 84px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.78)),
    var(--hero-bg, none) center / cover no-repeat;
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% 44%;
  height: 360px;
  border-radius: 999px;
  background: rgba(110, 41, 246, 0.12);
  filter: blur(70px);
  pointer-events: none;
}

.product-copy,
.product-visual {
  position: relative;
  z-index: 1;
}

.product-copy .eyebrow {
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 800;
}

.product-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #101828;
  font-size: clamp(46px, 5.4vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.product-copy h1 span {
  color: var(--primary);
}

.product-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #57627f;
  font-size: 21px;
  line-height: 1.75;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  font-weight: 700;
}

.product-actions a:first-child {
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--primary-2));
}

.product-actions a:last-child {
  color: #20283a;
  background: #fff;
  border: 1px solid rgba(110, 41, 246, 0.2);
}

.product-visual {
  min-height: 440px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 36px 90px rgba(42, 31, 92, 0.16);
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.gateway-logos {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 44px;
}

.gateway-logos img {
  width: min(100%, 470px);
  height: auto;
  min-height: auto;
  object-fit: contain;
}

.product-section {
  padding: 108px clamp(24px, 7vw, 126px);
}

.product-section.soft {
  background: #f6f8ff;
}

.product-section h2 {
  max-width: 930px;
  margin: 0 auto 22px;
  color: #101828;
  text-align: center;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.18;
}

.product-section > p {
  max-width: 860px;
  margin: 0 auto 54px;
  color: #64708d;
  text-align: center;
  font-size: 19px;
  line-height: 1.8;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-feature-grid article,
.product-image-card,
.product-quote {
  border: 1px solid rgba(213, 220, 236, 0.88);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.08);
}

.product-feature-grid article {
  min-height: 228px;
  padding: 30px;
}

.product-feature-grid img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 24px;
}

.product-feature-grid h3,
.product-image-card h3,
.product-quote h3 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 24px;
}

.product-feature-grid p,
.product-image-card p,
.product-quote p,
.product-list li {
  color: #64708d;
  font-size: 16px;
  line-height: 1.75;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-image-card {
  overflow: hidden;
}

.product-image-card img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-image-card div {
  padding: 28px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.product-list li {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 220, 236, 0.86);
}

.product-list b {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 19px;
}

.product-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.product-quote {
  padding: 30px;
}

.product-cta {
  padding: 110px 24px 124px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #6e29f6 0%, #8a35ff 48%, #201d44 100%);
}

.product-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 58px);
}

.product-cta p {
  margin: 0 auto 34px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.75;
}

.product-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 48px;
  padding: 0 26px;
  border-radius: 24px;
  color: var(--primary);
  font-weight: 800;
  background: #fff;
}


.home-hero {
  position: relative;
  height: 888px;
  overflow: hidden;
  background: #f5f7fb;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 80px clamp(24px, 7vw, 132px) 40px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 1.2s ease;
  pointer-events: none;
}

.home-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.home-slide-copy {
  width: min(980px, 100%);
  color: #111827;
}

.home-slide-copy.center {
  justify-self: center;
  text-align: center;
}

.home-slide-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: 0;
}

.home-slide-copy h1 span {
  color: var(--primary);
  white-space: nowrap;
}

.home-slide-copy p {
  width: min(760px, 100%);
  margin: 0 0 32px;
  color: #111827;
  font-size: 20px;
  line-height: 1.65;
}

.home-slide-copy.center p {
  margin-inline: auto;
  font-size: 32px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 166px;
  height: 64px;
  padding: 0 24px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #252736, var(--primary));
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(110, 41, 246, 0.28);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dots button {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  background: #e3e3e3;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.active {
  background: var(--primary);
}

.hero-dots button:hover {
  transform: translateY(-2px);
}

.home-section {
  width: min(1210px, calc(100% - 28px));
  margin: 0 auto 110px;
  padding-top: 10px;
  text-align: center;
}

.home-section:first-of-type {
  margin-top: 110px;
}

.home-section h2 {
  margin: 0 0 54px;
  color: #111827;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
}

.home-section .section-lead.centered {
  width: min(760px, 100%);
  margin: -42px auto 64px;
  text-align: center;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: 58px 48px;
  border-radius: 12px;
  background: #f1f1ff;
  text-align: left;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-card.dark {
  color: #fff;
  background: #36384a;
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(30, 41, 59, 0.12);
}

.home-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 650;
}

.home-card p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.65;
}

.home-card a {
  position: absolute;
  left: 33px;
  bottom: 50px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 120px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: #743aed;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease;
}

.home-card:hover a {
  color: #743aed;
  background: #fff;
}

.home-card img {
  position: absolute;
  right: -26px;
  bottom: -18px;
  width: 220px;
  height: 220px;
  object-fit: contain;
  animation: float-card 5.4s ease-in-out infinite;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 866px;
  padding: 76px 92px;
  border: 1px solid #dedfee;
  border-radius: 15px;
  background: #faf9fc;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stat-card.dark {
  color: #fff;
  background: #1d1f2c;
  border-color: #1d1f2c;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(29, 31, 44, 0.18);
}

.stat-card h3 {
  margin: 0 0 82px;
  font-size: 36px;
  line-height: 1;
}

.stat-card strong {
  display: block;
  margin-top: 40px;
  font-size: clamp(58px, 5vw, 84px);
  line-height: 1;
}

.stat-card p {
  margin: 12px 0 26px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 74px;
  text-align: left;
}

.feature-grid article {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 48px 32px;
  background: #f5f5f8;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.feature-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 58px rgba(30, 41, 59, 0.12);
}

.feature-grid img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  transition: transform 0.28s ease;
}

.feature-grid article:hover img {
  transform: rotate(-6deg) scale(1.08);
}

.feature-grid h3 {
  margin: 0 0 34px;
  color: #1f2937;
  font-size: 32px;
  text-align: center;
}

.feature-grid p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.75;
}

.solution-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.solution-tabs {
  display: grid;
  align-content: start;
  gap: 12px;
}

.solution-tabs button {
  height: 58px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  color: #1f2937;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.solution-tabs button.active,
.solution-tabs button:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  transform: translateX(4px);
}

.solution-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f8;
}

.solution-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: center;
  padding: 34px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.solution-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.solution-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
}

.solution-card h3 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.2;
}

.solution-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.home-section,
.customer-wall,
.footer {
  animation: section-rise 0.7s ease both;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 818px;
  padding: 120px 24px 40px;
  display: grid;
  place-items: center;
  text-align: center;
  background: url("./hero-bg.png") center bottom / cover no-repeat;
}

.hero-copy {
  width: min(100%, 1120px);
}

.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(42px, 6.7vw, 102px);
  line-height: 1.15;
  font-weight: 650;
  color: #111827;
  letter-spacing: 0;
}

.hero p {
  width: min(786px, 100%);
  margin: 0 auto 42px;
  color: #475569;
  font-size: 20px;
  line-height: 1.8;
}

.primary-link,
.join-btn {
  display: inline-grid;
  place-items: center;
  height: 56px;
  min-width: 156px;
  padding: 0 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 38px rgba(110, 41, 246, 0.28);
}

.section {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 118px 24px 96px;
}

.customer-wall {
  overflow: hidden;
  padding: 112px 0 86px;
  background:
    radial-gradient(circle at 18% 48%, rgba(122, 234, 203, 0.36), transparent 36%),
    linear-gradient(105deg, #def8ed 0%, #e8eef8 53%, #eee9ff 100%);
}

.customer-wall h2 {
  margin: 0 0 56px;
  color: #182235;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.2;
  text-align: center;
  font-weight: 680;
}

.marquee-row {
  width: 100%;
  margin: 0 0 34px;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: logo-slide 72s linear infinite;
}

.reverse .logo-track {
  animation-direction: reverse;
  animation-duration: 104s;
}

.slow .logo-track {
  animation-duration: 60s;
}

.customer-wall:hover .logo-track {
  animation-play-state: paused;
}

.logo-track span,
.logo-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 185px;
  height: 80px;
  padding: 0;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(55, 63, 88, 0.06);
  color: #1b2434;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.logo-track img {
  display: block;
  width: 185px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-track span:nth-child(6n + 1) {
  color: #1769ff;
}

.logo-track span:nth-child(6n + 2) {
  color: #253b74;
}

.logo-track span:nth-child(6n + 3) {
  color: #111;
}

.logo-track span:nth-child(6n + 4) {
  color: #0b67d8;
}

.logo-track span:nth-child(6n + 5) {
  color: #202436;
}

.logo-track span:nth-child(6n) {
  color: #f05a28;
}

.customer-cta {
  width: min(1160px, calc(100% - 48px));
  margin: 76px auto 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  color: #111827;
}

.customer-cta h3 {
  margin: 0 0 26px;
  font-size: 32px;
  line-height: 1.25;
}

.customer-cta p {
  display: inline-block;
  margin: 0 18px 0 0;
  color: #20283a;
  font-size: 26px;
  font-weight: 600;
}

.dark-link {
  display: inline-grid;
  place-items: center;
  height: 44px;
  min-width: 140px;
  padding: 0 24px;
  border-radius: 8px;
  color: #fff;
  background: #252539;
}

@keyframes logo-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes case-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2,
.join h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.2;
  font-weight: 640;
}

.section-lead {
  margin: 18px 0 54px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mode-card {
  min-height: 314px;
  padding: 36px;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background:
    radial-gradient(circle at right top, rgba(110, 41, 246, 0.08), transparent 40%),
    #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 41, 246, 0.4);
  box-shadow: 0 22px 54px rgba(40, 48, 74, 0.1);
}

.mode-card span {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.mode-card h3,
.benefit-grid h3 {
  margin: 12px 0 22px;
  color: #111827;
  font-size: 26px;
  line-height: 1.3;
}

.mode-card p,
.benefit-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.benefits {
  background: #f7f8fc url("https://static01.siliconflow.cn/f/static/cn/home/bg-section-3.svg") center / cover no-repeat;
}

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

.benefit-grid article {
  min-height: 312px;
  padding: 34px 28px;
  border: 1px solid #e1e5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.benefit-grid span {
  color: var(--primary);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

.case-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 10px 0 22px;
}

.case-row {
  overflow: hidden;
  margin-bottom: 22px;
}

.case-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: case-slide 46s linear infinite;
}

.case-row.reverse .case-track {
  animation-direction: reverse;
  animation-duration: 52s;
}

.case-row.slow .case-track {
  animation-duration: 58s;
}

.case-marquee:hover .case-track {
  animation-play-state: paused;
}

.case-track article {
  width: 360px;
  height: 168px;
  flex: 0 0 auto;
  padding: 30px 34px 24px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04);
  cursor: pointer;
}

.case-track article:hover {
  border-color: rgba(110, 41, 246, 0.38);
  box-shadow: 0 18px 46px rgba(40, 48, 74, 0.11);
}

.case-track img {
  display: block;
  width: 100%;
  height: 38px;
  margin-bottom: 28px;
  object-fit: contain;
  object-position: left center;
}

.case-track p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.join {
  width: min(1400px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 98px 24px;
  text-align: center;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(110deg, #6e29f5 0%, #8a35ff 48%, #c966f5 100%);
  box-shadow: 0 24px 70px rgba(110, 41, 246, 0.22);
}

.join h2 {
  color: #fff;
}

.join p {
  max-width: 780px;
  margin: 24px auto 42px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.7;
}

.join-btn {
  color: var(--primary);
  background: #fff;
  box-shadow: none;
}

.footer {
  margin-top: 0;
  padding: 120px 24px 70px;
  background: var(--soft);
}

.footer-inner {
  width: min(1434px, 100%);
  margin: 0 auto 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand img {
  width: 224px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 6px;
}

.footer-links {
  display: flex;
  gap: 92px;
}

.footer-links div {
  display: grid;
  gap: 16px;
  color: #1f2937;
}

.footer h4 {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
}

.footer a,
.contact p {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
}

.contact {
  display: grid;
  gap: 12px;
  max-width: 300px;
}

.copyright {
  width: min(1434px, 100%);
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid #d5d6ea;
  color: var(--muted);
  font-size: 16px;
}

.login-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.login-card .close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  cursor: pointer;
}

.login-card img {
  width: 220px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
  text-align: center;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 15px;
}

.login-card input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d8ddea;
  border-radius: 8px;
  outline: 0;
}

.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(110, 41, 246, 0.12);
}

.login-card .submit {
  height: 48px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.login-card .auth-switch {
  border: 0;
  background: transparent;
  color: #d62828;
  cursor: pointer;
  font: inherit;
  padding: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  inset: auto auto 30px 50%;
  z-index: 50;
  margin: 0;
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.login-card .toast {
  position: static;
  display: none;
  justify-self: stretch;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  color: #b42318;
  background: #fef3f2;
  text-align: center;
  transform: none;
}

.login-card .toast.show {
  display: block;
  transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-actions .login-btn { margin-left: 0; }

.language-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #f7f8fc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.language-switch:hover {
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.16);
  transform: translateY(-1px);
}

.language-switch img { display: block; width: 100%; height: 100%; object-fit: cover; }

.header-actions .language-switch,
.console-top > .language-switch {
  position: static;
  flex: 0 0 auto;
}

.console-top > .language-switch {
  margin-left: auto;
  margin-right: 10px;
}

@media (max-width: 760px) {
  body > .language-switch { top: 14px; right: 64px; }
}

.app-body {
  min-height: 100vh;
  background: #f6f8fc;
}

.page-main {
  padding: 116px 24px 80px;
}

.page-hero,
.content-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero {
  padding: 68px 0 46px;
}

.page-hero h1 {
  margin: 0 0 18px;
  color: #111827;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.12;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.content-shell {
  display: grid;
  gap: 22px;
}

.panel,
.doc-sidebar,
.model-sidebar,
.model-card,
.price-card {
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.04);
}

.models-layout {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.model-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 16px;
}

.model-sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #475569;
}

.model-sidebar a.active,
.model-sidebar a:hover {
  color: var(--primary);
  background: #f5f0ff;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.search-box {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background: #fff;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill-tabs span {
  padding: 9px 16px;
  border: 1px solid #e2e7f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
}

.pill-tabs span.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f0ff;
}

.model-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-card,
.price-card,
.panel {
  padding: 24px;
}

.model-card h3,
.price-card h3,
.panel h2 {
  margin: 0 0 12px;
  color: #111827;
}

.model-card p,
.price-card p,
.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f8;
  font-size: 13px;
}

.doc-layout {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.doc-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 20px;
}

.doc-sidebar a {
  display: block;
  padding: 10px 0;
  color: #475569;
}

.doc-content {
  display: grid;
  gap: 18px;
}

.code-block {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  color: #e6edf3;
  background: #111827;
  line-height: 1.65;
}

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

.form-grid label,
.form-full {
  display: grid;
  gap: 8px;
  color: #475569;
}

.form-grid input,
.form-full textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background: #fff;
}

.form-full textarea {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 20px;
  }

  .home-hero {
    height: 760px;
  }

  .desktop-nav {
    gap: 18px;
    font-size: 15px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner,
  .footer-links {
    gap: 42px;
  }

  .model-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-shell {
    grid-template-columns: 1fr;
  }

  .solution-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .solution-tabs button.active,
  .solution-tabs button:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 820px) {
  .model-subgrid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand,
  .brand img {
    width: 188px;
    min-width: 188px;
  }

  .desktop-nav,
  .site-header > .login-btn,
  .header-actions .login-btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-panel {
    top: 68px;
  }

  .home-hero {
    height: 588px;
  }

  .home-slide {
    align-items: center;
    padding: 86px 24px 48px;
    background-position: center;
  }

  .home-slide-copy,
  .home-slide-copy.center {
    justify-self: center;
    text-align: center;
  }

  .home-slide-copy h1 {
    margin-bottom: 20px;
    font-size: 36px;
  }

  .home-slide-copy p,
  .home-slide-copy.center p {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .hero-action {
    height: 54px;
    min-width: 140px;
    border-radius: 10px;
    font-size: 18px;
  }

  .home-section,
  .home-section:first-of-type {
    width: calc(100% - 28px);
    margin-bottom: 78px;
    margin-top: 76px;
  }

  .home-section h2 {
    margin-bottom: 38px;
    font-size: 38px;
  }

  .home-section .section-lead.centered {
    margin: -20px auto 38px;
    font-size: 16px;
  }

  .home-card-grid,
  .stat-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 336px;
    padding: 34px 28px;
  }

  .home-card h3,
  .feature-grid h3 {
    font-size: 28px;
  }

  .home-card p {
    max-width: 62%;
    font-size: 16px;
  }

  .home-card a {
    left: 28px;
    bottom: 34px;
  }

  .home-card img {
    width: 180px;
    height: 180px;
  }

  .stat-card {
    min-height: auto;
    padding: 48px 40px;
  }

  .stat-card h3 {
    margin-bottom: 42px;
    font-size: 32px;
  }

  .stat-card strong {
    margin-top: 30px;
    font-size: 64px;
  }

  .stat-card p {
    font-size: 20px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .solution-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-tabs button {
    height: 48px;
    font-size: 16px;
  }

  .solution-stage {
    min-height: 560px;
  }

  .solution-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 22px;
  }

  .solution-card img {
    height: 260px;
  }

  .solution-card h3 {
    font-size: 30px;
  }

  .hero {
    min-height: 680px;
    padding-top: 96px;
    background-position: center bottom;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .hero p,
  .section-lead,
  .join p {
    font-size: 16px;
  }

  .customer-wall {
    padding: 78px 0 64px;
  }

  .customer-wall h2 {
    margin-bottom: 38px;
    padding: 0 18px;
  }

  .marquee-row {
    margin-bottom: 18px;
  }

  .logo-track {
    gap: 12px;
    animation-duration: 24s;
  }

  .reverse .logo-track {
    animation-duration: 28s;
  }

  .slow .logo-track {
    animation-duration: 31s;
  }

  .logo-track span,
  .logo-track a,
  .logo-track img {
    width: 150px;
    height: 65px;
    font-size: 16px;
  }

  .customer-cta {
    margin-top: 48px;
    display: grid;
    gap: 34px;
    text-align: center;
  }

  .customer-cta h3 {
    font-size: 26px;
  }

  .customer-cta p {
    display: block;
    margin: 0 0 18px;
    font-size: 22px;
  }

  .section {
    padding: 84px 18px 72px;
  }

  .mode-list,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .mode-card,
  .benefit-grid article {
    min-height: auto;
    padding: 26px;
  }

  .case-track {
    gap: 14px;
    animation-duration: 32s;
  }

  .case-row.reverse .case-track {
    animation-duration: 36s;
  }

  .case-row.slow .case-track {
    animation-duration: 40s;
  }

  .case-track article {
    width: 286px;
    height: 156px;
    padding: 24px 24px 20px;
  }

  .case-track img {
    height: 34px;
    margin-bottom: 24px;
  }

  .case-track p {
    font-size: 14px;
  }

  .join {
    width: calc(100% - 32px);
    padding: 70px 18px;
    border-radius: 18px;
  }

  .footer {
    padding: 80px 18px 48px;
  }

  .footer-inner {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer-brand img {
    object-position: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 30px;
  }

  .copyright {
    text-align: center;
  }

  .page-main {
    padding: 88px 18px 58px;
  }

  .models-layout,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .model-sidebar,
  .doc-sidebar {
    position: static;
  }

  .toolbar,
  .customer-cta {
    align-items: stretch;
  }

  .model-grid,
  .price-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand,
  .brand img {
    width: 160px;
    min-width: 160px;
  }

  .home-slide {
    background-position: center;
  }

  .home-slide-copy h1 {
    font-size: 32px;
  }

  .home-card p {
    max-width: 100%;
  }

  .home-card img {
    opacity: 0.26;
  }

  .solution-stage {
    min-height: 610px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .login-card {
    padding: 30px 22px;
  }
}

.desktop-nav .active {
  color: var(--primary);
  font-weight: 650;
}

.model-page,
.pricing-page {
  min-height: 100vh;
  background: #f7f9ff;
}

.model-hero,
.pricing-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 180px 24px 120px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 35%, rgba(126, 206, 255, 0.26), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(155, 98, 255, 0.23), transparent 32%),
    linear-gradient(118deg, #f8fdff 0%, #e9f5ff 45%, #eee7ff 100%);
}

.model-hero::before,
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 100px -10% auto;
  height: 240px;
  border-radius: 50%;
  border-top: 8px solid rgba(255, 255, 255, 0.72);
  transform: rotate(8deg);
}

.model-hero h1,
.pricing-hero h1 {
  position: relative;
  margin: 0 0 28px;
  color: #5771ff;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.2;
  font-weight: 800;
}

.pricing-hero h1 {
  color: #111827;
}

.pricing-hero h1 span {
  color: var(--primary);
}

.model-hero p,
.pricing-hero p {
  position: relative;
  margin: 0 auto 34px;
  color: #243044;
  font-size: 18px;
  font-weight: 650;
}

.pricing-hero p {
  max-width: 980px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.7;
}

.big-search {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(690px, 100%);
  height: 48px;
  margin: 0 auto 32px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(99, 116, 149, 0.13);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #475569;
}

.big-search button {
  min-width: 96px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.hot-row,
.price-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #1f2937;
}

.hot-row span,
.model-filters button,
.vendor-chips span {
  padding: 8px 14px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 13px;
}

.float-logo {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  color: #5670ff;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(86, 112, 255, 0.16);
  font-size: 28px;
  font-weight: 900;
  animation: float-card 5s ease-in-out infinite;
}

.float-logo.whale { left: 16%; top: 170px; }
.float-logo.z { right: 24%; top: 210px; color: #111827; }
.float-logo.kimi { right: 10%; top: 120px; color: #111827; }
.float-logo.minimax { right: 15%; top: 300px; color: #ff4d8d; }

.model-filters,
.model-list-section,
.price-board {
  width: min(1370px, calc(100% - 48px));
  margin: -120px auto 0;
  position: relative;
  z-index: 2;
}

.model-filters {
  display: grid;
  gap: 16px;
  margin-top: -150px;
}

.model-filters div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.model-filters b {
  min-width: 76px;
  color: #334155;
}

.model-filters button,
.price-tabs button {
  cursor: pointer;
}

.model-filters button.active,
.price-tabs button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.model-list-section {
  margin-top: 64px;
  padding-bottom: 90px;
}

.model-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.model-list-head h2,
.price-board h2 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
}

.model-list-head div {
  color: #475569;
  font-size: 14px;
}

.public-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.model-card-v2 {
  min-height: 228px;
  padding: 26px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30, 41, 59, 0.04);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.model-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 41, 246, 0.45);
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.1);
}

.model-card-v2 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.model-card-v2 small {
  margin-left: 10px;
  color: #64748b;
}

.model-card-v2 h3 {
  margin: 16px 0 8px;
  color: #1f2937;
  font-size: 18px;
}

.model-card-v2 p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-card-v2 div,
.console-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.model-card-v2 span,
.console-card span {
  padding: 4px 8px;
  border-radius: 4px;
  color: #6e29f6;
  background: #f0e8ff;
  font-size: 12px;
  font-weight: 650;
}

.model-card-v2 footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e7edf6;
  color: #64748b;
  font-size: 13px;
}

.price-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 28px;
  padding: 10px 18px;
  border: 1px solid rgba(110, 41, 246, 0.22);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 750;
}

.price-points span {
  color: #64748b;
  font-size: 14px;
}

.price-board {
  margin-top: -70px;
  padding: 26px 28px 80px;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.price-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.price-tabs button {
  min-width: 86px;
  height: 44px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.vendor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.vendor-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.vendor-chips img,
.price-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.price-table {
  overflow: hidden;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #fff;
}

.price-row {
  display: grid;
  grid-template-columns: 190px 1.5fr repeat(3, 1fr);
  min-height: 58px;
  border-bottom: 1px solid #e8eef7;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: #64748b;
  font-weight: 650;
}

.price-row > div:nth-child(n + 3) {
  justify-content: flex-end;
  color: var(--primary);
}

.price-row.head {
  min-height: 48px;
  background: #f8fafc;
}

.price-row.head > div {
  color: #475569;
}

.console-body {
  min-height: 100vh;
  color: #334155;
  background: #f8fbff;
}

.console-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 0 12px 24px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.console-logo {
  display: flex;
  height: 64px;
  margin: 0 -12px 14px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f3f6;
  background: #fff;
}

.console-logo img {
  width: 142px;
  height: 44px;
  object-fit: contain;
}

.console-sidebar p {
  margin: 18px 12px 7px;
  color: #94a3b8;
  font-size: 13px;
}

.console-sidebar p span {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7c3aed;
  background: #efe7ff;
}

.console-sidebar a:not(.console-logo) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #75839a;
  font-size: 14px;
  font-weight: 560;
}

.console-sidebar a:not(.console-logo) span { width: 18px; text-align: center; }

.console-sidebar a.active,
.console-sidebar a:hover {
  color: #6e29f6;
  background: #f0ebff;
}

.console-sidebar [hidden] { display: none !important; }

.console-main {
  margin-left: 232px;
  padding: 0 24px 34px;
}

.sidebar-collapsed .console-sidebar { width: 64px; }
.sidebar-collapsed .console-sidebar p { display: none; }
.sidebar-collapsed .console-sidebar a:not(.console-logo) { justify-content: center; padding-inline: 8px; font-size: 0; }
.sidebar-collapsed .console-sidebar a:not(.console-logo) span { font-size: 14px; }
.sidebar-collapsed .console-logo img { width: 56px; }
.sidebar-collapsed .console-main { margin-left: 64px; }

.console-top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -24px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.console-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.console-breadcrumb a,
.console-breadcrumb span { color: #94a3b8; }

.console-breadcrumb strong { color: #334155; font-size: 18px; }

.console-account { position: relative; }

.console-account summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.console-account summary::-webkit-details-marker { display: none; }

.console-account > div {
  position: absolute;
  top: 44px;
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
}

.console-account a,
.console-account button {
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.console-account a:hover,
.console-account button:hover { color: #6e29f6; background: #f3efff; }

.console-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe4f0;
  border-radius: 9px;
  color: #475569;
  background: #fff;
  cursor: pointer;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-overview-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid #e6edf7;
  border-radius: 14px;
  color: #475569;
  background: #fff;
  box-shadow: 0 8px 24px rgba(80, 98, 130, .06);
}

.admin-overview-card strong { color: #1e293b; font-size: 18px; }
.admin-overview-card span { color: #6e29f6; font-weight: 700; }

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: #6e29f6;
}

.console-tools {
  display: flex;
  gap: 12px;
  margin: 10px 0 14px;
}

.console-tools button,
.console-tools input {
  height: 42px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: #fff;
}

.console-tools button {
  padding: 0 18px;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.console-tools input {
  width: 510px;
  max-width: 100%;
  padding: 0 16px;
}

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

.console-card {
  position: relative;
  min-height: 160px;
  padding: 24px 18px 18px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.04);
}

.console-card.active {
  border-color: #6e29f6;
  box-shadow: 0 0 0 1px rgba(110, 41, 246, 0.3);
}

.console-card b {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px;
  border-radius: 0 8px 0 8px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
}

.console-card img {
  float: left;
  width: 36px;
  height: 36px;
  margin: 0 12px 8px 0;
  object-fit: contain;
}

.console-card h3 {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.console-card small {
  display: block;
  color: #64748b;
  font-weight: 650;
}

.console-card p {
  clear: both;
  display: -webkit-box;
  min-height: 44px;
  margin: 14px 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.console-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.billing-summary article {
  padding: 20px 24px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);
}

.billing-summary span { display: block; color: #64748b; }
.billing-summary strong { display: block; margin-top: 8px; color: #6e29f6; font-size: 26px; }

.console-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.console-panel-head h2,
.console-panel-head p {
  margin: 0 0 6px;
}

.console-panel-head p,
.empty-state {
  color: #64748b;
}

.console-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.console-state > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6e29f6;
  background: #f1ebff;
  font-weight: 800;
}

.console-state p { margin: 0; }
.console-state.state-error { color: #b91c1c; }
.console-state.state-error > span { color: #b91c1c; background: #fee2e2; }
.console-state.state-loading > span { animation: console-spin 1s linear infinite; }
@keyframes console-spin { to { transform: rotate(360deg); } }

.confirm-dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
}

.confirm-dialog::backdrop { background: rgba(15, 23, 42, .46); }
.confirm-dialog form { padding: 26px; }
.confirm-dialog h2 { margin: 0 0 10px; color: #1e293b; }
.confirm-dialog p { margin: 0 0 24px; color: #64748b; line-height: 1.6; }
.confirm-dialog form > div { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-dialog button { min-width: 82px; height: 40px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; cursor: pointer; }
.confirm-dialog button.danger { border-color: #dc2626; color: #fff; background: #dc2626; }

.console-panel-head form {
  display: flex;
  gap: 8px;
}

.console-panel-head input,
.console-panel-head select,
.console-panel-head button,
.console-table-row button,
.secret-dialog button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  font: inherit;
}

.console-panel-head input {
  width: 260px;
}

.console-panel-head select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.usage-head { align-items: flex-start; flex-direction: column; }
.usage-head form { flex-wrap: wrap; }
.usage-head input { width: auto; }

.console-panel-head button,
.secret-dialog button:first-child {
  border-color: #6e29f6;
  color: #fff;
  background: #6e29f6;
  cursor: pointer;
}

.console-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 80px;
  gap: 16px;
  align-items: center;
  min-width: 760px;
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f7;
}

.console-table-row.usage {
	grid-template-columns: 1.1fr 1fr 1.5fr 70px 1.2fr 90px;
}
.console-table-row.usage small { display: block; margin-top: 4px; color: #64748b; }

.console-table-row.transaction { grid-template-columns: 1.2fr 1fr 100px 110px 1.5fr; }
.console-table-row.user { grid-template-columns: 1.6fr 80px 100px 100px 60px 80px 160px; }
.console-table-row.managed-model { grid-template-columns: 1.8fr 1fr 80px 80px 80px 80px 130px; }
.console-table-row.key { grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr 80px 1.2fr 190px; }
.console-table-row.audit { grid-template-columns: 1.2fr 1.2fr 1fr 80px 1.2fr 2fr; }
.console-table-row.redemption { grid-template-columns: 1fr 100px 100px 1.5fr 1.2fr; }
.console-table-row.payment-order { grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.1fr; }
.console-table-row.payment-order small { display: block; color: #8a94a6; margin-top: 4px; }
.wallet-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.wallet-actions form, form.wallet-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wallet-actions p { margin: 0 auto 0 0; }
[data-payment-channel-form], [data-recharge-tier-form], [data-recharge-form] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
[data-payment-channel-form] input[name="config"] { min-width: 320px; }
.subscription-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.subscription-card { display: grid; gap: 10px; padding: 20px; border: 1px solid #e5eaf2; border-radius: 14px; background: #fff; }
.subscription-card h3, .subscription-card p { margin: 0; }
.subscription-card span { color: #667085; font-size: 13px; }
.console-table-row.subscription { grid-template-columns: 1.4fr 1fr 1.1fr 90px 1.3fr; }
.console-table-row.subscription small { display: block; color: #8a94a6; margin-top: 4px; }
[data-subscription-plan-form], [data-subscription-bind-form] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.uptime-frame { width: 100%; min-height: 320px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; }
.console-table-row.announcement { grid-template-columns: 1fr 2fr 1.2fr 80px; }
.announcement-banner { display: flex; gap: 14px; margin-top: 18px; padding: 14px 18px; border: 1px solid #ddd6fe; border-radius: 10px; color: #4c1d95; background: #f5f3ff; }
.reset-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f7f8fc; }
.reset-card { width: min(440px, 100%); display: grid; gap: 16px; padding: 32px; border: 1px solid #e6edf7; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(30,41,59,.1); }
.reset-card img { width: 120px; }
.reset-card h1, .reset-card p { margin: 0; }
.reset-card label { display: grid; gap: 7px; color: #475569; }
.reset-card input, .reset-card button { height: 44px; padding: 0 12px; border: 1px solid #d9e3f2; border-radius: 8px; font: inherit; }
.reset-card button { color: #fff; border-color: #6e29f6; background: #6e29f6; cursor: pointer; }
.playground { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.playground-workspace { min-width: 0; display: grid; gap: 16px; }
.playground-sessions { display: grid; align-content: start; gap: 8px; border-right: 1px solid #e2e8f0; padding-right: 16px; }
.playground-sessions button { text-align: left; color: #334155; background: #fff; border: 1px solid #e2e8f0; }
.playground-sessions button.active { color: #fff; background: #6e29f6; }
.playground-sessions small { display: block; margin-top: 3px; opacity: .75; }
.playground form { display: grid; gap: 14px; }
.playground-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.playground label { display: grid; gap: 6px; color: #475569; font-weight: 700; }
.playground input, .playground select, .playground textarea, .playground button { width: 100%; padding: 10px 12px; border: 1px solid #d9e3f2; border-radius: 8px; font: inherit; }
.playground button { color: #fff; border-color: #6e29f6; background: #6e29f6; cursor: pointer; }
.playground-check { display: flex!important; grid-template-columns: auto 1fr!important; align-items: center; }
.playground-check input { width: auto; }
.playground-messages { max-height: 420px; overflow: auto; display: grid; gap: 12px; padding: 14px; border-radius: 10px; background: #f8fafc; }
.playground-messages article { max-width: 88%; padding: 12px 14px; border-radius: 12px; }
.playground-messages .chat-user { justify-self: end; background: #ede9fe; }
.playground-messages .chat-assistant { justify-self: start; background: #fff; border: 1px solid #e2e8f0; }
.playground-output { min-height: 180px; padding: 18px; overflow: auto; border-radius: 10px; color: #dbeafe; background: #111827; }
.playground-output pre,.playground-details pre { margin: 0; white-space: pre-wrap; }
.playground-output code { color: #c4b5fd; }
.playground-details pre { max-height: 360px; overflow: auto; padding: 14px; color: #dbeafe; background: #111827; border-radius: 8px; }
@media (max-width: 900px) { .playground { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .playground-grid { grid-template-columns: 1fr; } .playground-sessions { border-right: 0; border-bottom: 1px solid #e2e8f0; padding: 0 0 14px; } }
.setup-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top, #ede9fe, #f8fafc 48%); }
.setup-card { width: min(760px, 100%); overflow: hidden; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(76,29,149,.14); }
.setup-card > header { display: flex; align-items: center; gap: 18px; padding: 26px 32px; border-bottom: 1px solid #eef2f7; }
.setup-card > header img { width: 125px; }
.setup-card h1, .setup-card h2, .setup-card p { margin: 0 0 8px; }
.setup-card p { color: #64748b; }
.setup-progress { display: grid; grid-template-columns: repeat(4,1fr); padding: 18px 28px; color: #94a3b8; background: #f8fafc; font-size: 13px; }
.setup-progress span { text-align: center; }
.setup-progress span.active { color: #6e29f6; font-weight: 800; }
.setup-card section { padding: 30px 36px 34px; }
.setup-card section label { display: grid; gap: 7px; margin-top: 16px; color: #475569; font-weight: 700; }
.setup-card section input { height: 44px; padding: 0 12px; border: 1px solid #d9e3f2; border-radius: 8px; font: inherit; }
.setup-card .setup-checkbox { display: flex; align-items: center; }
.setup-card .setup-checkbox input { width: 18px; height: 18px; margin-right: 8px; }
.setup-check { display: flex; justify-content: space-between; margin-top: 24px; padding: 20px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; }
.setup-check span { color: #15803d; }
.setup-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.setup-actions button { min-width: 110px; height: 42px; padding: 0 18px; border: 1px solid #6e29f6; border-radius: 8px; color: #fff; background: #6e29f6; font: inherit; cursor: pointer; }
.setup-actions button.secondary { color: #475569; border-color: #d9e3f2; background: #fff; }
.setup-review { margin: 22px 0 0; border: 1px solid #e2e8f0; border-radius: 10px; }
.setup-review div { display: grid; grid-template-columns: 150px 1fr; padding: 13px 16px; border-bottom: 1px solid #eef2f7; }
.setup-review div:last-child { border: 0; }
.setup-review dt { color: #64748b; }.setup-review dd { margin: 0; font-weight: 700; }
@media (max-width: 600px) { .setup-progress { grid-template-columns: repeat(2,1fr); gap: 10px; }.setup-card > header { align-items: flex-start; flex-direction: column; }.setup-card section { padding: 24px; } }

.key-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-bottom: 24px; }
.console-table-row.key small { display: block; margin-top: 4px; color: #64748b; }
.key-form label { display: grid; gap: 6px; color: #475569; font-size: 13px; font-weight: 700; }
.key-form input,
.key-form button { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #d9e3f2; border-radius: 8px; font: inherit; }
.key-form .key-check { display: flex; align-items: center; }
.key-form .key-check input { width: 18px; margin-right: 8px; }
.key-form button { cursor: pointer; }
.key-form button[type="submit"] { border-color: #6e29f6; color: #fff; background: #6e29f6; }

.model-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.model-form label { display: grid; gap: 6px; color: #475569; font-size: 13px; font-weight: 700; }
.model-form .wide { grid-column: span 2; }
.model-form .full { grid-column: 1 / -1; }
.model-form input,
.model-form select,
.model-form textarea,
.model-form button { min-width: 0; padding: 10px 12px; border: 1px solid #d9e3f2; border-radius: 8px; font: inherit; }
.model-form textarea { resize: vertical; }
.model-toolbar, .model-pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 10px; }
.model-toolbar input { flex: 1; min-width: 190px; }
.model-toolbar input, .model-toolbar select, .model-toolbar button, .model-pagination button, .compact-admin-form input, .compact-admin-form select, .compact-admin-form button { padding: 9px 11px; border: 1px solid #d9e3f2; border-radius: 8px; background: #fff; font: inherit; }
.model-pagination { justify-content: flex-end; }
.model-subgrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.compact-admin-form { display: grid; gap: 8px; margin: 12px 0; }
.compact-admin-list { display: grid; gap: 6px; }
.compact-admin-item { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 8px; border-radius: 8px; background: #f7f9fc; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.dashboard-grid > div { padding: 16px; border: 1px solid #e5eaf2; border-radius: 12px; }
.dashboard-bars { display: grid; gap: 10px; }
.dashboard-bars > div { display: grid; grid-template-columns: minmax(90px,1fr) 2fr; gap: 4px 10px; align-items: center; }
.dashboard-bars meter { width: 100%; }
.dashboard-bars small { grid-column: 1 / -1; color: #64748b; }
.usage-row { width: 100%; text-align: left; color: inherit !important; border: 0 !important; cursor: pointer; }
.task-preview-image { display: block; max-width: 100%; max-height: 520px; margin: 10px auto; border-radius: 10px; }
.model-form .model-check { display: flex; align-items: center; }
.model-form .model-check input { width: 18px; margin-right: 8px; }
.model-actions { display: flex; gap: 8px; }
.model-actions button:first-child { border-color: #6e29f6; color: #fff; background: #6e29f6; }
.model-actions button { cursor: pointer; }

.console-table-row.head {
  color: #64748b;
  background: #f8fafc;
  font-weight: 700;
}

.console-table-row code,
.secret-dialog pre {
  overflow-wrap: anywhere;
  color: #6e29f6;
}

.console-table-row button {
  color: #dc2626;
  background: #fff;
  cursor: pointer;
}

.console-table {
  overflow-x: auto;
}

.status-ok { color: #059669; }
.status-error { color: #dc2626; }

.secret-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.secret-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.secret-dialog pre { padding: 16px; background: #f5f3ff; border-radius: 8px; white-space: pre-wrap; }
.secret-dialog div { display: flex; justify-content: flex-end; gap: 10px; }

.channel-form {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr 110px 110px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.channel-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.channel-form input,
.channel-form button {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  font: inherit;
}

.channel-form button {
  border-color: #6e29f6;
  color: #fff;
  background: #6e29f6;
  cursor: pointer;
}

.channel-form .channel-check {
  display: flex;
  height: 40px;
  align-items: center;
}

.channel-form .channel-check input { width: 18px; height: 18px; }
.console-table-row.channel { grid-template-columns: 1fr 1.7fr 70px 100px 80px 70px 150px; }

/* New API-style channel workspace */
.channel-page .console-main { min-height: 100vh; background: #f8fafc; }
.channel-workspace { padding: 24px 0 0; }
.channel-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.channel-title { display: flex; align-items: center; gap: 10px; }
.channel-title h2 { margin: 0; color: #1f2937; font-size: 24px; letter-spacing: -.02em; }
.channel-title > span { padding: 4px 9px; border: 1px solid #dfe3eb; border-radius: 999px; color: #475569; background: #fff; font-size: 12px; font-weight: 700; }
.channel-head-actions { display: flex; align-items: center; gap: 10px; }
.channel-switch { display: flex; height: 38px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dfe3eb; border-radius: 8px; color: #374151; background: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.channel-switch input { position: absolute; opacity: 0; pointer-events: none; }
.channel-switch i { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #d8dee8; transition: .18s ease; }
.channel-switch i::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); content: ""; transition: .18s ease; }
.channel-switch input:checked + i { background: #6e29f6; }
.channel-switch input:checked + i::after { transform: translateX(14px); }
.channel-primary, .channel-empty button { min-height: 38px; padding: 0 15px; border: 1px solid #6e29f6; border-radius: 8px; color: #fff; background: #6e29f6; font-weight: 700; cursor: pointer; }
.channel-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .55fr) 140px 140px auto; gap: 10px; padding: 14px; border: 1px solid #e2e6ed; border-radius: 12px; background: #fff; }
.channel-toolbar input, .channel-toolbar select, .channel-toolbar button { width: 100%; height: 38px; min-width: 0; padding: 0 12px; border: 1px solid #dfe3eb; border-radius: 8px; color: #334155; background: #fff; font: inherit; font-size: 13px; }
.channel-toolbar input:focus, .channel-toolbar select:focus { outline: 2px solid rgba(110,41,246,.16); border-color: #8b5cf6; }
.channel-toolbar button { width: auto; font-weight: 700; cursor: pointer; }
.channel-batch-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid #ddd6fe; border-radius: 9px; color: #4c1d95; background: #f5f3ff; }
.channel-batch-actions[hidden] { display: none; }
.channel-batch-actions span { margin-right: auto; font-size: 13px; font-weight: 700; }
.channel-batch-actions button { min-height: 32px; padding: 0 10px; border: 1px solid #c4b5fd; border-radius: 7px; color: #5b21b6; background: #fff; cursor: pointer; }
.channel-batch-actions button.danger { color: #b91c1c; border-color: #fecaca; }
.channel-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.channel-card { display: flex; min-width: 0; min-height: 218px; flex-direction: column; padding: 16px; border: 1px solid #e1e5ec; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.03); transition: border-color .16s, box-shadow .16s; }
.channel-card:hover { border-color: #c7b8fa; box-shadow: 0 8px 24px rgba(71,50,130,.08); }
.channel-card.disabled { opacity: .64; background: #fafafa; }
.channel-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-provider { display: flex; min-width: 0; align-items: center; gap: 9px; }
.channel-provider > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; color: #6e29f6; background: #f0ebff; }
.channel-provider strong { overflow: hidden; color: #334155; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.channel-provider label { display: none; }
.channel-card-grid.batch-mode .channel-provider label { display: block; }
.channel-provider input { width: 16px; height: 16px; accent-color: #6e29f6; }
.channel-card-actions { display: flex; align-items: center; gap: 2px; }
.channel-card-actions button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #64748b; background: transparent; cursor: pointer; }
.channel-card-actions button:hover { color: #6e29f6; background: #f3efff; }
.channel-card-body { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; margin-top: 16px; }
.channel-card-body small { display: block; color: #94a3b8; font-size: 11px; }
.channel-card-body b { display: inline-block; margin-top: 5px; color: #15803d; font-size: 13px; }
.channel-card.disabled .channel-card-body b { color: #b45309; }
.channel-card-body p { max-width: 210px; margin: 7px 0 0; overflow: hidden; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.channel-card dl { display: grid; grid-template-columns: repeat(2,minmax(55px,auto)); gap: 8px; margin: 0; }
.channel-card dl div { min-width: 0; }
.channel-card dt, .channel-card-stats span { color: #94a3b8; font-size: 11px; font-weight: 650; }
.channel-card dd { margin: 5px 0 0; color: #334155; font-weight: 700; }
.channel-card dd button { max-width: 90px; padding: 0; overflow: hidden; border: 0; color: #334155; background: transparent; font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.channel-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #eef0f4; }
.channel-card-stats div { display: grid; gap: 3px; }
.channel-card-stats strong { overflow: hidden; color: #475569; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.channel-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.channel-card > footer div { display: flex; min-width: 0; gap: 5px; overflow: hidden; }
.channel-card > footer span { padding: 3px 7px; border-radius: 5px; color: #6d28d9; background: #f3efff; font-size: 11px; }
.channel-card > footer button { flex: 0 0 auto; padding: 4px 7px; border: 0; border-radius: 5px; color: #6d28d9; background: transparent; font-size: 11px; cursor: pointer; }
.channel-empty { grid-column: 1 / -1; display: grid; min-height: 360px; place-items: center; align-content: center; gap: 8px; border: 1px solid #e2e6ed; border-radius: 12px; background: #fff; text-align: center; }
.channel-empty > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: #6e29f6; background: #f0ebff; font-size: 21px; }
.channel-empty h3, .channel-empty p { margin: 0; }
.channel-empty h3 { color: #334155; font-size: 17px; }
.channel-empty p { max-width: 430px; color: #64748b; font-size: 13px; line-height: 1.6; }
.channel-empty button { margin-top: 8px; }
.channel-editor { width: min(760px,calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden auto; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 28px 90px rgba(15,23,42,.28); }
.channel-editor::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.channel-editor .channel-form { display: block; margin: 0; }
.channel-editor header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e8ebf0; background: #fff; }
.channel-editor h2, .channel-editor h3, .channel-editor p { margin: 0; }
.channel-editor h2 { color: #1f2937; font-size: 20px; }.channel-editor h3 { margin-bottom: 14px; color: #334155; font-size: 14px; }.channel-editor p { margin-top: 4px; color: #64748b; font-size: 13px; }
.channel-editor .dialog-close { width: 34px; height: 34px; min-width: 34px; padding: 0; border: 0; color: #64748b; background: transparent; font-size: 24px; }
.channel-editor section, .channel-editor details { padding: 20px 24px; border-bottom: 1px solid #eef0f4; }
.channel-editor details summary { color: #334155; font-size: 14px; font-weight: 750; cursor: pointer; }.channel-editor details[open] summary { margin-bottom: 16px; }
.channel-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.channel-form-grid label { display: grid; gap: 6px; color: #475569; font-size: 12px; font-weight: 700; }.channel-form-grid label.wide { grid-column: 1 / -1; }
.channel-form-grid input, .channel-form-grid textarea { width: 100%; min-width: 0; height: 40px; padding: 9px 11px; border: 1px solid #dce2ea; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; resize: vertical; }.channel-form-grid textarea { height: auto; }
.channel-form-grid input:focus, .channel-form-grid textarea:focus { outline: 2px solid rgba(110,41,246,.14); border-color: #8b5cf6; }
.channel-form-grid .channel-check { display: flex; height: 38px; align-items: center; gap: 8px; }.channel-form-grid .channel-check input { width: 17px; height: 17px; accent-color: #6e29f6; }
.channel-editor footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid #e8ebf0; background: #fff; }
.channel-editor footer button { min-width: 92px; height: 38px; padding: 0 15px; border: 1px solid #6e29f6; border-radius: 8px; color: #fff; background: #6e29f6; font-weight: 700; cursor: pointer; }.channel-editor footer button.secondary { color: #475569; border-color: #dce2ea; background: #fff; }
.channel-detail > div { display: block; }.channel-detail .channel-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }.channel-detail .channel-detail-actions .danger { color: #b91c1c; border-color: #fecaca; background: #fff; }

@media (max-width: 1120px) { .channel-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.channel-toolbar { grid-template-columns: 1fr 1fr 130px; }.channel-toolbar select:last-of-type { grid-column: auto; } }
@media (max-width: 720px) { .channel-workspace { padding-top: 16px; }.channel-page-head { align-items: flex-start; flex-direction: column; }.channel-head-actions { width: 100%; }.channel-head-actions .channel-primary { flex: 1; }.channel-toolbar { grid-template-columns: 1fr; }.channel-card-grid { grid-template-columns: 1fr; }.channel-form-grid { grid-template-columns: 1fr; }.channel-form-grid label.wide { grid-column: auto; } }

@media (max-width: 1180px) {
  .channel-form { grid-template-columns: 1fr 1fr; }
  .model-form { grid-template-columns: 1fr 1fr; }
  .key-form { grid-template-columns: 1fr 1fr; }
  .model-form .full { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .public-model-grid,
  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-row {
    grid-template-columns: 150px 1.25fr repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .model-hero,
  .pricing-hero {
    min-height: 620px;
    padding: 120px 18px 90px;
  }

  .model-filters,
  .model-list-section,
  .price-board {
    width: calc(100% - 28px);
  }

  .model-filters {
    margin-top: -105px;
  }

  .public-model-grid,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .model-list-head {
    display: grid;
  }

  .price-board {
    overflow-x: auto;
  }

  .price-table {
    min-width: 840px;
  }

  .console-sidebar {
    position: fixed;
    inset: 0 auto 0 -280px;
    z-index: 20;
    width: 260px;
    max-height: none;
    padding-bottom: 30px;
    box-shadow: 18px 0 50px rgba(15, 23, 42, .16);
    transition: left .2s ease;
  }

  .console-sidebar.open { left: 0; }

  .console-logo {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .console-main {
    margin-left: 0;
    padding: 0 14px 28px;
  }

  .console-top {
    position: sticky;
    display: flex;
    height: 58px;
    gap: 10px;
    padding: 0;
  }

  .console-menu-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .console-breadcrumb { min-width: 0; margin-right: auto; }
  .console-breadcrumb a,
  .console-breadcrumb > span { display: none; }
  .console-breadcrumb strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .console-account summary > span:first-child { display: none; }
  .console-account > div { top: 42px; }

  .console-panel { padding: 18px 14px; }
  .console-panel-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .console-panel-head form,
  .usage-head form { display: grid; grid-template-columns: 1fr; width: 100%; }
  .console-panel-head input,
  .console-panel-head select,
  .usage-head input { width: 100%; }
  .key-form,
  .model-form,
  .channel-form { grid-template-columns: 1fr; }
  .model-form .wide,
  .model-form .full { grid-column: auto; }
  .model-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .announcement-banner { align-items: flex-start; flex-direction: column; }
  .secret-dialog,
  .confirm-dialog { max-height: calc(100vh - 24px); overflow-y: auto; }

  .console-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .console-tools button,
  .console-tools input {
    width: 100%;
  }

  .admin-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .product-hero {
    min-height: auto;
    padding: 108px 18px 64px;
  }

  .product-copy h1 {
    font-size: 42px;
  }

  .product-copy p {
    font-size: 17px;
  }

  .product-visual,
  .product-visual img,
  .gateway-logos {
    min-height: 260px;
  }

  .product-section {
    padding: 72px 18px;
  }

  .product-feature-grid,
  .product-showcase,
  .product-list,
  .product-quote-grid {
    grid-template-columns: 1fr;
  }

  .product-image-card img {
    height: 210px;
  }
}
