/* ============================================================================
   PTM Clearwork - Customer & Licensing Portal Styles
   Design language: Lemon Squeezy inspired (Unified Design System)
     - Saturated violet (#5423e7) hero & CTA blocks
     - Lemon yellow (#ffc233) as the single loud accent
     - Light body alternating white / smoke-white, one near-black block
     - Geometric display type (Outfit) with tight tracking
     - High-legibility body type (Inter)
     - Full-pill buttons, generous radii, flat surfaces + hairline borders
     - Shared website foundations with portal-specific account layouts
   ========================================================================= */

/* Portal-only tokens; shared foundations live in design-system.css. */
:root { --red-100: #ffe0e7; --red-500: #f53d6b; --red-600: #e01a4c; --red-700: #b3123a; --on-red: #b3123a; color-scheme: light; }
/* ---------- Ground rules: dark blocks re-point the semantic tokens ---- */
.hero,
.doc-hero,
.band,
.sec-purple,
.sec-ink,
.cta,
.site-footer {
  --text:       var(--white);
  --muted:      rgba(255, 255, 255, 0.82);
  --muted-2:    rgba(255, 255, 255, 0.68);
  --surface:    rgba(255, 255, 255, 0.06);
  --surface-2:  rgba(255, 255, 255, 0.10);
  --hairline:   rgba(255, 255, 255, 0.14);
  --hairline-2: rgba(255, 255, 255, 0.24);
  --brand-soft: rgba(255, 255, 255, 0.10);
  --accent-text: var(--yellow-500);
  --ok-text:    var(--green-400);
  --grad:       linear-gradient(96deg, var(--yellow-300), var(--yellow-500));
  color: var(--text);
}

.sec-white  { background: var(--white); }
.sec-smoke  { background: var(--smoke); }
.sec-lemon  { background: var(--yellow-100); }
.sec-purple { background: var(--purple-600); }
.sec-ink    { background: var(--ink); }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: var(--page);
}
body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow-300); color: var(--ink); }

.hidden { display: none !important; }

/* ---------- Layout Containers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.section-head { max-width: 780px; margin: 0 0 40px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Eyebrow Label */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.hero .eyebrow,
.doc-hero .eyebrow,
.sec-purple .eyebrow,
.sec-ink .eyebrow { color: rgba(255, 255, 255, 0.84); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.022em; line-height: 1.25; }
h4 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.015em; }
p  { color: var(--muted); }
.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.012em;
}
strong, b { font-weight: 600; color: var(--text); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.link-button {
  color: var(--purple-600);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-button:hover {
  color: var(--purple-700);
  text-decoration: underline;
}
.link-button.micro-link {
  font-size: var(--fs-xs);
}
.link-button.inline-link {
  font-weight: 600;
  display: inline;
}

/* Spinner inside busy button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* User profile chip in header */
.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: inherit;
  max-width: 220px;
}
.site-header.scrolled .user-profile-chip {
  background: var(--purple-50);
  border-color: var(--purple-200);
  color: var(--purple-900);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.user-email-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Document Hero Header ---------- */
.doc-hero {
  position: relative;
  padding: 152px 0 88px;
  background: var(--purple-600);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.doc-hero::before {
  content: "";
  position: absolute; inset: -40% -12% auto -12%; height: 150%;
  background:
    radial-gradient(42rem 24rem at 88% -10%, rgba(255, 194, 51, 0.32), transparent 64%),
    radial-gradient(46rem 28rem at 2% 10%,  rgba(207, 117, 255, 0.32), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.doc-hero h1 { max-width: 24ch; margin-bottom: 16px; color: var(--white); font-weight: 400; }
.doc-hero .lead { max-width: 62ch; color: rgba(255, 255, 255, 0.88); }

/* ---------- Floating Notice Banner Toast ---------- */
.notice-wrapper {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  z-index: 100;
  pointer-events: none;
}
.notice {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideDown .25s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.notice.success {
  background: rgba(223, 248, 234, 0.98);
  color: var(--on-green);
  border: 1px solid rgba(45, 202, 114, 0.5);
}
.notice.error {
  background: rgba(255, 224, 231, 0.98);
  color: var(--on-red);
  border: 1px solid rgba(245, 61, 107, 0.5);
}

/* ---------- Account entry ---------- */
.auth-section {
  padding: 132px 0 80px;
  background: var(--purple-50);
}
.auth-body-container {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 400px);
  justify-content: center;
  align-items: start;
  gap: 64px;
  position: relative;
  z-index: 10;
}

/* Auth Card */
.auth-card-single {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  position: relative;
  transition: all .25s ease;
}
/* Segmented Pill Toggle */
.auth-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 28px;
  padding: 5px;
  border-radius: var(--pill);
  background: var(--smoke);
  border: 1px solid var(--grey-200);
}
.auth-toggle-btn {
  flex: 1;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--grey-500);
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.auth-toggle-btn.active {
  background: var(--purple-600);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(84, 35, 231, 0.32);
}

.auth-pane-head {
  margin-bottom: 24px;
}
.auth-pane-head h2 {
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.auth-card-desc {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.5;
}

/* Forms & Modern Inputs with SVG Icons */
form {
  display: grid;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--grey-700);
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--grey-500);
  pointer-events: none;
  transition: color .2s ease;
}
.input-with-icon input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  min-height: 48px;
  padding: 12px 48px 12px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-with-icon input:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.16);
}
.input-with-icon:focus-within .input-icon {
  color: var(--purple-600);
}
.input-with-icon input::placeholder {
  color: var(--grey-500);
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: 0.05em;
}

/* Password visibility toggle button */
.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  padding: 6px;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .18s ease;
}
.pwd-toggle-btn:hover {
  color: var(--purple-600);
}
.pwd-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Password Strength Meter */
.pwd-meter-wrap {
  width: 100%;
  height: 4px;
  background: var(--grey-100);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.pwd-meter-bar {
  height: 100%;
  width: 0%;
  transition: width .25s ease, background-color .25s ease;
}
.pwd-meter-bar.weak   { width: 25%; background: var(--red-500); }
.pwd-meter-bar.fair   { width: 50%; background: var(--orange-500); }
.pwd-meter-bar.good   { width: 75%; background: var(--yellow-500); }
.pwd-meter-bar.strong { width: 100%; background: var(--green-500); }

.pwd-checklist {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pwd-check-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.pwd-check-item .check-icon {
  width: 13px;
  height: 13px;
  opacity: 0.4;
  transition: opacity .2s ease, stroke .2s ease;
}
.pwd-check-item.valid {
  color: var(--on-green);
  font-weight: 500;
}
.pwd-check-item.valid .check-icon {
  opacity: 1;
  stroke: var(--green-600);
}

/* Trial Guarantee Pill */
.auth-guarantee-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--yellow-100);
  border: 1px solid rgba(255, 194, 51, 0.5);
  font-size: var(--fs-xs);
  color: var(--on-amber);
  font-weight: 500;
}
.auth-guarantee-pill svg {
  width: 16px;
  height: 16px;
  color: var(--yellow-700);
  flex-shrink: 0;
}

