/* PhoenixDms /app — compact premium customer shell (2026) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

html:has(body.phx-app-mobile),
body.phx-app-mobile {
  overflow-x: hidden;
  max-width: 100%;
}
body.phx-app-mobile {
  margin: 0;
  min-height: 100dvh;
  background: #06080f;
  color: #e8edf7;
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
body.phx-app-mobile .bg { display: none; }

.phx-app {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 max(14px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  z-index: 1;
  box-sizing: border-box;
  overflow-x: clip;
}
.phx-app__glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 55vh;
  background:
    radial-gradient(ellipse 55% 50% at 18% 8%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 45% at 82% 0%, rgba(167, 139, 250, 0.26), transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 0%, rgba(251, 113, 133, 0.14), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.phx-app__orb {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.phx-app__orb--a {
  top: 12%;
  left: -40px;
  background: #22d3ee;
}
.phx-app__orb--b {
  top: 28%;
  right: -50px;
  background: #f472b6;
}

.phx-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: content-box;
  height: 52px;
  gap: 8px;
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 15, 0.78);
  margin: 0 calc(-1 * max(14px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(14px, env(safe-area-inset-left, 0px)));
  padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #22d3ee, #a78bfa, #fb7185, #fbbf24) 1;
}
.phx-app__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: -0.02em;
}
.phx-app__brand img { border-radius: 7px; }
.phx-app__bar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.phx-app__gt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 5px 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  overflow: visible;
  flex: 0 0 auto;
  z-index: 21;
}
.phx-app__gt-icon {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phx-app__gt:not(.is-open) {
  width: 30px;
  padding: 0;
  justify-content: center;
  gap: 0;
}
.phx-app__gt:not(.is-open) .phx-app__gt-lang,
.phx-app__gt:not(.is-open) .phx-app__gt-toggle,
.phx-app__gt:not(.is-open) .phx-app__gt-menu {
  display: none !important;
}
.phx-app__gt-g {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}
.phx-app__gt-lang,
.phx-app__gt-toggle {
  height: 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 7px;
}
.phx-app__gt-lang {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #0f172a;
  color: #e2e8f0;
}
.phx-app__gt-lang[hidden] { display: none !important; }
.phx-app__gt-toggle {
  min-width: 36px;
  background: #1d4ed8;
  color: #fff;
}
.phx-app__gt-toggle.off {
  background: #334155;
  color: #94a3b8;
}
.phx-app__gt-menu {
  min-width: 156px;
  max-height: 220px;
  overflow: auto;
  right: 0;
}
.phx-app__gt-menu .phx-app__menu-item {
  min-height: 26px;
  padding: 5px 8px;
}
.phx-app__gt-menu .phx-app__menu-item.is-on {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[name="google_translate_frame"],
#gt-nvframe,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-te-gadget,
.goog-te-gadget-simple,
.skiptranslate.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
}
html.translated-ltr,
html.translated-rtl { margin-top: 0 !important; padding-top: 0 !important; }
html.translated-ltr body,
html.translated-rtl body,
body.translated-ltr,
body.translated-rtl { top: 0 !important; margin-top: 0 !important; }
.phx-app__pill {
  font-size: 10px;
  font-weight: 600;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}
.phx-app__ghost {
  font-size: 12px;
  color: #93c5fd;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 8px;
}
.phx-app__secure {
  margin-left: auto;
  font-size: 10.5px;
  color: #6ee7b7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phx-app__account { position: relative; }
.phx-app__account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 550;
}
.phx-app__avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.phx-app__account-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .phx-app {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
  .phx-app__bar {
    margin-left: calc(-1 * max(10px, env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(10px, env(safe-area-inset-right, 0px)));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    gap: 6px;
  }
  .phx-app__bar-actions { gap: 5px; }
  .phx-app__brand span { display: none; }
  .phx-app__account-name { display: none; }
  .phx-app__account-btn { padding-right: 4px; }
}
.phx-app__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(11, 18, 36, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 40;
  display: grid;
  gap: 2px;
}
.phx-app__menu-item {
  display: grid;
  width: 100%;
  text-align: left;
  border: 0;
  color: #e2e8f0;
  font: inherit;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  gap: 0;
  background: transparent;
}
.phx-app__menu-item span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.phx-app__menu-item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}
.phx-app__menu-item--wallet { color: #fde68a; }
.phx-app__menu-item--licenses { color: #67e8f9; }
.phx-app__menu-item--profile { color: #c4b5fd; }
.phx-app__menu-item--out { color: #fca5a5; }
.phx-app__menu-item:hover { background: rgba(148, 163, 184, 0.1); }

.phx-app__panel { position: relative; z-index: 1; padding-top: 8px; }
.phx-app__panel--login {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 70px);
  padding: 12px 0 24px;
}
.phx-app__login-card {
  width: min(100%, 400px);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 22, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.phx-app__eyebrow {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
  font-weight: 600;
}
.phx-app__panel h1,
.phx-app__login-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.phx-app__lead {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.45;
}
.phx-app__form label {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
}
.phx-app__form input[type="email"],
.phx-app__form input[type="password"],
.phx-app__form input[type="text"],
.phx-app__form input[type="number"] {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #f8fafc;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 13px;
}
.phx-app__pw-wrap {
  position: relative;
  display: block;
}
.phx-app__pw-wrap input { padding-right: 34px; }
.phx-app__eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.phx-app__eye:hover { color: #e2e8f0; background: rgba(148, 163, 184, 0.12); }
.phx-app__eye.is-on { color: #67e8f9; }
.phx-app__forgot-row {
  margin: 8px 0 0;
  text-align: right;
}
.phx-app__link {
  border: 0;
  background: none;
  color: #67e8f9;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}
.phx-app__link:hover { text-decoration: underline; }
.phx-app__forgot-box { margin-top: 8px; }
.phx-app__form input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.phx-app__check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px !important;
  font-size: 12px !important;
  color: #cbd5e1 !important;
  cursor: pointer;
}
.phx-app__check input { width: 15px; height: 15px; accent-color: #38bdf8; }
.phx-app__login-btn {
  width: 100%;
  height: 34px;
  margin-top: 2px;
  font-weight: 700;
  border: 0;
  background: linear-gradient(90deg, #22d3ee, #818cf8, #fb7185);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.35);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.phx-app__login-btn:hover { filter: brightness(1.07); }
.phx-app__login-btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.9);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.22);
}
.phx-app__error {
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}
.phx-app__foot { font-size: 12px; color: #64748b; margin: 14px 0 0; }
.phx-app__foot a { color: #7dd3fc; }

.phx-app__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.phx-app__card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.phx-app__card h2 {
  font-size: 11px;
  margin: 0 0 8px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.phx-app__card ul { margin: 0; padding: 0; list-style: none; }
.phx-app__card li {
  font-size: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.phx-app__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .phx-app__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .phx-app__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.phx-app__mod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.98), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  min-height: 118px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  font: inherit;
}
.phx-app__mod:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.phx-app__mod.is-locked { opacity: 1; cursor: pointer; }
.phx-app__mod.is-locked::after,
.phx-app__mod.is-renew::after,
.phx-app__mod.is-unlock::after {
  content: "Buy";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0b1220;
  background: linear-gradient(90deg, #fbbf24, #fb7185);
  padding: 2px 6px;
  border-radius: 999px;
}
.phx-app__mod.is-renew::after { content: "Renew"; }
.phx-app__mod.is-unlock::after { content: "Unlock"; }
.phx-app__mod-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.16);
  line-height: 0;
  isolation: isolate;
}
.phx-app__mod-logo,
.phx-app__mod-mark > img,
.phx-app__mod-mark > .phx-app__mod-logo {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.phx-app__mod-logo--fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #67e8f9;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.22));
}
.phx-app__mod strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.phx-app__mod span.phx-app__mod-status {
  font-size: 10.5px;
  color: #64748b;
  margin-top: auto;
}
.phx-app__mod span.phx-app__mod-status.is-ok { color: #6ee7b7; }

.phx-app__viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
/* CSS display:flex must not override the HTML hidden attribute (was covering /app entirely). */
.phx-app__viewer.is-off,
.phx-app__viewer[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -1;
}
.phx-app__backdrop[hidden],
.phx-app__drawer[hidden],
.phx-app__panel[hidden],
.phx-app__menu[hidden],
.phx-app__account[hidden],
.phx-app__pill[hidden],
.phx-app__wallet-pill[hidden] {
  display: none !important;
}
.phx-app__viewer-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: #0b1220;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 550;
}
.phx-app__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.phx-app__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}
.phx-app__stream {
  object-fit: contain;
  cursor: crosshair;
  user-select: none;
  -webkit-user-drag: none;
}
.phx-app__status {
  display: none !important;
}

