/* ==========================================================================
   RZGS-PRO: the header's account buttons, the free-trial bar, the plans pop-up
   and the Elite confirmation. The behaviour is in plans.js.
   ========================================================================== */

/* A line in each page's head says "signed in" before anything is drawn, so the header never flickers. */
html:not(.signed-in) .signed-only {
  display: none !important;
}
html.signed-in .guest-only {
  display: none !important;
}

/* ---------------------------------------------------------------- header */
.nav-profile {
  gap: 8px;
  padding: 0 14px 0 8px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.nav-profile-pic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  background: rgba(25, 211, 255, 0.16);
  color: var(--cyan);
  font: 700 14px/1 var(--font-display);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.nav-profile-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1023.98px) {
  .nav-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
@media (max-width: 479.98px) {
  .nav-profile {
    padding: 0 8px;
  }
  .nav-profile-name {
    display: none;
  }
}
/* a phone has room for one button beside the logo and the menu; both are in the menu */
@media (max-width: 429.98px) {
  .header-login {
    display: none;
  }
}
@media (max-width: 339.98px) {
  .header-signup {
    display: none;
  }
}

/* ---------------------------------------------------------------- the gift on the claim button */
.btn .icon-gift {
  transform-origin: 50% 80%;
}
.btn:hover .icon-gift {
  transform: none;
  animation: gift-wiggle 0.7s var(--ease-out);
}
@keyframes gift-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.08); }
  55% { transform: rotate(10deg) scale(1.08); }
  80% { transform: rotate(-4deg); }
}

