/* Account and account settings (V/OG look) over the real account markup:
   the static ids in account.liquid / account-settings.liquid and the cards
   account-ui.js renders after sign-in. Colours come from the V/OG tokens
   (style.css), so everything follows the light/dark theme. */

/* Form field fill for the Clerk widgets, matching V's own inputs: the
   surface colour in light, the dedicated field colour in dark. */
:root {
  --account-field: var(--s);
}
[data-theme="dark"] {
  --account-field: var(--field);
}

/* Header: Clerk avatar + "Signed in as" under the subtitle. */
.account-session-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.account-session-row__button {
  display: none;
  align-items: center;
  min-height: 40px;
}
.account-session-row__button > * {
  display: flex;
  align-items: center;
}
.info-heading #account-email {
  margin: 0;
  font-size: 16px;
  color: var(--mu);
}
.info-heading #account-email:empty {
  display: none;
}
#account-welcome-name.is-founder {
  color: var(--ac);
}

#account-signup-hint,
.account-toolbar,
#account-settings-message {
  max-width: 65ch;
  margin: 0 auto 32px;
  text-align: center;
}
#account-signup-hint,
#account-settings-message {
  color: var(--mu);
}

/* Status messages (no purchases, session expired, download errors). */
.account-message {
  margin: 0 0 24px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--s);
  font-size: 16px;
}
.account-message--warning {
  border-left-color: var(--ac);
}

/* Founder perks / sitewide offers. */
.account-offer .founder-badge {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
}
.account-founder-offer {
  margin: 16px 0;
}
.information-main .account-founder-offer-title,
.information-main .account-founder-promo-title {
  margin: 0 0 8px;
}
.account-founder-offer-list {
  margin: 0 0 16px;
  padding-left: 24px;
}
.information-main .account-founder-promo-copy {
  color: var(--mu);
  font-size: 16px;
}
.account-founder-code {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--ac);
  border-radius: 99px;
  background: color-mix(in srgb, var(--ac) 14%, transparent);
  color: var(--text-ink);
  font: 700 16px/1.2 var(--body-font);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.account-founder-code:hover {
  background: var(--ac);
  color: #fff;
}
@keyframes account-code-flash {
  0% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 45%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.account-founder-code.is-flash,
.account-copy-btn.is-flash {
  animation: account-code-flash 0.6s ease-out;
}

/* "Click to copy" / "Copied!" tooltip that follows the pointer. */
.account-code-tooltip {
  position: fixed;
  z-index: 1000;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: 700 12px/1.4 var(--body-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.95);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.account-code-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 16px)) scale(1);
}

/* "Your tools" library. */
#account-purchases label {
  display: block;
  font-weight: 600;
}
.information-main #account-status {
  min-height: 1.65em;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--mu);
}

/* Product cards: V/OG collection cards with the account actions at the
   bottom, aligned across a row. */
.account-card {
  gap: 12px;
}
.account-card > * {
  margin: 0;
}
.account-card > .collection-image {
  margin-bottom: 12px;
}
.account-card .account-card-title {
  margin: 0;
}
.information-main .account-card-meta {
  margin: 0;
  font-size: 14px;
}
.account-card-meta + * {
  margin-top: auto;
}
.information-main .account-card-license {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mu);
}

/* Two licences while the plug-ins move from V1 to V2: the V2 line leads,
   the V1 one stays quieter underneath. One licence keeps a single button. */
.account-card-licenses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-license-note {
  font-size: 13px;
  color: var(--mu);
}
.account-license-note--current {
  color: var(--text-ink);
  font-weight: 600;
}

/* Account buttons are <button>s as well as <a>s: reset the browser button
   look so both match V's .btn / .btn.ghost. */
.account-main button.btn {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.account-card .btn {
  width: 100%;
  font-size: 16px;
}
.account-copy-btn--legacy.btn {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--mu);
}
.account-pack-download-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.account-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 16px;
}

/* Clerk widgets (sign-in, sign-up, user profile). Classes come from
   appearance.elements in account-ui.js / account-settings-ui.js; the
   !important beats the styles Clerk injects after this file. */
#sign-in,
#clerk-user-profile-mount {
  display: flex;
  justify-content: center;
}
.account-clerk-card-box {
  max-width: 100%;
  background: var(--s) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}
.account-clerk-card,
.account-clerk-footer,
.account-clerk-footer-action {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.account-clerk-logo {
  height: 60px;
  width: auto;
  filter: var(--logof);
  mix-blend-mode: var(--logob);
}
.account-clerk-btn--primary {
  background: var(--btn) !important;
  color: var(--btnfg) !important;
  border: 0 !important;
  border-radius: 99px !important;
  box-shadow: none !important;
}
.account-clerk-btn--primary:hover,
.account-clerk-btn--primary:focus-visible {
  background: var(--btnh) !important;
  color: var(--btnhfg) !important;
}

#clerk-user-profile-mount + .info-surface {
  margin-top: 48px;
}

@media (max-width: 600px) {
  .account-card-links {
    gap: 16px;
  }
}
