/* Customer-facing CDK Portal refresh, inspired by the compact blue service UI. */
html.pay-portal-refresh {
  --bg: #f5f9ff !important;
  --bg-tint: none !important;
  --surface: #fff !important;
  --surface-2: #f3f7fe !important;
  --brd: #dce5f3 !important;
  --brd-2: #c8d8ed !important;
  --ink: #18233a !important;
  --ink-2: #59677e !important;
  --ink-3: #8795aa !important;
  --primary: #3262d9 !important;
  --primary-hover: #2855c5 !important;
  --primary-active: #204bb2 !important;
  --primary-soft: #e8f0ff !important;
  --primary-on: #fff !important;
  --shadow: 0 18px 46px rgba(45, 87, 164, .10) !important;
  --shadow-sm: 0 8px 28px rgba(45, 87, 164, .07) !important;
  --radius-lg: 14px !important;
  --el-color-primary: #3262d9 !important;
  color-scheme: light;
}

html.pay-portal-refresh body {
  min-height: 100vh;
  background-color: #f5f9ff !important;
  background-image:
    radial-gradient(circle at 4% 12%, rgba(218, 231, 255, .78), transparent 35%),
    radial-gradient(circle at 96% 9%, rgba(223, 245, 250, .7), transparent 34%),
    linear-gradient(rgba(88, 133, 211, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 133, 211, .045) 1px, transparent 1px) !important;
  background-size: auto, auto, 40px 40px, 40px 40px !important;
  background-attachment: fixed !important;
  color: var(--ink) !important;
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

html.pay-portal-refresh #app,
html.pay-portal-refresh #app > .min-h-screen,
html.pay-portal-refresh #app .min-h-screen.py-12 {
  background: transparent !important;
}

html.pay-portal-refresh #app .min-h-screen.py-12 {
  padding-top: 26px !important;
  padding-bottom: 72px !important;
}

html.pay-portal-refresh #app .min-h-screen.py-12 > :is(.max-w-3xl, .max-w-5xl) {
  max-width: 1088px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* The title and navigation read as one restrained service header. */
html.pay-portal-refresh #app .min-h-screen.py-12 > :is(.max-w-3xl, .max-w-5xl) > .pay-service-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 133px;
  margin-bottom: 0 !important;
  padding: 25px 28px 23px 114px;
  border: 1px solid var(--brd);
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
}

html.pay-portal-refresh #app .pay-service-hero::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 25px;
  width: 70px;
  height: 70px;
  border: 1px solid #d7e3f7;
  border-radius: 12px;
  background: #fff url('/brand-shitai-ai.jpg') center / contain no-repeat;
  box-shadow: 0 8px 20px rgba(18, 78, 181, .1);
}

html.pay-portal-refresh #app .pay-service-hero > div:first-child::before {
  content: "ACCOUNT UPGRADE SERVICE";
  display: block;
  margin: 0 0 3px;
  color: #287e78;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}

html.pay-portal-refresh #app .pay-service-hero h1,
html.pay-portal-refresh #app h2 {
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -.025em;
}

html.pay-portal-refresh #app .pay-service-hero h1 {
  margin: 0 0 4px !important;
  color: var(--ink) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}

html.pay-portal-refresh #app .pay-service-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-2) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.6;
}

html.pay-portal-refresh #app .pay-service-hero .btn-ghost {
  min-width: 42px;
  min-height: 42px;
  padding: 8px !important;
  border: 1px solid var(--brd) !important;
  border-radius: 9px !important;
  background: var(--surface) !important;
  color: var(--ink-2) !important;
  box-shadow: 0 2px 6px rgba(38, 75, 139, .04);
}

html.pay-portal-refresh #app .pay-service-hero .btn-ghost:hover {
  border-color: #a8c1f0 !important;
  color: var(--primary) !important;
}

html.pay-portal-refresh #app .redeem-tabs {
  margin-top: -1px !important;
  margin-bottom: 21px !important;
  padding: 13px 22px 18px !important;
  border: 1px solid var(--brd) !important;
  border-top: 0 !important;
  border-radius: 0 0 15px 15px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: var(--shadow-sm) !important;
}

html.pay-portal-refresh #app .redeem-tabs nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #e0e8f5;
  border-radius: 11px;
  background: #f3f7fd;
}

html.pay-portal-refresh #app .redeem-tab {
  min-width: 0;
  padding: 11px 12px !important;
  border-radius: 8px !important;
  color: #43516a !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center;
  box-shadow: none !important;
}

html.pay-portal-refresh #app .redeem-tab:hover {
  color: var(--primary) !important;
  background: #eaf1ff !important;
}