/* ---------------------------------------------------------------- the bar at the top of the page */
.trial-bar {
  position: relative;
  background: var(--grad);
  color: #02131a;
  overflow: hidden;
  animation: trial-bar-in 320ms var(--ease-out);
  transition: height 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.trial-bar.is-closing {
  height: 0 !important;
  opacity: 0;
}
@keyframes trial-bar-in {
  from { transform: translateY(-100%); margin-bottom: -56px; }
  to { transform: none; margin-bottom: 0; }
}
.trial-bar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px var(--gutter);
}
.trial-bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  background: #02131a;
  color: var(--neon);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.trial-bar-chip .icon {
  width: 14px;
  height: 14px;
}
.trial-bar-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: 500 14px/1.35 var(--font-body);
}
.trial-bar-text strong {
  font-weight: 700;
}
.trial-bar-go {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  background: #02131a;
  color: #fff;
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.trial-bar-go:hover {
  background: #062b38;
  color: var(--neon);
}
.trial-bar-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.trial-bar-x:hover {
  transform: scale(1.15);
}
@media (max-width: 719.98px) {
  .trial-bar-more,
  .trial-bar-chip-word {
    display: none;
  }
  .trial-bar-chip {
    padding: 7px;
  }
  .trial-bar-chip .icon {
    width: 16px;
    height: 16px;
  }
  .trial-bar-in {
    gap: 8px;
    padding-right: 8px;
  }
  .trial-bar-text {
    font-size: 13px;
  }
  .trial-bar-go {
    padding: 0 12px;
    font-size: 11px;
  }
}

/* ---------------------------------------------------------------- the plans pop-up */
html.plans-open {
  overflow: hidden;
}
dialog.plans {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: rgba(2, 9, 14, 0.97);
  color: var(--text);
}
dialog.plans::backdrop {
  background: rgba(2, 9, 14, 0.8);
}
.plans-x {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(7, 25, 34, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.plans-x:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: rotate(90deg);
}
.plans-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 44px 24px 40px;
  animation: plans-in 320ms var(--ease-out);
}
@keyframes plans-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.plans-wrap:focus,
.plan-confirm-in:focus {
  outline: none;
}
.plans-head {
  margin-bottom: 28px;
  text-align: center;
}
.plans-head h2 {
  margin: 0 0 8px;
  font: 800 clamp(30px, 4vw, 46px)/1.1 var(--font-display);
  letter-spacing: 0.01em;
}
.plans-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}
.plans-head .plans-now {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  background: rgba(25, 211, 255, 0.1);
  color: var(--cyan);
  font: 500 13px/1 var(--font-mono);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.plans-head .plans-now[hidden] {
  display: none;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* each plan has its own colours; everything in its card is made from them */
.pc--free {
  --a: #a6ff1a;
  --a2: #e4ff3d;
  --a3: #54f08c;
  --a-rgb: 166, 255, 26;
}
.pc--elite {
  --a: #19d3ff;
  --a2: #5aa9ff;
  --a3: #37efb8;
  --a-rgb: 25, 211, 255;
}
.pc--diamond {
  --a: #c58bff;
  --a2: #ff6ad5;
  --a3: #8f8bff;
  --a-rgb: 197, 139, 255;
}
/* a frame with two cut corners: the outer box is the line, the inner box the panel */
.pc {
  padding: 1px;
  background: linear-gradient(180deg, rgba(var(--a-rgb), 0.85), rgba(var(--a-rgb), 0.18) 60%);
  clip-path: var(--cut-14);
}
.pc-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px 18px 22px;
  background:
    linear-gradient(180deg, rgba(var(--a-rgb), 0.17), rgba(var(--a-rgb), 0.02) 46%),
    #06141c;
  clip-path: var(--cut-14);
}
.pc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-top h3 {
  margin: 0;
  font: 800 24px/1 var(--font-display);
}
.pc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: rgba(var(--a-rgb, 25, 211, 255), 0.14);
  color: rgb(var(--a-rgb, 25, 211, 255));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.pc-chip {
  margin-left: auto;
  padding: 6px 9px;
  background: var(--a);
  color: #02131a;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.pc-lead {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}
.pc-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 10, 16, 0.55);
}
.pc-box strong {
  color: var(--text);
  font: 600 15px/1.3 var(--font-body);
}
.pc-box span {
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.35;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 0;
}
.pc-price b {
  color: var(--text);
  font: 800 46px/1 var(--font-display);
}
.pc-price span {
  color: var(--text-subtle);
  font-size: 15px;
}
.pc-under {
  margin: -6px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
}
.pc-list {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 10, 16, 0.4);
}
.pc-list--hot {
  border-color: rgba(var(--a-rgb), 0.35);
  background: rgba(var(--a-rgb), 0.07);
}
.pc-list h4 {
  margin: 0 0 10px;
  color: rgb(var(--a-rgb));
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.pc-list ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-list li {
  display: flex;
  gap: 9px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.pc-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: rgb(var(--a-rgb));
}
.pc-list--off h4,
.pc-list--off .icon {
  color: var(--text-subtle);
}
.pc-list--off li {
  color: var(--text-subtle);
}

/* the buttons: each plan's colours flow through it under the mouse, and flash on a click */
.plan-btn-glow {
  display: block;
  filter: drop-shadow(0 0 0 rgba(var(--a-rgb, 25, 211, 255), 0));
  transition: filter var(--dur) var(--ease-out);
}
.plan-btn-glow:hover,
.plan-btn-glow:focus-within {
  filter: drop-shadow(0 0 14px rgba(var(--a-rgb, 25, 211, 255), 0.65));
}
.plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: linear-gradient(100deg, var(--a, var(--cyan)), var(--a2, #5aa9ff), var(--a3, #37efb8), var(--a, var(--cyan)));
  background-size: 300% 100%;
  color: #02131a;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  clip-path: var(--cut-10);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.plan-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  animation: plan-flow 1.8s linear infinite;
}
.plan-btn:active:not(:disabled) {
  transform: scale(0.97);
  filter: brightness(1.3) saturate(1.2);
}
.plan-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #02131a, inset 0 0 0 4px #fff;
}
.plan-btn.is-busy {
  cursor: progress;
  animation: plan-flow 1.1s linear infinite;
}
.plan-btn:disabled:not(.is-busy) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-subtle);
  cursor: default;
}
.plan-btn [data-plan-label] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@keyframes plan-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.plan-spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(2, 19, 26, 0.3);
  border-top-color: #02131a;
  border-radius: 50%;
  animation: plan-spin 0.7s linear infinite;
}
@keyframes plan-spin {
  to { transform: rotate(360deg); }
}

