/* Copyright (c) 2023 Bubble Protocol */
/* Distributed under the MIT software license, see the accompanying */
/* file LICENSE or http://www.opensource.org/licenses/mit-license.php. */

:root {
  --background: #FFFFFF;
  --onBackground: #111;
  --onBackground: '#111';
  --onBackgroundSecondary: #666;
  --onBackgroundTertiary: #aaa;
  --primary: #4F46E5;
  --onPrimary: #FFFFFF;
  --surface: #f9f9ff;
  --surfaceAccent: #e0e8ff;
  --surfaceBorder: #ddd;
  --surfaceAccentBorder: #ddd;
  --onSurface: #111;
  --onSurfaceSecondary: #666;
  --onSurfaceTertiary: #aaa;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-radius: 16px;
  --text-main: #111827;
  --text-muted: #6b7280;
  --primary-soft: #e0e7ff;
  --timeline-gray: #e5e7eb;
  --success: #16a34a;      /* green */
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0px;
  background: var(--background);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #0d77b5;
}

a:visited {
  text-decoration: none;
}

code {
  font-size: 16px;
}

figcaption {
  font-size: 14px;
  align-self: center;
  text-align: center;
}

.error-message {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  height: 20px;
  color: #d91616;
  flex: none;
  flex-grow: 0;
  flex-shrink: 0;
}


/* Spinner */

.spinner {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
}
.spinner div {
  position: absolute;
  border: 1px solid #000;
  opacity: 1;
  border-radius: 50%;
  animation: spinner 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.spinner div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes spinner {
  0% {
    top: 7px;
    left: 7px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  4.9% {
    top: 7px;
    left: 7px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 7px;
    left: 7px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 14px;
    height: 14px;
    opacity: 0;
  }
}


/* Header */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #7D7D7D;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  flex: none;
  flex-grow: 1;
}

.content-row, .content-row-responsive {
  width: 800px;
  flex: none;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0px;
  gap: 16px;
}

.left-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 3px 0px;
  gap: 10px; 
  flex: none;
  flex-grow: 1;
}

.left-header:hover {
  cursor: pointer;
}

.header-logo {
  width: 38px;
  height: 38px;
  background-image: url(../assets/new-icon.png);
  background-size: cover;
  border-radius: 50%;
  flex: none;
  flex-grow: 0;
}

.header-logo-text {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 800;
  font-size: 24px;
  line-height: 28px;  
  color: #000000;
  flex: 0;
}

.right-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 10px 25px rgba(47, 63, 236, 0.28);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(31, 42, 176, 0.3);
}

.cta-button.small {
  padding: 10px 22px;
  font-size: 0.9em;
  margin-top: 0;
  box-shadow: none;
}

.cta-button.secondary {
  background: #fff;
  color: #1b214d;
  border: 1px solid rgba(27, 33, 77, 1);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: #eef;
  color: #000;
  border-color: #000;
}

/* Content */

.content {
  width: 100%;
  max-width: 800px;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 144px 0px 96px;
  gap: 72px;
  flex: 1;
}

@media only screen and (max-width: 840px) {
  .content, .content-row, .content-row-responsive {
    width: 95%;
  }
}

.title-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.title {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  font-size: 64px;
  line-height: 75px;
  color: #000000;  
  flex: none;
  flex-grow: 0;
}

.subtitle {
  font-family: 'Arial';
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: #5d5d5d;
  flex: none;
  flex-grow: 0;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px 0;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px 0;
  flex: none;
  flex-grow: 0;
}

