/* The customer area (/account/, main-site/templates/account.php), on top of home.css.
   The Freemius portal itself is styled by freemius-portal.css, which Freemius loads inside the portal. The portal
   is always light, so its panel stays white in dark mode too. */

/* The tinted icon square, as docs.css draws it (docs.css is not loaded here). */
.acc .sec-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.acc .sec-icon .ico { width: 18px; height: 18px; }

.acc-hero { position: relative; isolation: isolate; padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.acc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 80% at 12% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(50% 70% at 92% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.acc-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; }
.acc-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.acc-hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.acc-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 14px; }

.acc-can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-can li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.3; box-shadow: var(--shadow-sm); }
.acc-can .ico { flex: none; width: 18px; height: 18px; color: var(--brand-ink); }

.acc-main { padding-block: 8px clamp(56px, 8vw, 96px); }
/* The card around the portal, drawn like the support ticket card (support.css .sup-card). */
.acc-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.acc-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; padding: 30px 32px 26px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%), var(--surface); }
.acc-head-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, var(--brand-hi), var(--brand) 45%, #059c80); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--brand) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4); }
.acc-head-ico .ico { width: 26px; height: 26px; }
.acc-head-text { display: grid; gap: 4px; }
.acc-card-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.acc-card-head p { font-size: 14.5px; color: var(--muted); }
.acc-head-meta { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-head-meta li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.acc-head-meta .ico { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 16%, var(--surface)); }

.acc-portal { position: relative; min-height: 400px; background: radial-gradient(55% 75% at 10% 0%, rgba(10, 210, 173, .2), transparent 70%), radial-gradient(50% 70% at 95% 100%, rgba(79, 70, 229, .1), transparent 70%), #f3f7f9; transition: height .2s ease; }
.acc-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.acc-frame.is-hidden { visibility: hidden; }
.acc-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #5f7180; font-size: 15px; font-weight: 500; background: transparent; }
.acc-loading[hidden] { display: none; }
.acc-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e3e9ef; border-top-color: #0ad2ad; animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acc-spin { animation-duration: 2.4s; } .acc-portal { transition: none; } }

.acc-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; padding: 28px; background: var(--surface); }
.acc-fail[hidden] { display: none; }
.acc-fail > div { flex: 1 1 280px; min-width: 0; }
.acc-fail h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.acc-fail p { color: var(--muted); font-size: 15px; }
.acc-noscript { padding: 28px; color: #33475b; }
.acc-noscript a { color: #047a64; font-weight: 600; }

.acc-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.acc-help li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.acc-help b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.acc-help span:not(.sec-icon) { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }
.acc-help a { color: var(--brand-ink); font-weight: 600; }

@media (max-width: 900px) {
  .acc-hero-in { grid-template-columns: 1fr; align-items: start; }
  .acc-help { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .acc-card-head { grid-template-columns: auto minmax(0, 1fr); padding: 24px 20px 20px; }
  .acc-head-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 520px) {
  .acc-can { grid-template-columns: 1fr; }
  .acc-card { border-radius: 20px; }
  .acc-head-meta li { white-space: normal; }
}