/* Auth Card Footer */
.auth-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.auth-card-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.auth-switch-note {
  font-size: var(--fs-sm);
  color: var(--grey-500);
}

/* ---------- Right Side: Platform Journey & Trust Badges ---------- */
.auth-journey {
  padding: 32px 0;
}
.auth-journey h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--ink);
}
.auth-journey ol {
  display: grid;
  gap: 20px;
  padding: 0;
  margin-bottom: 28px;
}
.auth-journey li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.auth-journey li > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
  font-weight: 700;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--purple-200);
}
.auth-journey li div b {
  font-size: var(--fs-base);
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.auth-journey li div p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
}

.auth-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-100);
}
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--grey-700);
}
.auth-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--purple-600);
  flex-shrink: 0;
}

/* ---------- Authenticated Portal View ---------- */
.portal-shell {
  padding-top: 108px;
  padding-bottom: 80px;
}

/* Executive Dashboard Hero */
.portal-hero {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lift);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.portal-hero::before {
  content: "";
  position: absolute; right: -5%; top: -30%; width: 50%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(255, 194, 51, 0.22), transparent 70%);
  pointer-events: none;
}
.portal-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.portal-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  font-weight: 400;
}
.portal-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}
.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Pulsating Live Dot */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(45, 202, 114, 0.2);
  border: 1px solid rgba(45, 202, 114, 0.45);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--green-400);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 rgba(86, 217, 144, 0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(86, 217, 144, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(86, 217, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(86, 217, 144, 0); }
}

/* 4-Column Metric Cards Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-icon svg { width: 22px; height: 22px; }
.metric-icon-purple { background: var(--purple-50); color: var(--purple-600); }
.metric-icon-green  { background: var(--green-100); color: var(--green-700); }
.metric-icon-blue   { background: var(--blue-100); color: var(--blue-700); }
.metric-icon-gold   { background: var(--yellow-100); color: var(--yellow-700); }

.metric-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.metric-value-gold  { color: var(--on-amber); }
.metric-value-green { color: var(--on-green); }

.metric-caption {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
}

.metric-progress-track {
  width: 100%;
  height: 6px;
  background: var(--grey-100);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 2px;
}
.metric-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-600));
  border-radius: 3px;
  transition: width .4s ease;
}

/* Prominent Cloud Status Alert Banner */
.cloud-status-banner {
  background: var(--white);
  border: 1px solid var(--purple-200);
  border-left: 5px solid var(--purple-600);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.cloud-status-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--purple-600);
}
.cloud-status-badge svg { width: 15px; height: 15px; }
.cloud-status-content h3 {
  font-size: 1.25rem;
  color: var(--ink);
}
.cloud-status-content p {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 70ch;
}
.cloud-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Two-Column Panels (Activation + Deployments) */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.panel h2 {
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.panel-sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.hint {
  font-size: var(--fs-xs);
  color: var(--grey-500);
  margin-top: 14px;
  line-height: 1.45;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active {
  background: var(--green-100);
  color: var(--on-green);
  border: 1px solid rgba(45, 202, 114, 0.4);
}
.badge.trial {
  background: var(--yellow-100);
  color: var(--on-amber);
  border: 1px solid rgba(255, 194, 51, 0.5);
}
.badge.neutral {
  background: var(--grey-100);
  color: var(--on-grey);
  border: 1px solid var(--grey-200);
}

/* Record Lists (Deployments, Subscriptions, Payments) */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--smoke);
  border: 1px solid var(--grey-100);
  transition: background .18s ease;
}
.record-item:hover {
  background: var(--white);
  border-color: var(--grey-200);
}
.record-item-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  background: var(--smoke);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--grey-200);
}
.record-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--grey-700);
  transition: all .18s ease;
}
.copy-btn:hover {
  border-color: var(--purple-400);
  color: var(--purple-600);
}
.copy-btn svg { width: 12px; height: 12px; }