.about-text {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
  color: #363636;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

table {
  border-collapse: collapse;
  border: 1px solid #7D7D7D;
  margin: 16px 0;
}

tr {
  border-bottom: 1px solid #7D7D7D;
}

td, th {
  padding: 8px 10px;
  border-right: 1px solid #7D7D7D;
  text-align: left;
}


.h-table {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

img {
  max-width: 600px;
}

@media only screen and (max-width: 632px) {
  .h-table {
    flex-direction: column;
  }
  img, figure, table, p, td, .post-section {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  table {
    table-layout: fixed;
    width: 100%;
  }
}

.h-table-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex: none;
  flex-grow: 0;
  
}

.formal-tick {
  width: 28px;
  height: 28px;
  background-image: url(../assets/formal-tick.png);
  background-size: cover;
  flex: none;
  flex-grow: 0;
}

.formal-text {
  font-family: 'Times';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 23px;
  color: #000000;
  flex: none;
  flex-grow: 0;
}

.small-text-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--primary);
  flex: none;
  flex-grow: 0;
  align-self: center;
}

.small-text-link:hover {
  cursor: pointer;
}

.large-text-link {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 23px; 
  color: #1886C4;
  flex: none;
  flex-grow: 0;
  text-decoration: none;
}

.large-text-link:hover {
  cursor: pointer;
}

.new-to-web3-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 10px;
  background: #FAFAFA;
  border: 1px solid #737373;
  flex: none;
  flex-grow: 1;
  flex-shrink: 1;
}

.small-text {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #363636;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.join-waitlist-button {
  background-color: #E7AC16;
}

.recaptcha-notice {
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  color: #C4C4C4;
}

.recaptcha-notice a, .recaptcha-notice a:visited {
  color: #939393;
  text-decoration: none;
}

.grecaptcha-badge {
  visibility: hidden;
}


/* Connected Content */

.connected-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 24px;
  gap: 32px;
}


.dnd-box {
  box-sizing: border-box;
  min-height: 180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
  gap: 10px;
  border: 1px dashed #D1D1D1;
  border-radius: 16px;
  background: --var(--surface);
  flex: none;
  flex-grow: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media only screen and (max-width: 490px) {
  .dnd-box {
    width: 100%;
  }
}

.dnd-box:hover {
  cursor: pointer;
  border-color: #000000;
}

.dnd-box-valid-dragover {
  border: 1px dashed #000000;
  background: var(--surface);
}

.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  justify-content: stretch;
}

.steps-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.steps-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--onBackgroundTertiary);
  align-self: center;
}

.steps-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--onBackground);
}

.step-card {
  background: var(--surface);
  color: var(--onSurface);
  border: 1px solid var(--surfaceBorder);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.03);
  position: relative;
}

.step-card-complete {
  opacity: 0.9;
}

.step-card-disabled {
  background: var(--surfaceAccent);
  border-color: var(--surfaceAccentBorder);
}

.step-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--onPrimary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-heading-text { display: flex; flex-direction: column; gap: 4px; }
.step-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--onBackground); }
.step-description { margin: 0; font-size: 14px; color: var(--onBackground); }
.step-helper { margin: 0; font-size: 14px; color: var(--onBackgroundSecondary); }

.muted-placeholder {
  font-size: 14px;
  color: #7d7d7d;
}

.dnd-wrapper { width: 100%; }

.selected-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.selected-file-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--onSurface);
  word-break: break-word;
}

.selected-file-metadata {
  font-weight: 400;
  font-size: 13px;
  color: var(--onSurfaceTertiary);
  word-break: break-word;
}

.large-hint-text {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  color: var(--onBackgroundTertiary);
}

.small-hint-text {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  color: var(--onBackgroundTertiary);
}

/* Signature Content */

.signature-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 48px;
}

.sign-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  gap: 16px;
  flex: none;
  flex-grow: 0;
}

.sign-data-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.data-label-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 1px;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.label {
  font-weight: 400;
  font-size: 18px;
  line-height: 19px;
  flex: none;
  flex-grow: 0;
  color: var(--onSurfaceSecondary);
}

.message-label {
  flex-grow: 1;
}

.data-encrypt {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  flex: none;
  flex-grow: 0;
}

.data-encrypt-checkbox {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border: 1px solid #737373;
  flex: none;
  flex-grow: 0;
}

