.home-premium {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  margin: 10px 10px 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(177, 158, 234, .26);
  border-radius: 24px;
  background: radial-gradient(ellipse at 100% 35%, rgba(177, 158, 234, .2), transparent 65%), linear-gradient(135deg, #332e59, #25204a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 28px rgba(21, 14, 49, .22);
  color: var(--primary-text, #EDE9F9);
  text-align: left;
}

.home-premium *, .home-premium *::before, .home-premium *::after { box-sizing: border-box; }
.home-premium[hidden] { display: none; }
.home-premium--install .home-premium__action { width: 100%; font-family: inherit; cursor: pointer; }
.home-premium--install .home-premium__action[hidden] { display: none; }
.home-premium__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-premium__brand { display: inline-flex; align-items: center; gap: 7px; color: #ffcf7a; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; }
.home-premium__brand svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.home-premium__trial { padding: 6px 9px; border: 1px solid rgba(240, 169, 89, .25); border-radius: 20px; background: rgba(240, 169, 89, .1); color: #ffcf7a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-premium__scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 0; min-height: 164px; margin: 10px -8px 7px 0; }
.home-premium__copy { position: relative; z-index: 2; min-width: 0; }
.home-premium .home-premium__title { margin: 0; color: #fff; font-size: clamp(23px, 6.2vw, 30px); font-weight: 700; line-height: 1.12; letter-spacing: -.7px; }
.home-premium__title span { color: #d1c4e9; }
.home-premium .home-premium__description { max-width: 260px; margin: 12px 0 0; color: #d1c4e9; font-size: 12px; line-height: 1.5; text-align: left; }
.home-premium__art { position: relative; z-index: 1; width: 148px; height: 180px; margin-left: -16px; pointer-events: none; }
.home-premium__art::before { content: ""; position: absolute; inset: 22% 8% 5%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(240, 169, 89, .14), transparent 70%); }
.home-premium__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-premium__benefits { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 17px; padding: 0; list-style: none; color: #EDE9F9; font-size: 11px; line-height: 1.4; }
.home-premium__benefits li { display: inline-flex; align-items: center; gap: 5px; }
.home-premium__benefits svg { width: 13px; height: 13px; fill: none; stroke: #ffcf7a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.home-premium__action { display: flex; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; background: linear-gradient(100deg, #f0a959, #f38b6e 65%, #f46e92); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-premium__action svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-premium__action:focus-visible { outline: 3px solid #d1c4e9; outline-offset: 4px; }
.home-premium__action:active { transform: scale(.98); }
@media (hover: hover) { .home-premium__action:hover { box-shadow: 0 6px 20px rgba(243, 139, 110, .24); transform: translateY(-1px); } }
@media (max-width: 350px) {
  .home-premium { padding: 17px 15px; }
  .home-premium__scene { grid-template-columns: minmax(0, 1fr) 110px; }
  .home-premium__art { width: 128px; height: 168px; margin-left: -12px; }
  .home-premium__brand { font-size: 10px; letter-spacing: 1px; }
  .home-premium__trial { font-size: 10px; padding: 5px 7px; }
  .home-premium__benefits { gap: 7px 10px; font-size: 10px; }
  .home-premium__action { padding: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .home-premium__action { transition: none; } }

.premium-banner {
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 120px;
  margin: 10px 10px 18px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 169, 89, .3);
  border-radius: 18px;
  background: radial-gradient(ellipse at 90% 60%, rgba(240, 169, 89, .13), transparent 55%), linear-gradient(110deg, #332e59, #25204a);
  color: #EDE9F9;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.premium-banner__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: calc(100% - 106px); min-width: 0; }
.premium-banner__label { display: inline-flex; align-items: center; gap: 4px; color: #ffcf7a; font-size: 9px; font-weight: 700; line-height: 1.2; letter-spacing: 1.4px; }
.premium-banner__label svg { width: 11px; height: 11px; fill: currentColor; }
.premium-banner__title { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.12; letter-spacing: -.3px; }
.premium-banner__note { color: #d1c4e9; font-size: 10px; line-height: 1.3; }
.premium-banner__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; color: #ffcf7a; font-size: 11px; font-weight: 700; line-height: 1.3; }
.premium-banner__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.premium-banner__art { position: absolute; right: 10px; bottom: 7px; width: 110px; height: 108px; pointer-events: none; }
.premium-banner__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.premium-banner__spark { position: absolute; z-index: 1; color: #ffcf7a; pointer-events: none; }
.premium-banner__spark--one { right: 124px; top: 18px; font-size: 12px; opacity: .65; }
.premium-banner__spark--two { right: 8px; bottom: 15px; font-size: 16px; opacity: .45; }
.premium-banner:focus-visible { outline: 3px solid #d1c4e9; outline-offset: 3px; }
@media (max-width: 350px) {
  .premium-banner { padding-left: 13px; padding-right: 13px; }
  .premium-banner__copy { width: calc(100% - 100px); }
  .premium-banner__title { font-size: 17px; }
  .premium-banner__art { right: 6px; width: 104px; height: 106px; }
  .premium-banner__spark--one { right: 108px; }
}
@media (min-width: 600px) {
  .premium-banner { padding-left: 24px; }
  .premium-banner__title { font-size: 22px; }
  .premium-banner__note { font-size: 12px; }
  .premium-banner__cta { font-size: 12px; }
  .premium-banner__art { right: 25px; width: 126px; height: 112px; bottom: 3px; }
  .premium-banner__copy { width: calc(100% - 150px); }
  .premium-banner__spark--one { right: 164px; }
}

.premium-promo-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-width: 420px;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0;
  margin: auto;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #25204a;
  color: #EDE9F9;
}
.premium-promo-dialog:not([open]) { display: none; }
.premium-promo-dialog::backdrop { background: rgba(21, 14, 49, .78); backdrop-filter: blur(4px); }
.premium-promo-dialog .home-premium { margin: 0; }
.premium-promo-dialog .home-premium__header { padding-right: 32px; flex-wrap: wrap; }
.premium-promo-dialog .home-premium__title { font-size: clamp(23px, 6.2vw, 28px); }
.premium-promo-close { position: absolute; z-index: 5; top: 7px; right: 7px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d1c4e9; cursor: pointer; }
.premium-promo-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.premium-promo-close:focus-visible { outline: 2px solid #ffcf7a; outline-offset: -5px; }
.premium-promo-close:hover { background: rgba(255, 255, 255, .07); }
body.premium-promo-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .premium-promo-dialog[open] { animation: premium-promo-enter .2s ease-out; } }
@keyframes premium-promo-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
