.hosting-plans { width: 100%; text-align: left; }
.hosting-billing { border: 0; inline-size: fit-content; max-inline-size: 100%; min-inline-size: 0; margin: 24px auto 32px; padding: 0; }
.hosting-billing-options {
  --track-padding: 4px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--track-padding);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid var(--control-border);
  border-radius: 24px;
  corner-shape: squircle;
  background-color: var(--control-bg);
  transition: var(--theme-transition);
}
.hosting-billing-indicator {
  position: absolute;
  inset: var(--track-padding) auto var(--track-padding) var(--track-padding);
  width: calc(50% - var(--track-padding));
  z-index: -1;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #231432), color-mix(in srgb, var(--brand2) 85%, #231432));
  translate: 0;
  transition: translate .48s cubic-bezier(.3, .8, .25, 1);
}
.hosting-billing-options:has(input[value="yearly"]:checked) .hosting-billing-indicator { translate: 100%; }
.hosting-billing label { position: relative; cursor: pointer; min-width: 0; }
.hosting-billing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hosting-billing label span {
  display: block;
  padding: 10px clamp(12px, 3vw, 24px);
  border-radius: 20px;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
  transition: color .25s ease;
}
.hosting-billing input:checked + span { color: #fff; }
.hosting-billing input:focus-visible + span { outline: 2px solid currentColor; outline-offset: -3px; }
@media (forced-colors: active) {
  .hosting-billing input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
.hosting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hosting-card { padding: 30px 24px; border: 2px solid var(--card-border); border-radius: 24px; display: flex; flex-direction: column; min-width: 0; }
.hosting-card h3 { font-size: 1.6rem; margin: 0 0 8px; }
#home-core-title { font-size: 1.85rem; }
.hosting-prices { margin: 20px 0 6px; font-variant-numeric: tabular-nums; }
.hosting-price { color: var(--text-main); font-size: 1.8rem; line-height: 1.25; }
.hosting-gross { margin-top: 5px; color: var(--text-muted); font-size: .85rem; }
.hosting-gross-amount { font-weight: 600; white-space: nowrap; }
.hosting-gross-label { white-space: nowrap; }
.hosting-period { color: var(--text-muted); font-size: .9rem; font-weight: 400; white-space: nowrap; }
.plan-price-reel { position: relative; display: inline-grid; overflow: hidden; overflow: clip; white-space: nowrap; }
.plan-price-outgoing { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
.hosting-desc { margin-top: 8px; color: var(--text-muted); font-size: .9rem; }
.hosting-facts { margin: 24px 0; flex: 1; }
.hosting-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--card-border); font-size: .85rem; }
.hosting-facts dt { color: var(--text-muted); }
.hosting-facts dd { margin: 0; text-align: right; color: var(--text-main); overflow-wrap: anywhere; }
.hosting-facts .hosting-backup-details { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.hosting-backup-details .info-icon { display: grid; place-items: center; padding: 2px; border: 0; color: var(--text-muted); background: none; cursor: help; }
.hosting-backup-details .info-icon::after { content: none; }
.hosting-backup-details .info-icon svg { width: 16px; height: 16px; }
.hosting-backup-details .info-icon:is(:hover, :focus-visible) svg { stroke: url(#brand-stroke); }
.hosting-backup-tooltip {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  bottom: 100%;
  padding: 6px 10px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--dropdown-bg);
  color: var(--text-main);
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  translate: 0 4px;
  transition: opacity .2s ease, translate .2s ease, visibility .2s;
}
.hosting-backup-details .info-icon:is(:hover, :focus) + .hosting-backup-tooltip,
.hosting-backup-tooltip:hover { visibility: visible; opacity: 1; translate: 0 0; }
.hosting-mailboxes { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.hosting-infinity { display: block; width: 28px; height: 16px; fill: none; stroke: url(#brand-fill); stroke-width: 2.2; stroke-linecap: round; }
.hosting-infinity path:first-child { opacity: .55; }
.hosting-infinity-signal { stroke-dasharray: 18 82; animation: hosting-infinity-flow 2.8s linear infinite; }
@keyframes hosting-infinity-flow { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) {
  .hosting-infinity-signal { display: none; }
  .hosting-infinity path:first-child { opacity: 1; }
}
.hosting-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; padding: 13px 18px; border-radius: 14px; background: var(--brand-gradient); color: #fff; font-weight: 600; transition: filter .35s ease; }
.hosting-order:hover { filter: brightness(1.1); }
.hosting-order .hosting-order-cart {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}
.hosting-order[aria-busy="true"] { cursor: progress; }
.hosting-order .hosting-cart-check { opacity: 0; }
.hosting-order:is([aria-busy="true"], .is-added) .hosting-cart-plus { opacity: 0; }
.hosting-order.is-added .hosting-cart-check { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hosting-order .hosting-order-cart {
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  }
  .hosting-order :is(.hosting-cart-plus, .hosting-cart-check) {
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .26s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
  }
  .hosting-order[aria-busy="true"] .hosting-order-cart {
    transform: translateY(1px) scale(1.05, .91);
  }
  .hosting-order.is-added .hosting-order-cart {
    transform: translateY(-2px) scale(1.12);
  }
  .hosting-order:is([aria-busy="true"], .is-added) .hosting-cart-plus {
    transform: translateY(3px) scale(.55);
  }
  .hosting-order:not(.is-added) .hosting-cart-check {
    transform: translateY(2px) scale(.7);
  }
}

.hosting-cart-dialog {
  position: fixed;
  width: min(470px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: clamp(18px, 5vw, 28px);
  border-color: transparent;
  background: var(--brand-soft-gradient) padding-box, var(--brand-frame);
  overflow: auto;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1), display .24s, overlay .24s;
  transition-behavior: allow-discrete;
}
.hosting-cart-dialog[open] { opacity: 1; transform: none; }
.hosting-cart-dialog::backdrop { background: rgb(11 8 19 / .6); opacity: 0; transition: opacity .24s ease; }
.hosting-cart-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .hosting-cart-dialog[open] { opacity: 0; transform: translateY(10px) scale(.98); }
  .hosting-cart-dialog[open]::backdrop { opacity: 0; }
}
.hosting-cart-dialog-heading { display: flex; align-items: center; gap: 14px; }
.hosting-cart-dialog-heading > .ui-icon {
  width: 48px;
  height: 48px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid var(--control-border);
  background: var(--brand-soft-gradient);
  stroke: url(#brand-stroke);
}
.hosting-cart-dialog-heading h2 { font-size: clamp(1.1rem, 4vw, 1.4rem); line-height: 1.3; }
.hosting-cart-dialog-heading p { margin-top: 4px; color: var(--text-muted); font-size: .95rem; }
.hosting-cart-dialog:not(.has-error) .hosting-cart-warning, .hosting-cart-dialog.has-error .hosting-cart-check { display: none; }
.hosting-cart-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hosting-cart-actions :is(button, a) {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 13px;
  corner-shape: squircle;
  border: 1px solid var(--control-border);
  color: var(--text-main);
  background: var(--control-bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .24s ease, filter .24s ease;
}
.hosting-cart-actions button:hover { background: var(--dropdown-hover); }
.hosting-cart-actions a {
  color: #fff;
  border-color: transparent;
  background: var(--brand-gradient);
}
.hosting-cart-actions a:hover { filter: brightness(1.1); }

.hosting-note { margin: 24px auto 0; max-width: 850px; font-size: .85rem; color: var(--text-muted); text-align: center; line-height: 1.7; }
@media (max-width: 900px) { .hosting-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; } }
@media (min-width: 901px) { .hosting-desc { min-height: 3em; } }
@media (max-width: 380px) { .hosting-card { padding: 24px 16px; } .hosting-facts > div { gap: 8px; } }