.data-text-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: center;
  padding: 0px 10px;
  gap: 10px;
  min-width: 500px;
  height: 32px;  
  background: #FFFFFF;
  border: 1px solid #737373;
  flex: none;
  order: 1;
  flex-grow: 0;
}

@media only screen and (max-width: 522px) {
  .data-text-box {
    min-width: 240px;
  }
}

.text-box {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  border-style: none;
  flex: none;
  flex-grow: 1;
  min-width: 240px;
}

.text-box:focus {
  outline: none;
  outline-style: none;
}

.text-box::placeholder {
  color: #bababa;
}

.sign-button {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 8px 64px;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  flex: none;
  flex-grow: 0;
}

.sign-button:hover {
  cursor: pointer;
}

.signatures {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.signatures-label-frame {
  display: flex;
  flex-direction: column;
  padding: 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.signature-refresh-button {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 20px;
  height: 20px;
  background-size: cover;
  flex: none;
  flex-grow: 0;
}

.signature-refresh-button:hover {
  cursor: pointer;
}

.filename-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 8px;
  flex: none;
  flex-grow: 0;
}

.filename {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  color: #7e7e7e;
  flex: 0;
}

.signature-box {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.signature-list {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 8px;
  margin-top: 10px;
}

.certificate-link {
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--surfaceBorder);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.certificate-link__copy {
  font-weight: 700;
  margin: 0;
  color: var(--onSurface);
}

.certificate-link__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.certificate-link__button {
  align-self: center;
  width: 100%;
  box-sizing: border-box;
  max-width: 240px;
  padding: 10px 16px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.certificate-link__button:hover {
  opacity: 0.9;
}

.certificate-link__hint {
  font-size: 12px;
  color: var(--onSurfaceSecondary);
}

.signatory {
  font-family: 'Courier';
  font-size: 15px;
  font-weight: 400;
}

.sigTime {
  font-size: 12px;
  color: var(--onSurfaceSecondary);
  margin-bottom: 6px;
}

.statusText {
  font-size: 14px;
  font-weight: 400;
  color: var(--onSurfaceSecondary);
}

.sigMessage {
  font-size: 14px;
  font-style: italic;
}

.signature {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--surfaceBorder);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  background-color: var(--surface);
  gap: 10px;
  cursor: pointer;
}

.signature-content-row {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0px;
  gap: 10px;
}

.h-line {
  align-self: stretch;
  border: 1px solid #C4C4C4;
}

.signature-spinner-frame {
  width: 119px;
  height: 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.cta-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 19px;
  text-align: center;
  color: var(--onBackground);
  margin-top: 30px;
}

.cta-text a, .cta-text a:visited {
  color: var(--primary);
  text-decoration: none;
}

.cta-text a:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 832px) {
  .signature-content, .signature-box, .signature-list, .signature {
    box-sizing: border-box;
    width: 100%;
  }
  .signature-date-field {
    flex: 2 1 0;
  }
  .signature-who-field {
    flex: 5 1 0;
  }
  .signature-comment-field {
    flex: 3 1 0;
  }
  .signature, .signature-date-field, .signature-who-field, .signature-comment-field {
    overflow: hidden;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
  }
}

@media only screen and (max-width: 300px) {
  .signature {
    flex-direction: column;
    gap: 2px;
  }
  .signature, .signature-date-field, .signature-who-field, .signature-comment-field {
    width: 100%;
  }
}

/* Post content */

.post-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px 0;
  flex: none;
  align-self: stretch;
  flex-grow: 1;
  color: #363636;
}


.post-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}


h1 {
  font-size: 24px;
  line-height: 28px;
}

h2 {
  font-size: 18px;
  line-height: 28px;
}

p {
  font-size: 14x;
  line-height: 22px;
  margin: 4px 0;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14x;
  line-height: 22px;
  margin: 4px 0;
}

.centered {
  align-self: center;
  text-align: center;
}


/* Footer */

.footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 0px;
  border-top: 1px solid #7D7D7D;
  flex: none;
  flex-grow: 0;
}



.footer-text {
  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  color: #737373;
  flex: none;
  flex-grow: 0;
  text-decoration: none;
}

