/* Motion Life - small additions on top of the original theme:
   chrome wordmark nav, chrome/ghost buttons, status badges, focus ring. */

/* Nav wordmark (replaces the purple shop icon) */
.gk-nav__brand { display: inline-flex; align-items: center; }
.gk-nav__wordmark {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}
@media (max-width: 960px) { .gk-nav__wordmark { height: 28px; } }
/* Light pages (product/cart/status/vouches): wordmark stays readable on the pill */
html.grok-theme:has(.gk-cart) .gk-nav__wordmark,
html.grok-theme:has(.gk-status) .gk-nav__wordmark,
html.grok-theme:has(.gk-vouch) .gk-nav__wordmark,
html.grok-theme:has(.gk-legal) .gk-nav__wordmark,
html.grok-theme:has(.gk-account) .gk-nav__wordmark {
  filter: invert(1) contrast(1.2);
}
.gk-nav-drawer__btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* Buttons */
.gk-btn,
a.gk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  min-width: 170px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Bitcount Prop Single", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s, background 0.18s, border-color 0.18s;
}
.gk-btn--chrome,
a.gk-btn--chrome {
  background: linear-gradient(165deg, #fff 0%, #e8e8e8 18%, #bdbdbd 38%, #f5f5f5 52%, #8f8f8f 72%, #d6d6d6 88%, #fafafa 100%);
  color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.5);
}
.gk-btn--chrome:hover { filter: brightness(1.08); transform: translateY(-1px); color: #0a0a0a; }
.gk-btn--ghost,
a.gk-btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8e8ee;
}
.gk-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.34); color: #fff; }