/* in every plan */
.plans-every {
  margin-top: 16px;
  padding: 20px 20px 22px;
  border: 1px solid var(--border);
  background: rgba(7, 25, 34, 0.6);
}
.plans-every h3 {
  margin: 0 0 16px;
  font: 700 18px/1.2 var(--font-display);
}
.plans-every ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plans-every li {
  display: flex;
  gap: 12px;
}
.plans-every strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font: 600 14px/1.3 var(--font-body);
}
.plans-every span {
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.4;
}
.plans-note {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.plans-note a,
.plan-confirm-note a {
  color: var(--text-muted);
}
.plans-note a:hover,
.plan-confirm-note a:hover {
  color: var(--cyan);
}
@media (max-width: 959.98px) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }
  .plans-every {
    max-width: 520px;
    margin-inline: auto;
  }
  .plans-every ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .pc-lead {
    min-height: 0;
  }
}
@media (max-width: 599.98px) {
  .plans-x {
    top: 10px;
    right: 12px;
  }
  .plans-wrap {
    padding: 58px 16px 32px;
  }
  .plans-head {
    margin-bottom: 20px;
  }
  .plans-head p {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------- the Elite confirmation */
dialog.plan-confirm {
  --a: #19d3ff;
  --a2: #5aa9ff;
  --a3: #37efb8;
  --a-rgb: 25, 211, 255;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 1px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(180deg, rgba(25, 211, 255, 0.8), rgba(25, 211, 255, 0.18));
  color: var(--text);
  clip-path: var(--cut-14);
}
dialog.plan-confirm::backdrop {
  background: rgba(1, 5, 9, 0.72);
}
.plan-confirm-in {
  position: relative;
  max-height: calc(100dvh - 34px);
  padding: 24px 20px 20px;
  overflow-y: auto;
  background: #06141c;
  clip-path: var(--cut-14);
  animation: plans-in 240ms var(--ease-out);
}
.plans-x--in {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
}
.plan-confirm-in h2 {
  margin: 0 48px 6px 0;
  font: 800 26px/1.15 var(--font-display);
}
.plan-confirm-lead {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}
.plan-confirm-group {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.plan-confirm-group--new {
  border-color: rgba(25, 211, 255, 0.4);
  background: rgba(25, 211, 255, 0.07);
}
.plan-confirm-group h3 {
  margin: 0 0 8px;
  color: var(--text-subtle);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.plan-confirm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 15px;
}
.plan-confirm-row b {
  color: var(--text);
  font-weight: 600;
}
.plan-confirm-group small {
  display: block;
  margin-top: 6px;
  color: var(--text-subtle);
  font-size: 13px;
}
.plan-confirm-due {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.plan-confirm-due b {
  font: 700 22px/1 var(--font-display);
}
.plan-confirm-note {
  margin: 14px 0 16px;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .trial-bar,
  .plans-wrap,
  .plan-confirm-in,
  .btn:hover .icon-gift,
  .plan-btn:hover:not(:disabled) {
    animation: none;
  }
  .plan-btn.is-busy {
    animation: none;
    background-position: 50% 50%;
  }
  .trial-bar {
    transition: none;
  }
}

/* "A new plan can start when this one ends" and the Cancel plan button, in the head of the pop-up */
.plans-head .plans-rule {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 14px;
}
.plans-rule[hidden] {
  display: none;
}
.plans-cancel {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #ff8a8a;
  font: 600 14px/1.3 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.plans-cancel:hover {
  color: #ffb0b0;
}

/* ---------------------------------------------------------------- the box under the profile button */
.nav-profile-wrap {
  position: relative;
  display: inline-flex;
}
.pm {
  display: none;
}
@media (min-width: 1024px) and (hover: hover) {
  /* the pointer crosses the gap to the box without it closing */
  .nav-profile-wrap:hover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 14px;
  }
  .pm {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: 320px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(25, 211, 255, 0.75), rgba(25, 211, 255, 0.16));
    clip-path: var(--cut-14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.94);
    transform-origin: calc(100% - 44px) -12px;
    transition: opacity 0.12s ease-in 0.1s, transform 0.12s ease-in 0.1s, visibility 0s linear 0.22s;
  }
  .nav-profile-wrap:hover .pm,
  .nav-profile-wrap:focus-within .pm {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.12s ease-out, transform 0.2s var(--ease-out), visibility 0s;
  }
}
@media (min-width: 1024px) and (hover: hover) {
  /* just clicked: closed at once, whatever the pointer is on (plans.js) */
  .nav-profile-wrap.is-shut .pm,
  .nav-profile-wrap.is-shut:hover .pm,
  .nav-profile-wrap.is-shut:focus-within .pm {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.94);
    transition: none;
  }
}
.pm-in {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #06141c;
  clip-path: var(--cut-14);
}
.pm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  color: var(--text);
  text-decoration: none;
}
.pm-head:hover {
  background: rgba(25, 211, 255, 0.07);
}
.pm-head > .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-subtle);
}
.pm-pic {
  width: 44px;
  height: 44px;
  font-size: 20px;
}
.pm-who {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pm-who b {
  overflow: hidden;
  font: 700 15px/1.2 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-who small {
  color: var(--text-subtle);
  font-size: 12.5px;
}
.pm-box {
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(25, 211, 255, 0.05);
}
.pm-box-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.pm-box-top b {
  color: var(--cyan);
  font: 600 13px/1 var(--font-mono);
}
.pm-box[data-tone="warn"] .pm-box-top b {
  color: #ffc247;
}
.pm-meter {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr); /* one bar a day: 30, or 7 for the free trial */
  gap: 2px;
  margin: 10px 0 8px;
}
.pm-meter i {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.pm-meter i.on {
  background: var(--neon);
}
.pm-box[data-tone="warn"] .pm-meter i.on {
  background: #ffc247;
}
.pm-until {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12.5px;
}
.pm-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pm-go > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.pm-go .icon {
  width: 17px;
  height: 17px;
  color: var(--neon);
}
.pm-go .btn {
  flex: none;
}
.pm-links {
  display: grid;
}
.pm-links a,
.pm-out {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 500 14px/1 var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pm-links a:hover,
.pm-out:hover {
  background: rgba(25, 211, 255, 0.07);
  color: var(--text);
}
.pm-links .icon,
.pm-out .icon {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
}
.pm-links small {
  margin-left: auto;
  color: var(--text-subtle);
  font-size: 12px;
}
.pm-out {
  border-top: 1px solid var(--border);
}
.pm-out:hover,
.pm-out:hover .icon {
  color: #ff8a8a;
}
/* "Do you want to log out?" */
.pm-logout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.pm-logout-row .btn,
.pm-logout-row .plan-btn {
  min-height: 48px;
}
.pm-yes {
  background: #3a1422;
  color: #ff8a8a;
}
.pm-logout-msg {
  color: #ff8a8a;
}

/* ---------------------------------------------------------------- the account card that opens with a tap (2 Nov 2026) */
/* at the bottom of the phone menu, and at the bottom of the dashboard's own menu (plans.js mountCard) */
.pm-slot {
  padding: 1px;
  background: linear-gradient(180deg, rgba(25, 211, 255, 0.75), rgba(25, 211, 255, 0.16));
  clip-path: var(--cut-14);
}
.pm-slot[hidden] {
  display: none;
}
.nav-me-btn,
.acc-me {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  clip-path: var(--cut-10);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-me-btn:hover,
.acc-me:hover,
.nav-me-btn[aria-expanded="true"],
.acc-me[aria-expanded="true"] {
  --edge: var(--frame);
  background-color: var(--surface-2);
}
.nav-me-btn .nav-profile-pic,
.acc-me .nav-profile-pic {
  width: 34px;
  height: 34px;
}
.nav-me-btn .pm-who,
.acc-me .pm-who {
  flex: 1;
  min-width: 0;
}
.nav-me-btn > .icon,
.acc-me > .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
}
.nav-me {
  display: none;
}
@media (max-width: 1023.98px) {
  .nav-me {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  /* the card has View profile and Manage account, so "My dashboard" is not needed under it */
  .primary-nav:has(.nav-me) .nav-menu-cta.signed-only {
    display: none;
  }
  /* the card opened on a short screen: the menu scrolls instead of running off it */
  .primary-nav:has(.nav-me) {
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ---------- cut corners with a plain outline (the owner, 2026-11-03: "fix these edges") ----------
   clip-path cuts a box's outline off at its two cut corners. Two thin lines in the outline's colour (--edge), sized to
   the cut (--cut), draw the cut edges back. Their state rules change --edge (not border-color) and only the background
   colour, so the lines stay. */
.nav-me-btn,
.acc-me {
  border-color: var(--edge);
  background-image:
    linear-gradient(to bottom right, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%);
  background-position: left top, right bottom;
  background-size: var(--cut, 10px) var(--cut, 10px);
  background-repeat: no-repeat;
  background-origin: border-box;
}
.nav-me-btn,
.acc-me {
  --edge: var(--border-strong);
}

/* ---------------------------------------------------------------- the promotions (the owner, 2026-11-04) */
/* The welcome offer for visitors (10 days free for 24 hours) and the Affiliate program for clients. The box is the
   confirm box with a lime edge, so it reads as an offer rather than a question. */
dialog.promo {
  width: min(440px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(166, 255, 26, 0.8), rgba(25, 211, 255, 0.28));
}
.promo-in {
  padding: 26px 22px 20px;
  text-align: center;
}
.promo-top {
  display: flex;
  justify-content: center;
  margin: 0 40px 14px;
}
.promo-timer,
.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(166, 255, 26, 0.45);
  background: rgba(166, 255, 26, 0.08);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.promo-timer .icon,
.promo-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--neon);
}
.promo-timer-word {
  color: var(--text-subtle);
  font-size: 11px;
  text-transform: uppercase;
}
.promo-chip {
  color: var(--neon);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promo-left {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.promo-left b {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.promo-friend {
  margin: 0 0 6px;
  color: var(--neon);
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.promo-in h2 {
  margin: 0 0 10px;
  font: 800 30px/1.08 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.promo-in .plan-confirm-lead {
  max-width: 34ch;
  margin: 0 auto 16px;
}
.promo-steps {
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  list-style: none;
  text-align: left;
}
.promo-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
}
.promo-steps li + li {
  border-top: 1px solid var(--border);
}
.promo-steps span {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--frame);
  color: var(--cyan);
  font: 700 12px/1 var(--font-display);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.promo-steps b {
  display: block;
  color: var(--text);
  font: 600 14px/1.3 var(--font-body);
}
.promo-steps small {
  display: block;
  margin-top: 2px;
  color: var(--text-subtle);
  font-size: 12.5px;
  line-height: 1.4;
}
.promo-in a.plan-btn {
  text-decoration: none;
}
.plan-btn .icon {
  width: 18px;
  height: 18px;
}
.promo-later {
  display: block;
  margin: 10px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--text-subtle);
  font: 500 14px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.promo-later:hover,
.promo-later:focus-visible {
  color: var(--text);
}
.promo-small {
  margin: 6px 0 0;
  color: var(--text-subtle);
  font-size: 12px;
}
.promo-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 2px 0 8px;
}
.promo-meter i {
  height: 10px;
  background: var(--surface-3);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.promo-meter i.on {
  background: var(--neon);
}
.promo-count {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.promo-count b {
  color: var(--text);
}
.promo-link {
  display: flex;
  margin: 0 0 12px;
  border: 1px solid var(--border-strong);
  background: #041019;
}
.promo-link input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 13px/1 var(--font-mono);
}
.promo-copy {
  flex: none;
  min-width: 76px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--cyan);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.promo-copy:hover {
  background: var(--surface-3);
}
.promo-more {
  margin-top: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .promo-meter i.on {
    animation: promo-lit 0.5s var(--ease-out) both;
  }
  .promo-meter i.on:nth-child(2) { animation-delay: 0.08s; }
  .promo-meter i.on:nth-child(3) { animation-delay: 0.16s; }
  .promo-meter i.on:nth-child(4) { animation-delay: 0.24s; }
  .promo-meter i.on:nth-child(5) { animation-delay: 0.32s; }
}
@keyframes promo-lit {
  from { opacity: 0.2; transform: scaleX(0.4); }
}

/* the numbered steps, the timer and the chip of the promotion boxes: their cut corners get their own lines, as on
   every cut box of the site (clip-path cuts the outline off at the corners) */
.promo-steps span,
.promo-timer,
.promo-chip {
  border-color: var(--edge);
  background-image:
    linear-gradient(to bottom right, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%);
  background-position: left top, right bottom;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-origin: border-box;
}
.promo-steps span {
  --edge: var(--frame);
}
.promo-timer,
.promo-chip {
  --edge: rgba(166, 255, 26, 0.45);
  background-color: rgba(166, 255, 26, 0.08);
}
