/* =========================================================
   DASHBOARD PAGE LAYOUT (dashboard.html only)
   One column: Profile on top, then the rose account zone.
   ========================================================= */
.dash-page { max-width: 720px; }
.dash-page > .card-light,
.dash-page > .zone { margin-bottom: 16px; }
.dash-page > .zone { color: #f5f2f2; }
.dash-page > .zone .stripe-box { color: #1d0b0b; }
.dash-page .plan { color: #14147a; border-color: #14147a; transition: box-shadow .15s, border-color .15s; }
.dash-page .plan:hover { border-color: #3434ff; }
.dash-page .plan b { line-height: 1.35; }
.dash-page .plan span { color: #14147a; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* ---- Profile ---- */
.dash-profile h2 { margin-bottom: 10px; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
/* the blue square = the picture itself, and the button to change it */
.avatar-button {
  position: relative; width: 150px; height: 150px; flex: none; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: #0a0a5c; cursor: pointer;
}
.avatar-button .avatar {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: transparent;
}
.avatar-button .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 6px 10px;
  color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,43,.75));
}
.avatar-button:hover .avatar-label, .avatar-button:focus-visible .avatar-label { background: rgba(0,0,43,.8); }
.avatar-help p { margin: 0 0 4px; font-size: 14px; }
.hint-dark { font-size: 12.5px; color: #4a4a72; }
.form-msg { min-height: 1.2em; margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.form-msg.bad { color: #b00020; }
.form-msg.good { color: #1f7a3a; }
#verify-msg.good { color: #f5f2f2; }
#verify-msg .email-confirmation-check { color: #1f7a3a; font-size: 1.3em; }

/* picture dialog */
.avatar-dialog { max-width: 460px; }
.avatar-dialog canvas {
  display: block; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 8px auto;
  border-radius: 14px; background: #0a0a5c; touch-action: none; cursor: grab;
}
.avatar-dialog canvas:active { cursor: grabbing; }
.zoom { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; max-width: 320px; margin: 0 auto; }
.zoom input { flex: 1; accent-color: var(--royal); }
.avatar-actions { flex-wrap: wrap; align-items: center; }
.avatar-actions .spacer { flex: 1; }

/* identity: verified */
.verified-box { background: #e3f4e8; border: 2px solid #1f7a3a; border-radius: 12px; padding: 10px 12px; margin: 8px 0 10px; color: #10331c; }
.verified-box p { margin: 0 0 4px; }
.verified-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.save-row { display: flex; justify-content: center; padding: 14px 0 2px; }

/* ---- Identity check ---- */
.identity-fields { display: grid; grid-template-columns: 170px 1fr; gap: 0 10px; align-items: end; margin-top: 8px; }
.country-input {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px;
  border-radius: 10px; border: 1.5px solid #8a8aa8; background: #f6f6fb; color: #10103a;
}
.country-input .eg { font-size: 11px; font-weight: 700; color: #4a4a72; }
.country-input input {
  width: 2.2em; min-height: 0; padding: 0; border: 0; background: transparent;
  font-size: 20px; font-weight: 700; text-transform: uppercase; color: #10103a;
}
.country-input input:focus { outline: none; }
.country-input:focus-within { outline: 2px solid var(--royal); outline-offset: 1px; }
.flag { margin-left: auto; font-size: 22px; line-height: 1; }
.flag-lv {                     /* flag of Latvia: carmine, white, carmine (2 : 1 : 2) */
  width: 34px; height: 20px; border-radius: 2px;
  background: linear-gradient(#9e3039 0 40%, #fff 40% 60%, #9e3039 60% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
#identity-status { margin-top: 10px; font-weight: 700; }
.verify-row { display: flex; justify-content: center; padding: 14px 0 4px; }

/* small phones: fields one under another */
@media (max-width: 420px) {
  .identity-fields { grid-template-columns: 1fr; }
  .avatar-button { width: 120px; height: 120px; }
}

/* Stripe's identity form inside the page */
.kyc-embed { background: #fff; border-radius: 12px; padding: 12px; margin: 10px 0; min-height: 80px; color: #10103a; }
.kyc-embed .loading { font-size: 14px; color: #4a4a72; margin: 0; }
.kyc-fallback { display: block; margin-top: 8px; font-size: 13px; }

/* Change password (closed until opened) */
.pw-box { margin-top: 16px; background: rgba(255,255,255,.35); border-radius: 12px; padding: 10px 14px; }
.pw-box summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.pw-box form { margin-top: 10px; }

/* =========================================================
   STRIPE FORM ON PHONES
   Stripe's fields must always stay INSIDE the white box.
   1. the form can never be wider than its box
   2. on phones the white box uses the full screen width
      (the rose borders around it would leave too little room)
   ========================================================= */
.kyc-embed { box-sizing: border-box; max-width: 100%; min-width: 0; overflow: hidden; }
.kyc-embed > *,
.kyc-embed iframe { display: block; width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
.stripe-box, .zone { min-width: 0; }

@media (max-width: 600px) {
  .kyc-embed {
    /* full screen width: from the left edge of the phone to the right edge */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    padding: 14px 16px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  }
}
#plans, #identity-form { scroll-margin-top: 80px; }

/* guest (not signed in): "Become a Creator" banner on top */
.guest-banner { background: #fff5a0; color: #1c1c3a; border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; }
.guest-banner h2 { margin: 0 0 6px; font-size: 19px; }
.guest-banner p { margin: 0 0 10px; font-size: 14.5px; }
.guest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 !important; }
.guest-banner .btn-ghost { color: #1c1c3a; }
.guest-try { color: #000080; font-weight: 600; font-size: 14px; }

/* =========================================================
   2026-10-22
   1. Account, identity & subscription zone: dark blue (was rose)
   2. Profile: Username and E-mail side by side
   ========================================================= */
.dash-page > .zone { background: var(--navy-2); color: #fff; }
.dash-page > .zone > h2, .dash-page > .zone > h3 { color: #fff; }
.dash-page > .zone .rules h3 { color: #10103a; }
.dash-page > .zone small { color: var(--lilac); opacity: 1; }
.dash-page > .zone > p { color: var(--lilac); }
.dash-page > .zone .stripe-box { background: var(--rose-light); border-color: #10103a; color: #1d0b0b; }
.dash-page > .zone .plan { background: #f1f1f8; border-color: #3a3a9a; }
.dash-page > .zone .plan:has(input:checked) { background: #fff; box-shadow: 0 0 0 3px var(--sun); }
.dash-page > .zone .plan-status { color: #fff; }
.dash-page > .zone .pw-box { background: rgba(255,255,255,.08); color: #fff; }
.dash-page > .zone .pw-box .field label { color: #fff; }
.dash-page > .zone .terminate { border-top-color: #3a3a9a; }
.dash-page > .zone .terminate p { color: var(--lilac); }
.dash-page > .zone .btn-danger-text { color: var(--danger); }
.dash-page > .zone .btn-ghost { color: #fff; }
#verify-msg { color: #fff; }

.profile-names { align-items: end; }
@media (max-width: 480px) { .profile-names { grid-template-columns: 1fr; } }

/* =========================================================
   2026-10-25  BECOME A CREATOR IN 3 STEPS
   Benefits box, progress dots, step cards, Stripe info,
   plan cards like on the landing page, locked step 3.
   Colours come from css/theme.css (--dash-*, --orange …).
   ========================================================= */
.creator-benefits, .step-track { margin: 0 0 16px; }

/* ---- why become a creator ---- */
.creator-benefits {
  background: linear-gradient(135deg, #10106E, var(--dash-panel, #000C3B));
  border: 1px solid var(--dash-line, #1C2A6E); border-radius: 22px; padding: 20px 18px;
}
.creator-benefits h2 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.benefit-grid li { background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px 14px; }
.benefit-grid b { display: block; color: var(--orange, #E7BF13); font-size: 17px; font-weight: 900; }
.benefit-grid span { display: block; font-size: 13.5px; color: var(--lilac, #E6E8FA); line-height: 1.4; margin-top: 2px; }
.benefit-note { margin-top: 12px !important; font-size: 14px; color: var(--lilac, #E6E8FA); }
.is-creator .creator-benefits { display: none; }

/* ---- progress: 1 Profile · 2 Identity · 3 Plan ---- */
.step-track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: none; }
.step-track a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px;
  border-radius: 999px; background: var(--dash-panel, #000C3B); border: 1px solid var(--dash-line, #1C2A6E);
  color: var(--lilac, #E6E8FA); text-decoration: none; font-weight: 700; font-size: 14px; text-align: center;
}
.step-track .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 900; font-size: 13px;
}
.step-track .current a { border-color: var(--dash-btn, #1840EC); color: #fff; box-shadow: 0 0 0 2px var(--dash-btn, #1840EC); }
.step-track .current .dot { background: var(--dash-btn, #1840EC); }
.step-track .done .dot { background: #1f7a3a; font-size: 0; }
.step-track .done .dot::after { content: "✓"; font-size: 14px; }
@media (max-width: 480px) { .step-track a { flex-direction: column; gap: 2px; border-radius: 16px; font-size: 12.5px; } }

/* ---- step cards ---- */
.step-label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange, #E7BF13) !important; margin: 0 0 2px !important; }
.step-card { scroll-margin-top: 80px; }
.dash-page .save-row { gap: 10px; flex-wrap: wrap; }
.dash-page .verify-msg { text-align: center; color: #fff; }

/* ---- step 2: what Stripe collects ---- */
.stripe-info { background: rgba(255,255,255,.05); border: 1px solid var(--dash-line, #1C2A6E); border-radius: 16px; padding: 14px 16px; margin: 10px 0 12px; }
.stripe-info[hidden] { display: none; }
.stripe-why { color: #fff !important; font-size: 15px; }
.stripe-cols { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dash-page > .zone .stripe-info h3 { font-size: 15px; margin: 12px 0 4px; color: #fff; }
.stripe-info ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--lilac, #E6E8FA); }
.stripe-info li { margin: 3px 0; }
.stripe-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; font-size: 13.5px; }
.stripe-links a, .stripe-agree a { color: var(--orange-text, #F2D25A); }
.stripe-agree { font-size: 12.5px; color: #4a4a72; margin: 6px 0 0 !important; }
.stripe-agree a { color: #10106E; }
#identity-submit { margin-top: 10px; }

/* ---- step 3: plan cards (same look as the landing page) ---- */
.dash-page > .zone .plan-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 14px 0 0; }
.dash-page > .zone .plan-cards .plan {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #575780; border: 2px solid #7A7AA6; border-radius: 22px; padding: 22px 24px; gap: 6px; color: #fff; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background-color .12s, border-color .12s;
}
.dash-page > .zone .plan-cards .plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dash-page > .zone .plan-cards .plan .name { font-weight: 800; font-size: 15px; margin: 0; padding-right: 30px; text-align: left; }
.dash-page > .zone .plan-cards .plan .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.dash-page > .zone .plan-cards .plan .price { font-weight: 900; font-size: 38px; line-height: 1.1; margin: 0; }
.dash-page > .zone .plan-cards .plan .per { font-size: 14px; margin: 0; }

/* NOT chosen: mild blue-purple (also the "popular" one) */
.dash-page > .zone .plan-cards .plan,
.dash-page > .zone .plan-cards .plan-hot { background: #575780; border-color: #7A7AA6; color: #fff; }
.dash-page > .zone .plan-cards .plan .name,
.dash-page > .zone .plan-cards .plan .price-row,
.dash-page > .zone .plan-cards .plan .price { color: #fff; }
.dash-page > .zone .plan-cards .plan .per { color: #C3C6E4; }

/* MOUSE OVER and CHOSEN: gold, lifted a little, thin gold ring with a small gap */
.dash-page > .zone .plan-cards .plan:hover,
.dash-page > .zone .plan-cards .plan:has(input:checked) {
  background: #E7BF13; border-color: #E7BF13; color: #1A1400;
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--dash-panel, #000C3B), 0 0 0 5px #E7BF13, 0 10px 24px rgba(0,0,0,.35);
}
.dash-page > .zone .plan-cards .plan:hover .name,
.dash-page > .zone .plan-cards .plan:hover .price-row,
.dash-page > .zone .plan-cards .plan:hover .price,
.dash-page > .zone .plan-cards .plan:hover .per,
.dash-page > .zone .plan-cards .plan:has(input:checked) .name,
.dash-page > .zone .plan-cards .plan:has(input:checked) .price-row,
.dash-page > .zone .plan-cards .plan:has(input:checked) .price,
.dash-page > .zone .plan-cards .plan:has(input:checked) .per { color: #1A1400; }

/* the chosen plan also gets a ✓ */
.dash-page > .zone .plan-cards .pick-mark {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: none; place-items: center; background: #1A1400; color: #E7BF13; font-weight: 900; font-size: 14px; margin: 0;
}
.dash-page > .zone .plan-cards .plan:has(input:checked) .pick-mark { display: grid; }
.dash-page > .zone .plan-cards .plan:has(input:focus-visible) { outline: 2px solid #9DB1FF; outline-offset: 7px; }
.plan-rules { margin: 14px 0 0; padding-left: 20px; font-size: 13px; color: var(--lilac, #E6E8FA); }
.plan-rules li { margin: 3px 0; }

/* locked until Stripe has verified the creator: 50% grey, not clickable */
.lock-note { display: none; margin: 8px 0 0 !important; padding: 10px 14px; border-radius: 12px;
  background: rgba(231,191,19,.12); border: 1px solid rgba(231,191,19,.45); color: #fff !important; font-weight: 600; font-size: 14px; }
.lock-note a { color: var(--orange-text, #F2D25A); margin-left: 6px; }
.step-plans.is-locked .lock-note { display: block; }
.step-plans.is-locked .plans-body { filter: grayscale(1); opacity: .5; pointer-events: none; user-select: none; }
.step-plans.just-unlocked { animation: plans-glow 1.6s ease-out 1; }
@keyframes plans-glow { 0% { box-shadow: 0 0 0 0 rgba(231,191,19,.9); } 100% { box-shadow: 0 0 0 18px rgba(231,191,19,0); } }
@media (prefers-reduced-motion: reduce) { .step-plans.just-unlocked { animation: none; } .dash-page > .zone .plan-cards .plan { transition: none; } }

/* =========================================================
   ONE STEP OPEN AT A TIME (29 Oct 2026)
   The current step is open. The other steps are small bars:
   "✓ Done" (finished) or "🔒 After step 2" (not possible yet).
   Tap a bar to open it. The script is at the bottom of dashboard.html.
   ========================================================= */
.step-card h2 { margin: 0; }
.step-toggle {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px;
  font: inherit; font-weight: 900; color: inherit;
}
.step-toggle:focus-visible { outline: 3px solid var(--orange, #E7BF13); outline-offset: 4px; border-radius: 8px; }
.step-toggle-text { flex: 1; min-width: 0; }
.step-state { flex: none; font-size: 13px; font-weight: 800; color: var(--lilac, #E6E8FA); }
.step-done .step-state { color: #6BE59A; }
.step-chev { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.step-toggle[aria-expanded="true"] .step-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .step-chev { transition: none; } }

/* a closed step: only "STEP 2 OF 3" + the title bar */
.step-card.is-collapsed { padding-top: 12px !important; padding-bottom: 12px !important; cursor: pointer; }
.step-card.is-collapsed > :not(.step-label):not(h2) { display: none !important; }
.step-card.is-collapsed:hover { filter: brightness(1.08); }
.step-card.is-collapsed.step-done { border-color: #2F8F5B !important; }
/* a locked closed step stays readable (no grey filter on the bar) */
.step-plans.is-locked.is-collapsed { opacity: 1; filter: none; }

/* PHONES: the guest box is hidden to keep the page short.
   (Any button on the page still leads a guest to "Become a Creator",
    and "Sign in" is at the top right.) */
@media (max-width: 599px) {
  .guest-banner { display: none !important; }
}