html.pay-portal-refresh #app .redeem-tab.active,
html.pay-portal-refresh #app .redeem-tab[aria-current="page"] {
  color: #2455c5 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(45, 87, 164, .13) !important;
}

html.pay-portal-refresh #app .card {
  padding: 27px 30px;
  border: 1px solid var(--brd);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

html.pay-portal-refresh #app .pay-progress-card {
  margin-bottom: 18px !important;
  padding: 11px 16px;
  border-radius: 11px;
}

html.pay-portal-refresh #app .pay-progress-card > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

html.pay-portal-refresh #app .pay-progress-card .pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--ink-2) !important;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

html.pay-portal-refresh #app .pay-progress-card .pill-info {
  background: #e7f0ff !important;
  color: #2356c3 !important;
}

html.pay-portal-refresh #app .card h2 {
  color: var(--ink) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

html.pay-portal-refresh #app .input {
  min-height: 52px;
  border: 1px solid #ccd7e8 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: 0 1px 3px rgba(32, 63, 116, .025) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

html.pay-portal-refresh #app .input:focus {
  border-color: #6795ec !important;
  outline: 3px solid rgba(77, 128, 225, .13) !important;
  box-shadow: none !important;
}

html.pay-portal-refresh #app .input::placeholder {
  color: #9aa8bb !important;
  font-weight: 500 !important;
}

html.pay-portal-refresh #app textarea.input {
  min-height: 120px;
  line-height: 1.6;
}

html.pay-portal-refresh #app .btn-primary {
  min-height: 49px;
  border: 1px solid #2b5cce !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #3e73e7 0%, #2e60d3 100%) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 20px rgba(50, 98, 217, .16) !important;
}

html.pay-portal-refresh #app .btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #376bdf 0%, #2456c5 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 11px 23px rgba(50, 98, 217, .2) !important;
}

html.pay-portal-refresh #app .btn-primary:disabled {
  border-color: #a1b9e9 !important;
  background: #9dbaf0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.pay-portal-refresh #app .btn-secondary {
  border: 1px solid #cfdbea !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #33445f !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

html.pay-portal-refresh #app .btn-secondary:hover {
  border-color: #8baeea !important;
  color: var(--primary) !important;
  background: #f5f9ff !important;
}

html.pay-portal-refresh #app .btn-secondary.ring-2 {
  border-color: #8baded !important;
  background: #eaf2ff !important;
  color: #2456bf !important;
  box-shadow: 0 0 0 2px rgba(67, 115, 217, .11) !important;
}

html.pay-portal-refresh #app .bg-soft {
  background-color: #f3f7fe !important;
}

html.pay-portal-refresh #app .alert {
  border-radius: 9px;
}

/* Billing has its own two direct destinations instead of the shared tab bar. */
html.pay-portal-refresh #app [data-billing-navigation] {
  gap: 8px !important;
  margin: 15px 0 0 !important;
}

html.pay-portal-refresh #app [data-billing-navigation] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid #d9e5f7;
  border-radius: 8px;
  background: #f3f7ff;
  color: #2e5ec8 !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

html.pay-portal-refresh #app [data-billing-navigation] a:hover {
  background: #e9f1ff;
}

html.pay-portal-refresh #app .pay-billing-hero {
  margin-bottom: 20px !important;
  border-radius: 15px !important;
}

/* Dark mode keeps the same hierarchy, with blue-tinted surfaces. */
html.pay-portal-refresh.dark {
  --bg: #0b1424 !important;
  --surface: #111f34 !important;
  --surface-2: #172a43 !important;
  --brd: #2a3e5d !important;
  --brd-2: #3c5a84 !important;
  --ink: #edf3ff !important;
  --ink-2: #b1c0d5 !important;
  --ink-3: #8294ae !important;
  --primary: #77a4ff !important;
  --primary-hover: #9bbdff !important;
  --primary-active: #6797ef !important;
  --primary-soft: #1f3b68 !important;
  --primary-on: #07152d !important;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .18) !important;
  color-scheme: dark;
}

html.pay-portal-refresh.dark body {
  background-color: #0b1424 !important;
  background-image:
    radial-gradient(circle at 5% 10%, rgba(42, 77, 142, .3), transparent 35%),
    radial-gradient(circle at 95% 7%, rgba(23, 94, 108, .2), transparent 34%),
    linear-gradient(rgba(117, 158, 227, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 158, 227, .045) 1px, transparent 1px) !important;
}

html.pay-portal-refresh.dark #app .pay-service-hero,
html.pay-portal-refresh.dark #app .redeem-tabs {
  background: rgba(17, 31, 52, .96) !important;
}

