:root {
  --bg: #050916;
  --panel: #091321;
  --panel2: #101c2d;
  --line: rgba(82, 184, 228, .25);
  --text: #f5f8ff;
  --muted: #a0aec0;
  --cyan: #33d9f3;
  --blue: #5d8dff;
  --pink: #ff3d9a;
  --lime: #9aef59;
  --orange: #ffad45;
  --violet: #a277ff;
}

.service-card:nth-child(4n + 2) .service-icon {
  border-color: rgba(255, 61, 154, .48);
  color: #ff70b2;
  background-color: rgba(255, 61, 154, .09);
}

.service-card:nth-child(4n + 3) .service-icon {
  border-color: rgba(255, 173, 69, .48);
  color: #ffc06b;
  background-color: rgba(255, 173, 69, .09);
}

.service-card:nth-child(4n) .service-icon {
  border-color: rgba(154, 239, 89, .48);
  color: #b2f77b;
  background-color: rgba(154, 239, 89, .08);
}

html {
  overflow-x: clip;
  background: var(--bg);
}

.admin-top {
  border-bottom-color: rgba(59, 177, 228, .2);
}

.admin-avatar,
.user-avatar {
  border: 1px solid rgba(59, 213, 240, .42);
  background: linear-gradient(145deg, rgba(51, 217, 243, .26), rgba(162, 119, 255, .2));
  box-shadow: 0 0 20px rgba(51, 217, 243, .12);
}

.metric-card:nth-child(4n + 1) {
  border-top: 2px solid var(--cyan);
}

.metric-card:nth-child(4n + 2) {
  border-top: 2px solid var(--lime);
}

.metric-card:nth-child(4n + 3) {
  border-top: 2px solid var(--pink);
}

.metric-card:nth-child(4n) {
  border-top: 2px solid var(--orange);
}

.metric-card small {
  color: var(--muted);
}

.account-menu {
  position: fixed;
  z-index: 21;
  top: 91px;
  right: max(calc((100vw - 1320px) / 2 + 18px), 18px);
}

.google-setup-note {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(151, 190, 220, .16);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}

.google-setup-note .google-g {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 700 15px Arial, sans-serif;
}

.auth-forgot-link {
  display: block;
  margin-top: 12px;
  text-align: right;
}

.reset-form {
  width: min(100%, 470px);
  align-self: center;
  padding: clamp(22px, 4vw, 36px);
}

.gateway-settings-panel,
.payment-launch {
  margin: 20px 0;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(54, 198, 235, .32);
  background:
    radial-gradient(ellipse at 96% 0, rgba(43, 187, 228, .09), transparent 42%),
    linear-gradient(145deg, #101b2a, #09121e);
}

.gateway-settings-panel > p,
.payment-launch > p {
  color: var(--muted);
  font-size: 12px;
}

.gateway-settings-form {
  display: grid;
  max-width: 780px;
  gap: 14px;
}

.gateway-settings-form .field-label {
  margin: 0;
}

.webhook-url {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 10, 18, .58);
}

.webhook-url code {
  overflow-wrap: anywhere;
  color: #8fe9f2;
  font-size: 11px;
}

.webhook-url small {
  color: var(--muted);
}

.gateway-enable,
.subscription-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(58, 204, 229, .2);
  border-radius: 9px;
  background: rgba(30, 216, 237, .045);
  color: #c7d4e1;
  font-size: 12px;
}

.gateway-enable input,
.subscription-consent input {
  margin-top: 4px;
  accent-color: var(--cyan);
}

.gateway-warning {
  margin: 14px 0 0;
  color: #ffc06b !important;
}

.gateway-checkout-notice {
  font-size: 12px;
}

.checkout-provider {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(54, 198, 235, .22);
  border-radius: 10px;
  background: rgba(28, 167, 205, .06);
}

.checkout-provider b {
  font: 600 13px var(--display);
}

.checkout-provider small {
  color: var(--muted);
  font-size: 11px;
}

.subscription-consent {
  margin: 8px 0;
}

.payment-launch {
  display: grid;
  max-width: 720px;
  gap: 12px;
}

