/* Shared public-site and cabinet theme. The last layer also overrides legacy CTA rules. */
html { color-scheme: light; }
body {
  --bg: #edf0f7;
  --panel: #f8f9fd;
  --text: #17192b;
  --muted: #465069;
  --line: #c8cfe1;
  --mint: #29574c;
  --accent: #5233a3;
  background: radial-gradient(ellipse at 12% 0, #d9c6f1 0, transparent 40%),
    radial-gradient(ellipse at 90% 25%, #c4e1ee 0, transparent 42%), #e4e8f0 !important;
  color: #17192b !important;
  min-height: 100vh;
}
body :is(h1,h2,h3,h4,.brand,.brand-name,.price,.sum) {
  color: #211b36 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
body :is(h1 em,.brand span:last-child,.eyebrow) { color: #5233a3 !important; }
body :is(p,small,.muted,.note,.section-copy,footer) { color: #465069 !important; }
body a { color: #48318a; }
body :is(.panel,.card,.summary,.country,.plan,.price-card,.step,.ca-box,.ca-card,.device-row,.srv,main > section:not([class])) {
  color: #211b36 !important;
  background: #ffffffab !important;
  border: 1px solid #fff !important;
  box-shadow: 0 10px 24px #303f6914 !important;
  backdrop-filter: blur(16px);
}
body :is(.price-card,.plan):before { display: none; }
body :is(button:not(.switch),a.btn,a.button,a.download,.summary .actions a,.login-link) {
  --tint: #e6dcfc;
  background: linear-gradient(180deg, #ffffffe8, #ffffff24), var(--tint) !important;
  color: #211b36 !important;
  border: 1px solid #fff !important;
  border-radius: 999px;
  box-shadow: 0 5px 14px #303f6926, inset 0 1px #fff !important;
  text-shadow: none !important;
}
body :is(#copy-subscription,a.btn.primary,.plan a.btn) { --tint: #ffd8be; }
body :is(#open-app,.app-dl,.boost-download) { --tint: #d3f0e9; }
body :is(.cabinet-gradient,.login-link) { --tint: #d6e5ff; }
body .plan:nth-child(2) a.btn { --tint: #dbeaff; }
body .plan:nth-child(3) a.btn { --tint: #d9f6ec; }
body .plan:nth-child(5) a.btn { --tint: #f6d8ed; }
body :is(input:not([type=checkbox]),select,textarea) { background: #ffffffbc; color: #211b36; border-color: #b7c1d9; }
body :is(a,button,input,select):focus-visible { outline: 2px solid #613fba; outline-offset: 3px; }
body #locations .srv-head.secondary { background: transparent !important; color: #211b36 !important; }
body #locations .srv { border-inline-start: 4px solid #a68ae8 !important; }
body #locations .srv:nth-child(3n+2) { border-inline-start-color: #559dd4 !important; }
body #locations .srv:nth-child(3n) { border-inline-start-color: #409e83 !important; }
body .chega-boost-downloads { padding: clamp(18px, 3vw, 32px); margin-block: 18px; border-radius: 21px; }

body main:has(> #login) > header .brand::before {
  width: 37px;
  height: 37px;
  flex-basis: 37px;
  background: transparent url("/app/boost/chega-boost-logo.webp") center / contain no-repeat;
  box-shadow: none;
}
body main > #login {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 48px);
  border-radius: clamp(20px, 4vw, 34px);
}
body #login h1 {
  font-size: clamp(29px, 5.5vw, 53px);
  overflow-wrap: anywhere;
}
body #login form { max-width: none; }
body #login input { width: 100%; min-width: 0; border-radius: 14px; }
body #login .code-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #c8cfe1;
}
body #login-form button { --tint: #e6dcfc; }
body #login #get-code { --tint: #d3f0e9; margin-bottom: 16px; }
body #code-form button { --tint: #d6e5ff; }
body main > #dashboard {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
body #dashboard > .title { margin-bottom: 20px; }
body #dashboard .title h1 {
  margin: 0;
  font-size: clamp(29px, 5vw, 46px);
  letter-spacing: -.045em;
}
body #dashboard > .summary {
  padding: clamp(20px, 4vw, 34px);
  margin: 0 0 24px;
  border-radius: 30px;
  background: linear-gradient(125deg,#ede1fd,#f8f6ff 55%,#deedf8) !important;
}
body #dashboard #remaining {
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -.03em;
}
body #dashboard > .panel { border-radius: 26px; }
body #dashboard .tile-android { --tint: #d3f0e9; }
body #dashboard .tile-windows { --tint: #d6e5ff; }
body #dashboard #awg-list { gap: 12px; }
body #dashboard #awg-list > * {
  padding: 16px;
  border-radius: 18px;
  background: #f7f4ff !important;
  box-shadow: none !important;
}
body #dashboard #awg-list h3 { margin: 0 0 12px; }
body #dashboard #awg-list :is(a.button,button) {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: none !important;
}
body #dashboard #awg-list a.button { --tint: #e4d8fc; }
body #dashboard #awg-list button { --tint: #f8f6ff; margin-top: 6px; }
@media (max-width: 420px) {
  body main:has(> #login) > header { flex-wrap: wrap; gap: 8px; }
  body #dashboard > .title { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion:no-preference) {
  body :is(.btn,.button,.download,button) { transition: transform .18s ease, filter .18s ease; }
  body :is(.btn,.button,.download,button):active { transform: scale(.98); }
}

/* Keep native touch overlays off rounded controls while preserving keyboard focus. */
:is(a,button,summary,[role=button],[role=tab],input[type=button],input[type=submit]) {
  -webkit-tap-highlight-color: transparent;
}