/* Status badge (category popups: "NEW APP" etc.) */
.gk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  margin: 0.35rem 0;
  border-radius: 999px;
  border: 1px solid currentColor;
  font: 700 0.68rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gk-badge--ok { color: #3ddc84; background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.35); }
.gk-badge--warn { color: #f5b942; background: rgba(245, 185, 66, 0.12); border-color: rgba(245, 185, 66, 0.35); }
.gk-badge--bad { color: #ff5c67; background: rgba(255, 92, 103, 0.12); border-color: rgba(255, 92, 103, 0.35); }
.gk-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* Keyboard focus */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Plan picker on the original white product panel ---------- */
.gk-product__panel {
  --gk-void-4: #f4f4f6;
  --gk-line: rgba(0, 0, 0, 0.08);
  --gk-line-strong: rgba(0, 0, 0, 0.14);
  --gk-text: #0b0b0d;
  --gk-text-2: #3a3a44;
  --gk-text-3: #6b6b78;
  --gk-chrome: #111;
  --gk-chrome-dark: #9a9aa6;
  --gk-ok: #15914f; --gk-ok-dim: rgba(21, 145, 79, 0.1);
  --gk-warn: #b7791f; --gk-warn-dim: rgba(183, 121, 31, 0.1);
  --gk-bad: #d23b46; --gk-bad-dim: rgba(210, 59, 70, 0.08);
  --gk-r: 12px;
  --gk-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gk-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}
.gk-product__panel .gk-plan { background: #fff; color: #0b0b0d; }
.gk-product__panel .gk-plan:hover:not(:disabled) { background: #f6f6f8; border-color: rgba(0, 0, 0, 0.3); }
.gk-product__panel .gk-plan[aria-checked="true"] { background: #0b0b0d; color: #fff; border-color: #0b0b0d; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__radio { border-color: #fff; }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__price s { color: rgba(255, 255, 255, 0.55); }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__save { background: rgba(61, 220, 132, 0.18); color: #3ddc84; }
.gk-product__panel .gk-btn--chrome { background: #0b0b0d; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.gk-product__panel .gk-btn--chrome:hover { background: #fff; color: #0b0b0d; border-color: #0b0b0d; filter: none; }
.gk-product__panel .gk-btn--ghost { background: #fff; color: #0b0b0d; border-color: #0b0b0d; }
.gk-product__panel .gk-btn--ghost:hover { background: #0b0b0d; color: #fff; }
.gk-product__panel .gk-stepper { background: #fff; }
.gk-btn--lg { min-height: 58px; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.gk-btn--block { display: flex; width: 100%; }
.gk-btn--sm { min-height: 36px; min-width: 0; padding: 0 0.95rem; font-size: 0.85rem; }
.gk-btn:disabled { opacity: 0.45; transform: none; filter: none; cursor: not-allowed; }
.gk-badge--none { color: #9a9aa8; background: rgba(154, 154, 168, 0.1); border-color: rgba(154, 154, 168, 0.28); }
@media (max-width: 480px) {
  .gk-plan { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .gk-plan__tag { grid-column: 2; grid-row: 2; justify-self: start; }
  .gk-plan__price { grid-column: 3; grid-row: 1 / span 2; }
}
.gk-label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gk-text-3);
}
.gk-hint { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--gk-text-3); }
.gk-hint b { color: var(--gk-text); font-weight: 600; }
.gk-error { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--gk-bad); }


.gk-captcha { margin: 0.75rem 0 0; }
altcha-widget {
  --altcha-color-base: var(--gk-void-4);
  --altcha-color-border: var(--gk-line-strong);
  --altcha-color-text: var(--gk-text);
  --altcha-color-border-focus: #fff;
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
  color-scheme: dark;
}

.gk-stepper {
  display: inline-grid;
  grid-template-columns: 44px 56px 44px;
  height: 44px;
  border: 1px solid var(--gk-line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gk-void-4);
}
.gk-stepper button {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--gk-chrome);
  cursor: pointer;
}
.gk-stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.gk-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.gk-stepper input {
  width: 100%;
  border: 0;
  border-inline: 1px solid var(--gk-line);
  background: transparent;
  color: var(--gk-text);
  text-align: center;
  font: 600 1rem var(--gk-font-mono);
  -moz-appearance: textfield;
}
.gk-stepper input::-webkit-outer-spin-button,
.gk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


.gk-buy { margin-top: 1.1rem; }
.gk-buy__group { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.gk-buy__group legend { float: none; width: auto; padding: 0; }
.gk-plans { display: grid; gap: 0.5rem; }
.gk-plan {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding: 0.6rem 1rem;
  text-align: left;
  border-radius: var(--gk-r);
  border: 1px solid var(--gk-line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--gk-text);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.gk-plan:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.05); }
.gk-plan[aria-checked="true"] {
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.gk-plan:disabled { opacity: 0.5; cursor: not-allowed; }
.gk-plan__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gk-chrome-dark); display: grid; place-items: center; }
.gk-plan[aria-checked="true"] .gk-plan__radio { border-color: #fff; }
.gk-plan[aria-checked="true"] .gk-plan__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.gk-plan__name { font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.gk-plan__tag { justify-self: end; }
.gk-plan__save {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--gk-ok-dim);
  color: var(--gk-ok);
  font: 700 0.72rem var(--gk-font-mono);
}
.gk-plan__price { display: flex; align-items: baseline; gap: 0.45rem; justify-self: end; font-variant-numeric: tabular-nums; }
.gk-plan__price b { font-weight: 700; font-size: 1.02rem; }
.gk-plan__price s { font-size: 0.8rem; color: var(--gk-text-3); }
.gk-plan__desc { grid-column: 2 / -1; font-size: 0.8rem; color: var(--gk-text-3); }

.gk-buy__qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 0.25rem; }
.gk-buy__qty .gk-label { margin: 0; }
.gk-addons { display: grid; gap: 0.5rem; }
.gk-addon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--gk-r);
  border: 1px solid var(--gk-line);
  background: rgba(255, 255, 255, 0.02);
}
.gk-addon__img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.gk-addon__name { margin: 0; font-weight: 600; font-size: 0.9rem; }
.gk-addon__desc { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--gk-text-3); white-space: pre-line; }
.gk-addon__price { font-family: var(--gk-font-mono); font-size: 0.85rem; }
.gk-buy__ctas { display: grid; gap: 0.6rem; margin-top: 1.1rem; }


.gk-alert {
  margin: 0.75rem 0;
  padding: 0.8rem 1rem;
  border-radius: var(--gk-r);
  border: 1px solid;
  font-size: 0.9rem;
  line-height: 1.45;
}
.gk-alert--warn { color: var(--gk-warn); border-color: rgba(245, 185, 66, 0.35); background: var(--gk-warn-dim); }
.gk-alert--bad { color: #ffb3b8; border-color: rgba(255, 92, 103, 0.35); background: var(--gk-bad-dim); }


/* Homepage catalog heading centred */
.gk-catalog__header { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Referral line in the product buy panel */
.gk-product__refer {
  display: block;
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #3a3a44;
  text-decoration: none;
}
.gk-product__refer strong { color: #0b0b0d; }
.gk-product__refer:hover { border-color: #0b0b0d; color: #0b0b0d; }

/* Category popups: every product visible without scrolling (desktop) */
@media (min-width: 901px) {
  .gk-group-modal .modal-body { overflow: visible !important; }
  .gk-group-modal .big-image-popup-grid {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1rem !important;
  }
  .gk-group-modal .big-image-container {
    aspect-ratio: auto !important;
    height: min(46vh, 380px) !important;
  }
  .gk-group-modal .big-image-text-content { padding-top: 0.6rem !important; padding-bottom: 0.8rem !important; }
  /* 6+ products: two rows of 4, shorter art */
  .gk-group-modal .big-image-popup-grid:has(> :nth-child(6)) {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .gk-group-modal .big-image-popup-grid:has(> :nth-child(6)) .big-image-container { height: min(22vh, 200px) !important; }
}
.gk-plan__best {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0b0b0d;
  color: #fff;
  font: 800 0.62rem/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__best { background: #fff; color: #0b0b0d; }
.gk-plan:has(.gk-plan__best) .gk-plan__radio { grid-row: 1 / span 2; }
.gk-plan:has(.gk-plan__best) .gk-plan__name { align-self: end; }

/* Status badge sits on the product art, top-right */
.gk-group-modal .big-image-popup-card { position: relative !important; }
.gk-group-modal .big-image-text-content { position: static !important; }
.gk-group-modal .big-image-popup-card .gk-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  background: rgba(6, 20, 12, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Lifetime framing: only Lifetime shows a slash/discount when a Lifetime plan exists */
.gk-plan.is-plain .gk-plan__save,
.gk-plan.is-plain .gk-plan__price s { display: none !important; }
.gk-plan__note {
  grid-column: 2 / -1;
  grid-row: 3;
  font-size: 0.72rem;
  font-weight: 600;
  color: #15914f;
}
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__note { color: #3ddc84; }
.gk-plan.is-life { min-height: 72px; }
/* per-day line on every timed plan */
.gk-plan__note { grid-row: auto; color: #6b6b78; font-weight: 600; }
.gk-plan.is-life .gk-plan__note { color: #15914f; }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__note { color: rgba(255, 255, 255, 0.7); }
.gk-product__panel .gk-plan.is-life[aria-checked="true"] .gk-plan__note { color: #3ddc84; }
/* plan row: fixed placement so extra lines never push the price around */
.gk-product__panel .gk-plan {
  grid-template-columns: 18px minmax(0, 1fr) auto auto !important;
  grid-auto-rows: auto;
  row-gap: 3px !important;
}
.gk-product__panel .gk-plan .gk-plan__radio { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.gk-product__panel .gk-plan .gk-plan__name { grid-column: 2; grid-row: 1; align-self: end; }
.gk-product__panel .gk-plan .gk-plan__best { grid-column: 2; grid-row: 2; }
.gk-product__panel .gk-plan .gk-plan__note { grid-column: 2; grid-row: 3; align-self: start; }
.gk-product__panel .gk-plan .gk-plan__tag { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
.gk-product__panel .gk-plan .gk-plan__price { grid-column: 4; grid-row: 1 / span 3; align-self: center; }
.gk-product__panel .gk-plan .gk-plan__desc { grid-column: 2 / -1; grid-row: 4; }
@media (max-width: 480px) {
  .gk-product__panel .gk-plan .gk-plan__tag { grid-column: 4; grid-row: 1; align-self: end; justify-self: end; }
  .gk-product__panel .gk-plan .gk-plan__price { grid-row: 2 / span 2; align-self: start; }
}
@media (max-width: 480px) {
  .gk-product__panel .gk-plan:not(:has(.gk-plan__tag)) .gk-plan__price,
  .gk-product__panel .gk-plan.is-plain .gk-plan__price { grid-row: 1 / span 3; align-self: center; }
}
/* Upgrade credit (assets/upgrades.js): plan status chip, upgrade price, account "Your plans" card */
.gk-plan__up {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  font: 800 0.62rem/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gk-plan__up.is-owned { background: #ececf0; color: #3a3a44; }
.gk-plan__up.is-active,
.gk-plan__up.is-upgrade { background: rgba(21, 145, 79, 0.12); color: #15914f; }
.gk-product__panel .gk-plan .gk-plan__up { grid-column: 2; grid-row: 2; }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__up.is-owned { background: rgba(255, 255, 255, 0.16); color: #fff; }
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__up.is-active,
.gk-product__panel .gk-plan[aria-checked="true"] .gk-plan__up.is-upgrade { background: rgba(61, 220, 132, 0.18); color: #3ddc84; }
.gk-plan.is-owned .gk-plan__price { opacity: 0.4; }
.gk-plans .gk-plan.is-plain .gk-plan__price--up s,
.gk-plans .gk-plan .gk-plan__price--up s { display: inline !important; }
.gk-buy__up-hint {
  margin: -0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: #15914f;
}

.gk-plans-card { margin-bottom: 1rem; }
.gk-plans-card__list { list-style: none; margin: 0; padding: 0; }
.gk-plans-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.gk-plans-card__row:first-child { border-top: 0; padding-top: 0.15rem; }
.gk-plans-card__row:last-child { padding-bottom: 0; }
.gk-plans-card__name { margin: 0; font-weight: 700; font-size: 0.95rem; color: #0a0a0a; }
.gk-plans-card__status { margin: 0.2rem 0 0; font-size: 0.8rem; color: #6b6b78; }
.gk-plans-card__status.is-live { color: #15914f; font-weight: 600; }
.gk-plans-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.gk-plans-card__error { margin: 0.75rem 0 0; font-size: 0.8rem; font-weight: 600; color: #d23b46; }
@media (max-width: 560px) {
  .gk-plans-card__row { grid-template-columns: 1fr; }
  .gk-plans-card__actions { justify-content: flex-start; }
}

/* Upgrade credit: struck list price above the upgrade price in the product header. */
.gk-product__price-was {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.4);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}