.payment-launch .button {
  width: fit-content;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.account-billing-panel,
.account-subscriptions-panel {
  margin-top: 18px;
}

.account-menu > summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(59, 213, 240, .48);
  border-radius: 50%;
  background: #091625;
  box-shadow: 0 0 22px rgba(51, 217, 243, .14);
  cursor: pointer;
  list-style: none;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu .user-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.account-menu-popover {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  width: min(290px, calc(100vw - 28px));
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(59, 177, 228, .34);
  border-radius: 14px;
  background: #091321;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

.account-menu-popover strong {
  font: 600 14px var(--display);
}

.account-menu-popover small {
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
  text-overflow: ellipsis;
}

.account-menu-popover a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #dbe7f4;
  font-size: 12px;
}

.account-menu-popover a:hover {
  background: rgba(43, 192, 229, .1);
  color: #fff;
}

.account-workspace {
  margin-top: 28px;
}

.account-main {
  min-width: 0;
}

.account-panel {
  max-width: 680px;
  padding: clamp(20px, 4vw, 34px);
}

.account-profile-form {
  max-width: 520px;
}

.account-profile-form input[readonly] {
  opacity: .76;
}

.account-meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.account-meta b {
  color: var(--text);
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.account-shortcut {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.account-shortcut b {
  font: 600 14px var(--display);
}

.account-shortcut small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.account-billing-note {
  padding: 14px 18px 0;
  font-size: 12px;
}

.account-billing-note a {
  color: var(--cyan);
}

.account-support-history {
  margin-top: 24px;
  padding: clamp(18px, 4vw, 28px);
}

.support-history-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.support-history-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.support-history-item > small {
  color: var(--muted);
}

.support-history-item > p,
.support-reply p {
  margin: 10px 0 0;
  color: #c5d0dc;
  overflow-wrap: anywhere;
}

.support-reply {
  margin-top: 14px;
  padding: 14px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: rgba(31, 182, 213, .07);
}

.support-reply b {
  color: #9feaf2;
  font-size: 12px;
}

body {
  background:
    radial-gradient(ellipse at 50% -25%, rgba(23, 95, 159, .2), transparent 58%),
    linear-gradient(180deg, #050916, #070c17 58%, #050916);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(35, 120, 180, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 120, 180, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.topbar {
  min-height: 76px;
  border-bottom-color: rgba(57, 171, 225, .28);
  background: rgba(4, 9, 19, .91);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.brand-glyph {
  color: #ffb23d;
  text-shadow: 7px -5px #2bdcf3, -5px 5px #f52f91;
}

.brand-name small {
  color: #a9b9cb;
}

.main-nav a {
  color: #c0cada;
}

.main-nav a.active::after {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(51, 217, 243, .8);
}

.button {
  border-color: rgba(82, 184, 228, .32);
  border-radius: 8px;
}

.button.primary {
  background: linear-gradient(105deg, #fa3296, #c52cbb 58%, #743df0);
  box-shadow: 0 8px 28px rgba(231, 45, 149, .28);
}

.button.primary:hover {
  box-shadow: 0 10px 34px rgba(231, 45, 149, .5);
}

.page-wrap:has(.workspace),
.page-wrap:has(.admin-layout) {
  max-width: 1540px;
}

.hero {
  min-height: 640px;
}

.hero h1,
.page-hero h1,
.detail-hero h1,
.reach-hero h1,
.auth-story h1 {
  text-wrap: balance;
}

.hero-visual {
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 2;
  width: clamp(128px, 17vw, 232px);
  height: clamp(148px, 21vw, 278px);
  pointer-events: none;
  content: "";
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .52));
  transform-style: preserve-3d;
}

.hero-visual::before {
  top: 12%;
  right: 10%;
  clip-path: polygon(47% 0, 100% 75%, 4% 100%);
  background:
    linear-gradient(145deg, rgba(72, 250, 241, .95), rgba(35, 123, 244, .9) 47%, rgba(118, 45, 246, .85));
  opacity: .9;
  transform: rotate(12deg) rotateY(-18deg);
  animation: blueprint-triangle-float 7s ease-in-out infinite;
}

.hero-visual::after {
  right: -1%;
  bottom: 13%;
  width: clamp(118px, 15vw, 205px);
  height: clamp(136px, 18vw, 240px);
  clip-path: polygon(4% 0, 100% 35%, 24% 100%);
  background:
    linear-gradient(145deg, rgba(255, 185, 58, .98), rgba(255, 67, 142, .95) 51%, rgba(189, 48, 233, .9));
  opacity: .88;
  transform: rotate(-16deg) rotateY(20deg);
  animation: blueprint-triangle-float 8s ease-in-out -2s infinite;
}

.hero-visual .growth-card {
  backdrop-filter: blur(14px);
}

.hero-visual .orb {
  background:
    radial-gradient(circle at 33% 27%, #fff8c5 0 4%, #ffb444 13%, #fb4c9a 46%, #7728d8 76%, #101b57 100%);
  box-shadow: inset -18px -20px 32px #10102e, 0 0 48px rgba(246, 62, 177, .36);
}

@keyframes blueprint-triangle-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.visual-glow {
  background: radial-gradient(circle, #1b71f0, #cf238c 62%, transparent 72%);
  opacity: .35;
}

.growth-card,
.browser-mock,
.panel,
.price-card,
.pricing-card,
.support-card,
.referral-panel,
.auth-panel,
.script-preview,
.summary-card,
.welcome-panel {
  border-color: rgba(65, 169, 226, .3);
  background:
    linear-gradient(145deg, rgba(15, 30, 49, .96), rgba(7, 14, 27, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .025);
}

.visual-orbit {
  border-color: rgba(60, 194, 241, .28);
}

.floating-chip {
  border-color: rgba(67, 199, 243, .55);
  box-shadow: 0 0 24px rgba(28, 176, 236, .16);
}

.service-card,
.work-card,
.portfolio-card,
.metric-card,
.benefit,
.support-option,
.package-card {
  border-color: rgba(74, 172, 223, .24);
  background: linear-gradient(145deg, rgba(15, 29, 47, .97), rgba(7, 14, 27, .98));
}

.service-card:hover,
.portfolio-card:hover,
.pricing-card:hover,
.metric-card:hover,
.work-card:hover {
  border-color: rgba(57, 215, 243, .72);
}

.service-icon,
.icon-button,
.studio-badge {
  border-color: rgba(59, 213, 240, .52);
  color: var(--cyan);
  background-color: rgba(31, 185, 219, .08);
}

.section,
.page-hero,
.detail-hero,
.reach-hero,
.auth-layout {
  position: relative;
}

.page-hero.compact {
  padding-top: 72px;
  padding-bottom: 36px;
}

.pricing-switch,
.portfolio-filters,
.auth-tabs,
.script-tabs {
  border-color: rgba(73, 172, 226, .24);
  background: rgba(8, 18, 32, .82);
}

.pricing-switch button.selected,
.portfolio-filters button.selected,
.auth-tabs button.selected,
.script-tabs button.selected {
  color: #fff;
  border-color: rgba(255, 61, 154, .7);
  background: linear-gradient(110deg, rgba(255, 61, 154, .24), rgba(109, 66, 255, .2));
}

.price-card,
.pricing-card {
  position: relative;
  overflow: hidden;
}

.price-card::before,
.pricing-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--orange));
  content: "";
}

.price-card:nth-child(2)::before,
.pricing-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

.price-card:nth-child(3)::before,
.pricing-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.price-card.featured {
  border-color: rgba(255, 61, 154, .58);
  box-shadow: 0 20px 58px rgba(220, 39, 143, .13), inset 0 1px rgba(255, 255, 255, .04);
}

.price-card.featured .popular {
  display: none;
}

.price-card:nth-child(4) {
  border-color: rgba(255, 61, 154, .62);
  box-shadow: 0 20px 58px rgba(220, 39, 143, .14), inset 0 1px rgba(255, 255, 255, .04);
  transform: translateY(-8px);
}

.price-card:nth-child(4)::after {
  position: absolute;
  top: 13px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 61, 154, .48);
  border-radius: 999px;
  background: rgba(255, 61, 154, .15);
  color: #ff8bc1;
  content: "MOST CHOSEN";
  font: 700 8px var(--display);
  letter-spacing: .09em;
}

.price-card:nth-child(4) .button.primary {
  color: #10210c;
  background: linear-gradient(100deg, #b5f85f, #79e767);
  box-shadow: 0 8px 24px rgba(145, 239, 88, .18);
}

.price-card .button.primary {
  color: #10210c;
  background: linear-gradient(100deg, #b5f85f, #79e767);
  box-shadow: 0 8px 24px rgba(145, 239, 88, .18);
}

.price-card .button.primary:hover {
  box-shadow: 0 10px 32px rgba(145, 239, 88, .35);
}

.plan-price,
.price-card strong,
.pricing-card strong {
  color: #fff;
  text-shadow: 0 0 24px rgba(50, 196, 242, .16);
}

.plan-kicker {
  color: #7fe5ef;
}

.metric-card {
  min-height: 110px;
}

.metric-card strong,
.metric-card b {
  color: #f5f8ff;
}

.admin-layout,
.workspace {
  border-color: rgba(65, 169, 226, .3);
  background: #07101d;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .3);
}

.admin-sidebar,
.side-nav {
  background: linear-gradient(180deg, #091526, #07101c);
}

.admin-sidebar a.active,
.side-nav a.active {
  border: 1px solid rgba(44, 211, 238, .2);
  background: linear-gradient(100deg, rgba(35, 195, 232, .16), rgba(95, 93, 255, .08));
}

.admin-sidebar > a:not(.brand):hover,
.side-nav > a:hover {
  color: #fff;
  background: rgba(43, 192, 229, .1);
}

.admin-main,
.workspace-main {
  background:
    radial-gradient(ellipse at 94% 0, rgba(41, 124, 211, .08), transparent 32%),
    #07101b;
}

.table-panel,
.settings-panel,
.media-panel,
.message-form,
.package-edit {
  border-color: rgba(67, 163, 219, .24);
}

.responsive-table th {
  color: #9cb6ca;
}

.responsive-table tbody tr:hover {
  background: rgba(44, 191, 233, .06);
}

.notice {
  border-color: rgba(255, 173, 69, .45);
  background: rgba(255, 173, 69, .1);
}

.footer {
  border-top-color: rgba(75, 169, 221, .2);
}

.intro-screen {
  background:
    radial-gradient(ellipse at 68% 55%, rgba(40, 107, 235, .25), transparent 38%),
    radial-gradient(ellipse at 30% 83%, rgba(240, 45, 145, .18), transparent 34%),
    #050916;
}

.intro-cube {
  border-color: rgba(55, 198, 241, .38);
  box-shadow: 0 0 44px rgba(57, 188, 240, .12);
}

.admin-shell .topbar,
.admin-shell .footer {
  display: none;
}

.admin-shell .page-wrap {
  max-width: none;
  padding: 0 16px;
}

@media (max-width: 1000px) {
  .topbar {
    gap: 12px;
  }

  .main-nav {
    gap: clamp(10px, 1.8vw, 24px);
  }

  .main-nav a {
    font-size: 11px;
  }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .topbar {
    padding-inline: 12px;
    gap: 8px;
  }

  .topbar > .brand {
    max-width: 29vw;
    min-width: 0;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    z-index: 40;
    top: 65px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #07101b;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px;
  }

  .top-actions .button.primary {
    display: none;
  }
}

@media (max-width: 720px) {
  .account-menu {
    top: 88px;
    right: 10px;
  }

  .account-menu > summary {
    width: 40px;
    height: 40px;
  }

  .account-menu .user-avatar {
    width: 30px;
    height: 30px;
  }

  .account-shortcuts {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 46px);
  }

  .hero-visual::before {
    top: 3%;
    right: 13%;
  }

  .hero-visual::after {
    right: 0;
    bottom: 8%;
  }

  .price-card:nth-child(4) {
    transform: none;
  }

  .page-hero.compact {
    padding-top: 48px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .admin-shell .page-wrap {
    padding-inline: 8px;
  }

  .workspace,
  .admin-layout {
    border-radius: 11px;
  }
}

@media (max-width: 420px) {
  .topbar > .brand {
    max-width: 49vw;
  }

  .install-button {
    display: none;
  }

  .top-actions .button.primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