.footer-text a, .footer-text a:visited {
  color: #737373;
  text-decoration: none;
}

@media only screen and (max-width: 400px) {
  .content-row-responsive {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .left-footer { order: 1; }
  .right-footer { order: 2; }
  .center-footer { order: 3; }
}

.left-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3px 0px;
  gap: 6px;
  flex: none;
  flex-grow: 0;
}

.center-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 3px 0px;
  gap: 6px;
  flex: none;
  flex-grow: 1;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 0px;
  gap: 10px;
  flex: none;
  flex-grow: 0;
}

.right-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 3px 0px;
  gap: 6px;
  flex: none;
  flex-grow: 0;
}

.footer-icon {
  width: 28px;
  height: 28px;
  background-size: cover;
  flex: none;
  flex-grow: 0;
}

.twitter-icon {
  background-image: url(../assets/icon-x.png);
  width: 16px;
  height: 16px;
}

.discord-icon {
  background-image: url(../assets/icon-discord.svg);
}

.email-icon {
  background-image: url(../assets/icon-mail.svg);
}

.refresh-icon {
  background-image: url(../assets/icon-refresh.svg);
}


/* Progress steps */

.progress-card {
  align-self: center;
  width: 100%;
  max-width: 520px;
  padding: 16px 20px 20px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  box-sizing: border-box;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* hide animation */
.progress-card.hidden {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-title {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-main);
}

.progress-percent {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
}

/* progress bar */

.progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  margin-bottom: 16px;
}

.progress-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* steps */

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* timeline column */

.step-timeline {
  position: relative;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-line {
  width: 2px;
  flex: 1;
  background: var(--timeline-gray);
}

.step-line-top {
  margin-bottom: 4px;
}

.step-line-bottom {
  margin-top: 4px;
}

/* circle */

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.step-check {
  font-size: 18px;
  line-height: 1;
  color: var(--success);
  display: none;
}

.step-icon {
  width: 18px;
  height: 18px;
  line-height: 1;
  color: var(--primary);
  display: block;
  filter: invert(30%) sepia(100%) saturate(5000%) hue-rotate(240deg) brightness(100%) contrast(100%);
}

.step-spinner {
  display: none;
}

.step-connector {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: calc(100% * 1.5);
  background: var(--primary);
  flex: 1;
}

/* text column */

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
}

.step-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* state: active step (currently running) */

.step.active .step-circle {
  background: var(--primary-soft);
}

.step.active .step-icon {
  display: none;
}

.step.active .step-spinner {
  display: block;
}

/* state: done step */

.step.done .step-circle {
  background: #ecfdf3;
  border-color: var(--success);
}

.step.done .step-check {
  display: block;
}

.step.done .step-icon {
  display: none;
}

.step.done .step-connector {
  background: var(--success);
}

.step.done .step-line-bottom,
.step.done + .step .step-line-top {
  background: var(--primary);
}

/* Proof detail modal */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-shell {
  position: relative;
  width: min(860px, 95vw);
  max-height: 90vh;
  background: var(--background);
  border: 1px solid var(--surfaceBorder);
  border-radius: 12px;
  padding: 12px 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
}

.modal-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  gap: 6px;
}

.modal-status-icon {
  font-size: 14px;
}

.modal-status-text {
  font-size: 11px;
  font-weight: 600;
  color: #119331;
}

.modal-status-pending {
  color: var(--onSurfaceSecondary);
}

.modal-signer-info {
  padding: 8px 10px;
}

.modal-signer-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--onBackground);
}

.modal-card {
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--surfaceBorder);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.modal-row-label {
  width: 140px;
  font-size: 12px;
  color: var(--onSurfaceSecondary);
  flex-shrink: 0;
}

.modal-row-value {
  flex: 1;
  font-size: 12px;
  color: var(--onSurface);
  word-break: break-word;
}

.modal-row-value-mono {
  font-family: 'Roboto Mono', monospace;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
}