html.pay-portal-refresh.dark #app .redeem-tabs nav {
  border-color: #2a3e5d;
  background: #172a43;
}

html.pay-portal-refresh.dark #app .redeem-tab {
  color: #c0cde0 !important;
}

html.pay-portal-refresh.dark #app .redeem-tab.active,
html.pay-portal-refresh.dark #app .redeem-tab[aria-current="page"] {
  color: #cfe0ff !important;
  background: #264578 !important;
}

html.pay-portal-refresh.dark #app .redeem-tab:hover,
html.pay-portal-refresh.dark #app .pay-progress-card .pill-info,
html.pay-portal-refresh.dark #app .btn-secondary.ring-2 {
  background: #25436f !important;
  color: #d6e5ff !important;
}

html.pay-portal-refresh.dark #app .input,
html.pay-portal-refresh.dark #app .btn-secondary,
html.pay-portal-refresh.dark #app .pay-service-hero .btn-ghost {
  border-color: #355174 !important;
  background: #152840 !important;
  color: #edf3ff !important;
}

html.pay-portal-refresh.dark #app .bg-soft,
html.pay-portal-refresh.dark #app [data-billing-navigation] a {
  background: #1b3150 !important;
}

html.pay-portal-refresh.dark #app .pay-service-hero > div:first-child::before {
  color: #79d5c9 !important;
}

html.pay-portal-refresh.dark #app [data-billing-navigation] a {
  border-color: #355174 !important;
  color: #cfe0ff !important;
}

@media (max-width: 700px) {
  html.pay-portal-refresh #app .min-h-screen.py-12 {
    padding-top: 12px !important;
    padding-bottom: 38px !important;
  }

  html.pay-portal-refresh #app .min-h-screen.py-12 > :is(.max-w-3xl, .max-w-5xl) {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  html.pay-portal-refresh #app .min-h-screen.py-12 > :is(.max-w-3xl, .max-w-5xl) > .pay-service-hero {
    min-height: 142px;
    padding: 20px 14px 19px 77px;
  }

  html.pay-portal-refresh #app .pay-service-hero::before {
    top: 20px;
    left: 14px;
    width: 52px;
    height: 52px;
    border-radius: 9px;
  }

  html.pay-portal-refresh #app .pay-service-hero > div:first-child {
    padding-right: 78px;
  }

  html.pay-portal-refresh #app .pay-service-hero > div:first-child::before {
    font-size: 10px;
    letter-spacing: .05em;
  }

  html.pay-portal-refresh #app .pay-service-hero h1 {
    font-size: 24px !important;
  }

  html.pay-portal-refresh #app .pay-service-hero > div:last-child {
    position: absolute;
    top: 18px;
    right: 14px;
    gap: 5px;
  }

  html.pay-portal-refresh #app .pay-service-hero .btn-ghost {
    min-width: 34px;
    min-height: 34px;
    padding: 5px !important;
  }

  html.pay-portal-refresh #app .redeem-tabs {
    padding: 10px 12px 13px !important;
  }

  html.pay-portal-refresh #app .redeem-tabs nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.pay-portal-refresh #app .redeem-tab {
    padding: 10px 5px !important;
  }

  html.pay-portal-refresh #app .card {
    padding: 19px 17px;
  }

  html.pay-portal-refresh #app .pay-progress-card {
    padding: 8px;
  }

  html.pay-portal-refresh #app .pay-progress-card > div {
    gap: 1px;
  }

  html.pay-portal-refresh #app .pay-progress-card .pill {
    min-height: 34px;
    padding: 5px 2px;
    font-size: 12px;
  }
}

/* Larger supporting text and stronger labels for easier scanning. */
html.pay-portal-refresh #app .text-xs {
  font-size: 13px !important;
  font-weight: 500 !important;
}

html.pay-portal-refresh #app .text-sm {
  font-size: 15px !important;
  font-weight: 500 !important;
}

html.pay-portal-refresh #app label,
html.pay-portal-refresh #app .form-group > label {
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

html.pay-portal-refresh #app .text-muted {
  font-weight: 500 !important;
}

html.pay-portal-refresh #app .pay-service-hero p {
  font-weight: 600 !important;
}

@media (max-width: 700px) {
  html.pay-portal-refresh #app .pay-service-hero p {
    font-size: 13px !important;
  }

  html.pay-portal-refresh #app .redeem-tab {
    font-size: 14px !important;
  }

  html.pay-portal-refresh #app .pay-progress-card .pill {
    font-size: 12px !important;
  }
}