/* Same chrome as go.* refreshingSessionHtml / desktop NavigationOverlay */
.phx-app__session-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #080C14;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.phx-app__session-overlay[hidden] {
  display: none !important;
}
.phx-app__ov-scene-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.phx-app__ov-scene {
  max-width: 920px;
  max-height: 100%;
  opacity: 0.24;
  object-fit: contain;
}
.phx-app__ov-veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.90);
}
.phx-app__ov-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.phx-app__ov-halo {
  width: 38px;
  height: 38px;
  position: relative;
  margin: 0 0 16px;
}
.phx-app__ov-halo-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
.phx-app__ov-halo-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #BB86FC;
  border-right-color: rgba(187, 134, 252, 0.35);
  box-sizing: border-box;
  animation: phx-app-spin 0.85s linear infinite;
}
@keyframes phx-app-spin {
  to { transform: rotate(360deg); }
}
.phx-app__ov-status {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.phx-app__ov-firm {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 36px;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.91);
  font-size: 14px;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
}

.phx-app__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 60;
}
.phx-app__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100dvh;
  z-index: 70;
  background: #0b1220;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 16px 24px;
  overflow: auto;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  animation: phx-drawer-in .22s ease;
}
@keyframes phx-drawer-in {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.phx-app__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.phx-app__drawer-head h2 {
  margin: 0;
  font-size: 17px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.phx-app__subh {
  margin: 0 0 8px;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.phx-app__hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin: 16px 0;
}
.phx-app__licenses {
  list-style: none;
  margin: 0;
  padding: 0;
}
.phx-app__licenses li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.phx-app__licenses img,
.phx-app__lic-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.phx-app__lic-fallback {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #67e8f9;
}
.phx-app__licenses strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.phx-app__licenses em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.phx-app__licenses .is-active { color: #6ee7b7; }
.phx-app__licenses .is-expired { color: #fca5a5; }

.phx-app__modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.phx-app__modal[hidden] { display: none !important; }
.phx-app__modal-card {
  width: min(400px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(8, 12, 22, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 18px 16px 14px;
}
.phx-app__modal-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}
.phx-app__modal-card .phx-app__lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
}
.phx-app__modal-card .phx-app__licenses {
  margin: 0 0 14px;
  max-height: 140px;
  overflow: auto;
}
.phx-app__modal-card .phx-app__licenses li {
  grid-template-columns: 1fr auto;
  font-size: 12px;
  color: #cbd5e1;
}
.phx-app__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.phx-app__modal-actions .btn,
.phx-app__modal-actions .phx-app__btn-rainbow {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}
.phx-app__modal-actions [hidden] { display: none !important; }
.phx-app__modal-card--dialog .phx-app__eyebrow { margin-bottom: 4px; }
.phx-app__modal-card--dialog h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #f8fafc;
}
.phx-app__dialog-meta {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin: 0 0 14px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: #ede9fe;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.85), rgba(91, 33, 182, 0.7));
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.phx-app__dialog-meta[hidden] { display: none !important; }

.phx-app__home-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phx-app__wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  color: #1a1204;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #fb7185);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 6px 14px rgba(245, 158, 11, 0.22);
  transition: transform .12s ease, filter .12s ease;
}
.phx-app__install-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  color: #ede9fe;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.85), rgba(91, 33, 182, 0.7));
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.22);
  transition: transform .12s ease, filter .12s ease;
}
.phx-app__install-pill:hover { filter: brightness(1.08); }
.phx-app__install-pill:active { transform: scale(0.96); }
.phx-app__install-pill[hidden] { display: none !important; }
.phx-app__wallet-pill:hover { filter: brightness(1.06); }
.phx-app__wallet-pill:active { transform: scale(0.96); }
.phx-app__wallet-ico { font-size: 12px; }
.phx-app__wallet-pill[hidden] { display: none !important; }
.phx-app__btn-rainbow,
.phx-app__btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(90deg, #22d3ee, #818cf8 40%, #fb7185 75%, #fbbf24);
  background-size: 180% 100%;
  box-shadow: 0 8px 18px rgba(129, 140, 248, 0.28);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.phx-app__btn-rainbow:hover,
.phx-app__btn-pay:hover { filter: brightness(1.06); }
.phx-app__btn-rainbow:active,
.phx-app__btn-pay:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.9);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}
.phx-app__btn-pay { width: 100%; min-height: 40px; font-size: 15px; margin: 4px 0 16px; }
.phx-app__balance-line {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
}
.phx-app__balance-line strong {
  margin-left: 6px;
  font-size: 18px;
  color: #fde68a;
}
.phx-app__wallet-mod {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(251, 113, 133, 0.08));
}
.phx-app__wallet-mod .phx-app__mod-mark { width: 44px; height: 44px; }
.phx-app__wallet-mod strong { display: block; font-size: 14px; }
.phx-app__wallet-mod em { font-style: normal; font-size: 11px; color: #94a3b8; }
.phx-app__period {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 4px 0 14px;
  perspective: 600px;
}
.phx-app__period-light {
  position: absolute;
  top: -10px;
  left: 0;
  width: calc(50% - 6px);
  height: calc(100% + 20px);
  border-radius: 22px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(253, 230, 138, 0.7), rgba(167, 139, 250, 0.28) 52%, transparent 72%);
  filter: blur(10px);
  transition: transform .28s ease;
}
.phx-app__period.is-year .phx-app__period-light {
  transform: translateX(calc(100% + 12px));
}
.phx-app__packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
@media (min-width: 560px) {
  .phx-app__packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .phx-app__packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.phx-app__pack {
  padding: 8px;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.86);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.phx-app__pack:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-1px);
}
.phx-app__pack:active { transform: scale(0.98); }
.phx-app__pack strong {
  display: block;
  font-size: 16px;
  color: #fde68a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.phx-app__pack em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 3px;
}
.phx-app__pack span {
  display: block;
  font-size: 10px;
  color: #4ade80;
  margin-top: 2px;
}
.phx-app__custom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 16px;
}
.phx-app__custom label { margin: 0; }
.phx-app__custom .phx-app__btn-rainbow { height: 30px; min-height: 30px; }
.phx-app__period-card {
  position: relative;
  min-height: 88px;
  padding: 10px 10px 8px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: scale(0.94) translateY(6px);
  opacity: 0.62;
  box-shadow: none;
  transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease, border-color .22s ease;
  z-index: 1;
}
.phx-app__period-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.phx-app__period-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #f8fafc;
}
.phx-app__period-card em {
  font-style: normal;
  font-size: 11px;
  color: #64748b;
}
.phx-app__period-card.is-on {
  transform: scale(1.04) translateY(-4px);
  opacity: 1;
  z-index: 3;
  border-color: transparent;
  color: #0b1220;
  background: linear-gradient(160deg, #67e8f9, #a78bfa 55%, #fb7185);
  box-shadow:
    0 0 0 2px rgba(253, 230, 138, 0.85),
    0 0 28px rgba(167, 139, 250, 0.55),
    0 18px 36px rgba(0, 0, 0, 0.35);
}
.phx-app__period-card.is-on span,
.phx-app__period-card.is-on em { color: rgba(15, 23, 42, 0.72); }
.phx-app__period-card.is-on strong { color: #0b1220; }
.phx-app__dates {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.phx-app__dates p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #94a3b8;
}
.phx-app__dates p:last-child { margin-bottom: 0; }
.phx-app__dates strong { color: #e2e8f0; font-weight: 650; }
.phx-app__dates-next strong { color: #fde68a; }
.phx-app__form-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 16px;
}
.phx-app__lic-board { display: grid; gap: 18px; }
.phx-app__lic-cat { margin: 0; }
.phx-app__lic-cat h2 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #67e8f9;
}
.phx-app__lic-hint {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: #94a3b8;
}
.phx-app__lic-cat-block { margin-bottom: 10px; }
.phx-app__lic-cat-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  color: #e2e8f0;
}
.phx-app__lic-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.phx-app__lic-body { min-width: 0; }
.phx-app__lic-card strong { display: block; font-size: 13px; }
.phx-app__lic-chip {
  display: inline-block;
  margin: 4px 0 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0b1220;
  background: linear-gradient(90deg, #67e8f9, #a78bfa);
}
.phx-app__lic-dates {
  margin: 0 0 2px;
  font-size: 11px;
  color: #94a3b8;
}
.phx-app__lic-dates b { color: #e2e8f0; font-weight: 650; }
.phx-app__lic-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.phx-app__lic-card .is-active { color: #6ee7b7; }
.phx-app__lic-card .is-expired { color: #fca5a5; }
.phx-app__lic-card .is-none { color: #93c5fd; }
.phx-app__lic-card .phx-app__renew { align-self: center; }
.phx-app__renew {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #0b1220;
  background: linear-gradient(90deg, #fbbf24, #fb7185);
}
.phx-app__renew:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.4);
}
.phx-app__modal-card--buy { text-align: center; }
.phx-app__modal-card--buy .phx-app__mod-mark { margin: 0 auto 10px; width: 44px; height: 44px; }
.phx-app__buy-name { font-weight: 750; color: #f8fafc; margin: 0 0 6px; font-size: 16px; }
.phx-app__mod::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #fb7185, #fbbf24);
}