.modal-message {
  font-size: 14px;
  font-style: italic;
  margin: 0;
  align-self: flex-start;
}

.modal-helper-text {
  font-size: 11px;
  color: var(--onSurfaceSecondary);
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.modal-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 400;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
}

.modal-link-button:hover {
  border-color: var(--surfaceBorder);
  background: var(--surface);
}

.modal-link-button.disabled {
  color: var(--onSurfaceSecondary);
  pointer-events: none;
}

.modal-section-muted {
  color: var(--onSurfaceSecondary);
}

.modal-shell--certificate {
  max-width: 980px;
}

.certificate-modal-body {
  align-items: stretch;
  gap: 18px;
}

.certificate-modal__subhead {
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  color: var(--onSurfaceSecondary);
}

.certificate-actions {
  display: flex;
  justify-content: flex-end;
}

.certificate-action-button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--surfaceBorder);
  background: var(--surface);
  color: var(--onSurface);
  cursor: pointer;
  font-weight: 600;
}

.certificate {
  position: relative;
  overflow: hidden;
  border: 2px solid #1d3c92;
  border-radius: 14px;
  padding: 26px 26px 20px;
  background: #fff;
  color: #111;
}

.certificate__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: clamp(64px, 10vw, 120px);
  color: #000;
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
}

.certificate__logo {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.certificate__title {
  font-family: serif;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #0f2d63;
  margin: 0 auto 18px;
  max-width: 620px;
  text-transform: uppercase;
}

.certificate__section {
  margin-bottom: 20px;
}

.certificate__label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #0f2d63;
  margin: 0 0 4px;
}

.certificate__value {
  margin: 0 0 12px;
  font-size: 14px;
  color: #111;
}

.certificate__id {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 0;
  color: #000;
}

.certificate__file-info {
  font-size: 12px;
  color: #4b5563;
  margin-left: 8px;
}

.certificate__signature {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
  gap: 12px;
}

.certificate__signature-info p {
  margin: 0 0 10px;
}

.certificate__qr {
  width: 90px;
  height: 90px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.certificate__message {
  color: #374151;
}

.certificate__tx {
  font-family: 'Roboto Mono', monospace;
  word-break: break-all;
  color: #0d77b5;
}

.certificate__tx--muted {
  color: var(--onSurfaceSecondary);
  pointer-events: none;
}

.certificate__list {
  margin: 8px 0 0 18px;
  color: #374151;
}

.certificate__list li {
  margin-bottom: 6px;
}

.certificate__rosette-frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificate__rosette {
  text-align: center;
  margin: 18px 0 8px;
  height: 60px;
}

.certificate__footer {
  text-align: center;
  font-size: 12px;
  color: #4b5563;
  margin: 0;
}

@media only screen and (max-width: 720px) {
  .certificate__logo {
    width: 70px;
    height: 70px;
  }

  .certificate__title {
    font-size: 17px;
  }

  .certificate__signature {
    flex-direction: column;
  }

  .certificate__qr {
    display: none;
  }
}

@media print {
  body, html {
    background: #fff;
  }

  .header, .content, .footer, #signature-modal, #certificate-link-row {
    display: none !important;
  }

  #certificate-modal {
    position: static;
    align-self: center;
    inset: auto;
    display: block !important;
    align-items: flex-start;
  }

  #certificate-modal .modal-scrim {
    display: none;
  }

  #certificate-modal .modal-shell {
    box-shadow: none;
    border: none;
    max-height: none;
    width: auto;
    padding: 0;
  }

  #certificate-modal .modal-header,
  #certificate-modal .certificate-actions,
  #certificate-modal .modal-title,
  #certificate-modal .certificate-modal__subhead {
    display: none;
  }
}

@media only screen and (max-width: 520px) {
  .modal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-row-label {
    width: 100%;
  }
}


/* Util classes */

.disabled {
  pointer-events: none;
  opacity: 50%;
}

.hidden {
  display: none;
}

.bold {
  font-weight: bold;
}
