/* WebIdentity — page-specific styles. Design tokens, buttons, section-shell, timeline cards and
   the reveal animation are shared with the rest of the app via common.css (loaded first). */

/* ---- Header ---- */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 236, 246, 0.85);
}
.mp-navbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.28rem; font-weight: 850; letter-spacing: -0.03em; }
.mp-brand img { display: block; border-radius: 9px; }
.mp-nav-actions { display: flex; align-items: center; gap: 16px; }
.mp-nav-link { color: var(--navy); font-size: 0.9rem; font-weight: 750; }
.mp-nav-link:hover { color: var(--blue); }
.mp-nav-actions .button { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.mp-logout-form { margin: 0; }

/* ---- Hero ---- */
.mp-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  padding: 86px 0 56px;
}
.mp-hero-copy { max-width: 640px; }
.mp-lead { margin: 22px 0 0; color: #475467; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.72; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }

/* ---- Hero visual: AI → HTML → live URL flow card ---- */
.mp-hero-visual { position: relative; }
.mp-flow-card {
  position: relative;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.80));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mp-flow-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(20, 168, 255, 0.16);
}
.mp-flow-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.mp-flow-status span { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 6px rgba(18, 183, 106, 0.12); }

.mp-flow { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; margin-top: 34px; }
.mp-flow-node { min-width: 132px; padding: 16px 22px; border-radius: 18px; text-align: center; font-weight: 850; letter-spacing: -0.01em; }
.mp-flow-ai { color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: 0 14px 26px rgba(10, 111, 215, 0.22); }
.mp-flow-html { color: var(--navy); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(7, 27, 73, 0.08); }
.mp-flow-connector { width: 2px; height: 26px; background: linear-gradient(180deg, var(--blue), var(--cyan)); border-radius: 999px; }
.mp-flow-url {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 750;
  background: rgba(10, 111, 215, 0.07);
  border: 1px solid rgba(10, 111, 215, 0.16);
}
.mp-flow-url strong { color: var(--blue); }

/* ---- Trust strip ---- */
.mp-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  padding: 8px 0 64px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 750;
}
.mp-trust-item { display: inline-flex; align-items: center; gap: 9px; }
.mp-trust-item span { font-size: 1.15rem; }

/* ---- Who it's for ---- */
.mp-audience { padding: 0 0 96px; }
.mp-audience-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.mp-audience-chip {
  padding: 12px 18px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 27, 73, 0.06);
}

/* ---- AI prompt example ---- */
.mp-prompt-example {
  margin-top: 40px;
  padding: 30px 34px;
  border-left: 4px solid var(--blue);
  border-radius: 0 22px 22px 0;
  background: var(--soft);
}
.mp-prompt-label { display: block; margin-bottom: 14px; color: var(--blue); font-size: 0.82rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.mp-prompt-example p { margin: 0 0 10px; color: var(--ink); font-size: 1.05rem; font-style: italic; line-height: 1.62; }
.mp-prompt-example p:last-child { margin-bottom: 0; }
.mp-prompt-alt { color: var(--muted) !important; font-size: 0.94rem !important; }

/* ---- Closing CTA band ---- */
.mp-cta-band { padding: 0 0 96px; }
.mp-cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 52px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue) 68%, var(--cyan));
  box-shadow: 0 30px 70px rgba(10, 111, 215, 0.24);
}
.mp-cta-band-inner h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mp-cta-band-inner p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1.02rem; }
.mp-cta-band-inner .button.primary { flex-shrink: 0; color: var(--navy); background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }

/* ---- Steps ---- */
.mp-steps { padding: 20px 0 96px; }