/* Micro Icons */
.micro-ic { width: 13px; height: 13px; }

/* Dedicated Support Hub */
.support-hub-panel {
  margin-bottom: 36px;
}
.support-hub-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}
.support-hub-info h2 {
  font-size: 1.65rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.support-hub-info p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
}
.support-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.support-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.support-feature-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.support-feature-item strong {
  display: block;
  font-size: var(--fs-xs);
  margin-bottom: 2px;
}
.support-feature-item p {
  font-size: var(--fs-2xs);
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.support-hub-actions-box {
  background: var(--smoke);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.support-box-badge {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-600);
  margin-bottom: 6px;
}
.support-hub-actions-box h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.support-hub-actions-box p {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 16px;
}
.support-links-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: var(--fs-xs);
}
.support-links-quick a {
  color: var(--purple-600);
  font-weight: 500;
}
.support-links-quick a:hover {
  text-decoration: underline;
}

/* ---------- Plans & Subscriptions Grid (Matching website/pricing.html) ---------- */
.prices {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
}
.price {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.price:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price.popular {
  border-color: var(--purple-400);
  box-shadow: var(--shadow-lift);
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--yellow-500);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: var(--pill);
  box-shadow: 0 2px 8px rgba(255, 194, 51, 0.4);
}
.price h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.p-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  min-height: 42px;
  margin-bottom: 16px;
}
.amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.amount .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.amount .per {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.p-sub {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--purple-600);
  margin-bottom: 20px;
}
.price ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--grey-700);
  line-height: 1.45;
}
.price li svg {
  width: 16px;
  height: 16px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 3px;
}
.price-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* ---------- History Section ---------- */
.history {
  margin-top: 36px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .auth-body-container { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
  .support-hub-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .two-column { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .support-features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .portal-hero { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .portal-hero-actions { width: 100%; }
  .cloud-status-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cloud-status-actions { width: 100%; justify-content: flex-start; }
}

/* Account entry and recovery use the same form proportions. */
.auth-hero .container { max-width: 1032px; }
.auth-hero h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.auth-hero .lead { max-width: 58ch; }
.auth-pane-head .eyebrow { font-size: 11px; margin-bottom: 10px; }
.auth-card-single { scroll-margin-top: 100px; }
.user-profile-chip { background: var(--purple-50); border-color: var(--purple-200); color: var(--purple-900); }
.notice { border-radius: var(--radius-sm); overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .auth-section { padding-top: 108px; }
  .auth-body-container { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 24px; }
  .auth-hero .container { max-width: 560px; }
  .auth-card-single { padding: 24px; }
  .auth-journey { padding: 12px 0; }
  .user-profile-chip { max-width: 130px; }
}
@media (max-width: 480px) {
  .auth-section { padding-top: 96px; }
  .auth-body-container, .auth-hero .container { padding-inline: 16px; }
  .auth-card-single { padding: 24px 20px; border-radius: 20px; }
  .auth-toggle-btn { padding-inline: 8px; }
  .auth-pane-head h2 { font-size: 1.6rem; }
  .label-row { gap: 12px; flex-wrap: wrap; }
  .user-profile-chip { max-width: 96px; }
}

.recovery-section { padding-top: 120px; padding-bottom: 80px; }
.recovery-card { margin: 0 auto; max-width: 520px; }

@media (max-width: 360px) { .auth-toggle-btn { font-size: 14px; padding-inline: 6px; } }

.notice-icon { width: 20px; height: 20px; flex-shrink: 0; }
.portal-eyebrow { color: var(--yellow-400); }
.progress-full { width: 100%; }
.spaced-field { margin-top: 1.25rem; }
.spaced-actions { margin-top: 1rem; }
.diagnostics-action { margin-top: 8px; }
.products-section { margin-top: 48px; }
