/* Anticode home-only customization for New API.
   Scope: only active when body has .ac-home-only. */

body.ac-home-only {
  background: #06282a !important;
}

body.ac-home-only > #root {
  display: none !important;
}

body.ac-home-only main > :not(#ac-home-root) {
  display: none !important;
}

body.ac-home-only header {
  position: sticky !important;
  top: 6px !important;
  z-index: 50 !important;
  margin: 6px 8px 0 !important;
  border: 1px solid rgba(150, 255, 232, 0.28) !important;
  border-radius: 14px !important;
  background: linear-gradient(110deg, rgba(13, 64, 60, 0.94), rgba(18, 67, 72, 0.9) 46%, rgba(25, 48, 77, 0.92)) !important;
  box-shadow: 0 18px 48px rgba(4, 22, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}

body.ac-home-only header *,
body.ac-home-only header a,
body.ac-home-only header button {
  color: #fff !important;
}

#ac-home-root {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: 42px 18px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 10%, rgba(45, 212, 191, 0.25), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(96, 165, 250, 0.22), transparent 34%),
    linear-gradient(135deg, #062d2c 0%, #0f514c 43%, #173452 100%);
}

.ac-home-topbar {
  position: sticky;
  top: 6px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0 0 28px;
  padding: 0 16px;
  border: 1px solid rgba(150, 255, 232, 0.28);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(13, 64, 60, 0.94), rgba(18, 67, 72, 0.9) 46%, rgba(25, 48, 77, 0.92));
  box-shadow: 0 18px 48px rgba(4, 22, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.ac-home-nav-brand,
.ac-home-nav-links,
.ac-home-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ac-home-nav-brand {
  color: #fff;
  text-decoration: none !important;
  font-weight: 950;
}

.ac-home-nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  padding: 3px;
}

.ac-home-nav-links a,
.ac-home-nav-actions a {
  color: rgba(244, 255, 252, 0.9) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 900;
}

.ac-home-nav-actions a {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(190, 255, 241, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#ac-home-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(#000, transparent 96%);
  pointer-events: none;
}

.ac-home-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.ac-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 455px);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 46px;
  border: 1px solid rgba(159, 255, 232, 0.2);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.22), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.ac-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 36% 35%, #000, transparent 74%);
  pointer-events: none;
}

.ac-home-copy,
.ac-home-panel {
  position: relative;
  z-index: 1;
}

.ac-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.ac-home-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #e7fff8 64%, #ccf8ff);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 0 0 8px rgba(143, 255, 209, 0.1),
    0 0 38px rgba(34, 211, 238, 0.18);
}

.ac-home-logo img {
  width: 51px;
  height: 51px;
  object-fit: contain;
  border-radius: 16px;
}

.ac-home-brand b {
  display: block;
  font-size: 42px;
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.ac-home-brand small {
  display: block;
  margin-top: 8px;
  color: #8affd7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.ac-home-title {
  margin: 0;
  max-width: 690px;
  color: #fff;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.075em;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.ac-home-title span {
  display: block;
  margin-top: 8px;
}

.ac-home-subtitle {
  margin: 18px 0 0;
  color: rgba(232, 255, 249, 0.86);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.ac-home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.ac-home-proof li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(156, 255, 228, 0.27);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  color: #eafffb;
  font-size: 13px;
  font-weight: 900;
}

.ac-home-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.78);
}

.ac-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ac-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 31px;
  border: 1px solid rgba(210, 255, 245, 0.34);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(135, 255, 224, 0.07));
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease;
}

.ac-home-btn:hover {
  transform: translateY(-1px);
}

.ac-home-btn.primary {
  gap: 10px;
  background: linear-gradient(135deg, #12c9a9, #24d3ee);
  border-color: rgba(190, 255, 241, 0.58);
  box-shadow: 0 24px 54px rgba(20, 184, 166, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ac-home-gift {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #34d399 58%, #22d3ee);
  color: #0f3b3d;
  font-size: 15px;
}

.ac-home-panel {
  min-height: 520px;
  padding: 16px;
  border: 1px solid rgba(177, 255, 235, 0.22);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
  box-shadow: 0 28px 72px rgba(1, 16, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.ac-home-panel-inner {
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(178, 255, 237, 0.2);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(3, 24, 28, 0.62), rgba(18, 65, 70, 0.3));
}

.ac-home-panel-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center;
  margin-bottom: 14px;
}

.ac-home-live {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.82);
}

.ac-home-panel-head small {
  color: #8fffd1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.19em;
}

.ac-home-panel-head b {
  color: #fff;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.ac-home-models {
  display: grid;
  gap: 10px;
}

.ac-home-model {
  position: relative;
  min-height: 72px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(177, 255, 235, 0.2);
  border-radius: 18px;
  background-color: rgba(2, 14, 18, 0.92);
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.ac-home-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 13, 18, 0.82), rgba(0, 13, 18, 0.44) 36%, rgba(0, 13, 18, 0.08) 67%, transparent);
}

.ac-home-model b,
.ac-home-model span {
  position: relative;
  z-index: 1;
}

.ac-home-model b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(190, 255, 241, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.ac-home-model span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(235, 255, 249, 0.84);
  font-size: 11px;
  font-weight: 900;
}

.ac-home-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(177, 255, 235, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.ac-home-tools-label {
  grid-column: 1 / -1;
  color: #98ffe0;
  font-size: 15px;
  font-weight: 950;
}

.ac-home-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(177, 255, 235, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.ac-home-tool img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

.ac-home-section {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(190, 255, 241, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.12), rgba(224, 242, 254, 0.075));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.ac-home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.ac-home-section h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ac-home-section p {
  margin: 0;
  color: rgba(235, 255, 249, 0.75);
  font-weight: 800;
}

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

.ac-home-card {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(190, 255, 241, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  color: #fff;
  text-decoration: none !important;
}

.ac-home-card::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -32px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 68%);
}

.ac-home-card small,
.ac-home-card h3,
.ac-home-card p,
.ac-home-card strong,
.ac-home-card em {
  position: relative;
  z-index: 1;
}

.ac-home-card small {
  color: #9bffe0;
  font-size: 13px;
  font-weight: 950;
}

.ac-home-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.ac-home-card p {
  color: rgba(244, 255, 252, 0.82);
  font-size: 14px;
  line-height: 1.48;
}

.ac-home-card strong {
  display: block;
  margin-top: 9px;
  color: #ff6b35;
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.ac-home-card em {
  display: block;
  margin-top: 7px;
  color: rgba(244, 255, 252, 0.86);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.ac-home-footer {
  margin-top: 26px;
  text-align: center;
  color: rgba(235, 255, 249, 0.56);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .ac-home-hero {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .ac-home-panel {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }

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

@media (max-width: 720px) {
  #ac-home-root {
    padding: 24px 12px 42px;
  }

  .ac-home-shell {
    width: min(100%, calc(100vw - 24px));
  }

  .ac-home-hero {
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }

  .ac-home-brand b {
    font-size: 26px;
  }

  .ac-home-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .ac-home-logo img {
    width: 36px;
    height: 36px;
  }

  .ac-home-title {
    font-size: 44px;
  }

  .ac-home-subtitle {
    font-size: 26px;
  }

  .ac-home-actions .ac-home-btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .ac-home-panel {
    min-height: auto;
    padding: 12px;
  }

  .ac-home-tools,
  .ac-home-grid {
    grid-template-columns: 1fr;
  }
}