/* ---- Footer ---- */
.mp-footer { color: rgba(255, 255, 255, 0.78); background: #051638; padding: 28px 0; }
.mp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.mp-footer-inner a { color: #fff; font-weight: 700; }

@media (max-width: 1020px) {
  .mp-hero-section { grid-template-columns: 1fr; padding-top: 58px; }
  .mp-hero-visual { max-width: 480px; margin: 0 auto; }
}

/* ---- Auth forms (login/signup modals + verify page) ---- */
.mp-form { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
.mp-field { display: grid; gap: 8px; color: var(--navy); font-size: 0.9rem; font-weight: 750; }
.mp-field input {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfcff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.mp-field input:focus { border-color: rgba(10, 111, 215, 0.55); box-shadow: 0 0 0 4px rgba(10, 111, 215, 0.1); }
.mp-optional { color: var(--muted); font-weight: 550; }

.mp-checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #475467; font-weight: 600; text-align: left; }
.mp-checkbox input { width: 18px; height: 18px; }

.mp-form-error { min-height: 1.2em; color: #d92d20; font-size: 0.86rem; font-weight: 650; text-align: left; }

.mp-form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.mp-form-links a,
.mp-linklike { color: var(--blue); font-weight: 700; }
.mp-linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

.mp-modal-wide { max-width: 540px; }

/* ---- Verify page ---- */
.mp-verify-main { padding: 72px 0 96px; display: flex; justify-content: center; }
.mp-verify-card {
  width: 100%;
  max-width: 620px;
  padding: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}
.mp-verify-banner {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(18, 183, 106, 0.1);
  color: #12742f;
  font-weight: 700;
  font-size: 0.9rem;
}
.mp-verify-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; text-align: left; }
.mp-verify-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.mp-verify-steps li.done { border-color: rgba(18, 183, 106, 0.3); background: rgba(18, 183, 106, 0.05); }
.mp-verify-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  font-weight: 850;
}
.mp-verify-steps li.done .mp-verify-icon { background: #12b76a; color: #fff; }
.mp-verify-steps p { margin: 4px 0 10px; color: var(--muted); font-size: 0.92rem; }
.mp-otp-form { display: flex; gap: 10px; margin-top: 6px; }
.mp-otp-form input {
  width: 140px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  letter-spacing: 0.2em;
}
.mp-verify-note { margin-left: 10px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 700px) {
  .mp-navbar { height: 76px; }
  .mp-nav-actions { gap: 10px; }
  .mp-hero-section { padding: 48px 0 40px; }
  .mp-actions { flex-direction: column; }
  .mp-actions .button { width: 100%; }
  .mp-flow-card { padding: 30px 22px; }
  .mp-verify-card { padding: 28px; }
  .mp-otp-form { flex-direction: column; }
  .mp-otp-form input { width: 100%; }
  .mp-trust-strip { justify-content: flex-start; gap: 14px 20px; padding-bottom: 48px; }
  .mp-cta-band-inner { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .mp-cta-band-inner .button { width: 100%; }
  .mp-prompt-example { padding: 24px; }
}

/* ---- Dashboard ---- */
.mp-dash-main { padding: 64px 0 96px; }
.mp-dash-header { max-width: 620px; margin-bottom: 40px; }
.mp-dash-header h1 { margin: 14px 0 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.mp-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mp-dash-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.mp-dash-card h2 { color: var(--navy); font-size: 1.3rem; letter-spacing: -0.02em; }
.mp-dash-card-sub { margin: 6px 0 22px; color: var(--muted); font-size: 0.92rem; }

.mp-dash-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--soft);
  text-align: center;
  color: var(--muted);
}
.mp-dash-empty-icon { font-size: 1.6rem; color: var(--blue); margin-bottom: 6px; }
.mp-dash-empty p { margin: 0; }
.mp-dash-empty strong { color: var(--navy); }

.mp-upload-form { display: grid; gap: 14px; }
.mp-upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px dashed rgba(10, 111, 215, 0.4);
  border-radius: 20px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mp-upload-dropzone:hover,
.mp-upload-dropzone:focus-within { border-color: var(--blue); background: rgba(10, 111, 215, 0.06); }
.mp-upload-icon { font-size: 1.4rem; color: var(--blue); }
.mp-upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.mp-upload-hint { margin: 0; color: var(--muted); font-size: 0.84rem; }
.mp-upload-form .button { width: 100%; }
.mp-upload-status-ok { color: #12742f; }

.mp-dash-preview-frame {
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.mp-dash-preview-frame iframe { width: 100%; height: 100%; border: 0; }

.mp-dash-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mp-dash-share input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 0 14px;
  height: 44px;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  background: var(--soft);
}
.mp-dash-share .button { min-height: 44px; padding: 0 18px; font-size: 0.88rem; white-space: nowrap; }

@media (max-width: 500px) {
  .mp-dash-share { flex-direction: column; }
  .mp-dash-share .button, .mp-dash-share input { width: 100%; }
}

@media (max-width: 860px) {
  .mp-dash-grid { grid-template-columns: 1fr; }
}

/* ---- Admin ---- */
.mp-admin-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.mp-admin-stat {
  flex: 1 1 140px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 27, 73, 0.06);
}
.mp-admin-stat strong { display: block; color: var(--navy); font-size: 1.9rem; font-weight: 850; }
.mp-admin-stat span { color: var(--muted); font-size: 0.86rem; font-weight: 650; }

.mp-admin-links { margin-top: 8px; }
.mp-admin-link { display: block; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.mp-admin-link:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(7, 27, 73, 0.12); }
.mp-admin-link h2 { color: var(--navy); font-size: 1.15rem; margin: 0 0 6px; }

.mp-admin-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(217, 45, 32, 0.08);
}

.mp-admin-search { display: flex; gap: 10px; margin-bottom: 24px; max-width: 480px; }
.mp-admin-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 0 14px;
  height: 46px;
  font: inherit;
  background: #fbfcff;
}

.mp-admin-create-card { margin-bottom: 28px; }
.mp-admin-create-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mp-admin-create-form input {
  flex: 1 1 200px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 0 14px;
  height: 46px;
  font: inherit;
  background: #fbfcff;
}

.mp-admin-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.mp-admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mp-admin-table th, .mp-admin-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mp-admin-table th { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: var(--soft); }
.mp-admin-table tr:last-child td { border-bottom: 0; }

.mp-admin-pill {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 45, 32, 0.1);
  color: #d92d20;
  font-size: 0.78rem;
  font-weight: 750;
}
.mp-admin-pill.ok { background: rgba(18, 183, 106, 0.12); color: #12742f; }

.mp-admin-inline-form { margin: 0; }
.mp-admin-status-btn {
  min-width: 84px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  background: rgba(18, 183, 106, 0.12);
  color: #12742f;
}
.mp-admin-status-btn.off { background: rgba(102, 112, 133, 0.12); color: var(--muted); }
.mp-admin-status-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.mp-admin-roles-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 420px; }
.mp-admin-role-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: #475467; font-weight: 600; white-space: nowrap; }
.mp-admin-save-btn { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.mp-admin-note { color: var(--muted); font-size: 0.86rem; font-style: italic; }

@media (max-width: 700px) {
  .mp-admin-search { flex-direction: column; max-width: none; }
}

/* ---- Profile URL picker ---- */
.mp-identifier-card { margin-bottom: 22px; }
.mp-identifier-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.mp-identifier-input-row {
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: #fbfcff;
  overflow: hidden;
}
.mp-identifier-prefix {
  padding: 0 4px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.mp-identifier-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px 0 2px;
  height: 46px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.mp-identifier-form .mp-form-error { flex-basis: 100%; margin: 0; }

@media (max-width: 560px) {
  .mp-identifier-form { flex-direction: column; align-items: stretch; }
  .mp-identifier-form .button { width: 100%; }
}
