/* ═══════════════════════════════════════════════════════════════
   dashboard.css — /dashboard/* client portal pages
   Uses ac-page token system (Cormorant Garamond + Inter)
═══════════════════════════════════════════════════════════════ */

/* ── Auth pages (login, setup, reset) ── */
.dash-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.dash-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-e);
  border: 1px solid var(--rule-s);
  padding: 56px 48px;
}
.dash-auth-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 40px;
  display: block;
  text-decoration: none;
}
.dash-auth-logo strong { font-style: normal; color: var(--ink); }
.dash-auth h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.dash-auth h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.dash-auth-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-dim);
  margin-bottom: 40px;
  line-height: 1.5;
}
.dash-field {
  margin-bottom: 20px;
}
.dash-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.dash-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule-s);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.dash-input::placeholder { color: var(--ink-faint); }
.dash-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.dash-btn {
  width: 100%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.dash-btn:hover { background: #E5B226; }
.dash-btn:disabled { background: var(--ink-faint); cursor: not-allowed; }
.dash-link {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}
.dash-link:hover { color: var(--gold); }
.dash-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e05c5c;
  margin-top: 10px;
  display: none;
}
.dash-error.visible { display: block; }
.dash-success {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
  display: none;
}
.dash-success.visible { display: block; }

/* ── Main dashboard ── */
.dashboard {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Entrance overlay (cinematic) */
.dash-entrance {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.dash-entrance.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dash-entrance-word {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  line-height: 1.1;
}
.dash-entrance-word em { font-style: italic; color: var(--gold); }
.dash-entrance-word.show { opacity: 1; transform: translateY(0); }
.dash-entrance-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.dash-entrance-sub.show { opacity: 1; }

/* Dashboard header */
.dash-header {
  padding: 28px 40px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-header-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--gold);
  text-decoration: none;
}
.dash-header-logo strong { font-style: normal; color: var(--ink); }
.dash-header-user {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 20px;
}
.dash-logout {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.dash-logout:hover { color: var(--gold); }

/* Dashboard body */
.dash-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

/* Left column */
.dash-sidebar {}
.dash-pkg-card {
  background: var(--bg-e);
  border: 1px solid var(--rule-s);
  padding: 36px 32px;
  margin-bottom: 24px;
}
.dash-pkg-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.dash-pkg-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.dash-pkg-name em { font-style: italic; color: var(--gold); }
.dash-pkg-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: inline-block;
}
.dash-status-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dash-status-item .key { color: var(--ink-faint); }
.dash-status-item .val { color: var(--ink); }
.dash-status-item .val.gold { color: var(--gold); }

/* Right column */
.dash-main {}
.dash-section {
  margin-bottom: 48px;
}
.dash-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.dash-section h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.dash-section h2 em { font-style: italic; color: var(--gold); }
.dash-section p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Cal.com embed */
.dash-cal-wrap {
  background: var(--bg-e);
  border: 1px solid var(--rule-s);
  min-height: 500px;
  overflow: hidden;
}

/* Steps / next actions */
.dash-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-step-row {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.dash-step-row:first-child { border-top: 1px solid var(--rule); }
.dash-step-num {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
  width: 32px;
}
.dash-step-content h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.dash-step-content p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 0;
}
.dash-step-done {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  align-self: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-header { padding: 20px 24px; }
  .dash-body { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .dash-auth-card { padding: 36px 28px; }
}
