/* =========================
   GLOBAL / RESET
   ========================= */

@font-face {
  font-family: Nunito;
  src: url(Nunito-VariableFont_wght.ttf);
}

:root{
  --purple: #330080;
  --purple-dark: #2e0072;
  --text: #2E2440;
  --muted: #544A62;
  --border: #EDECF2;
  --bg: #F8F8FB;
  --white: #FFFFFF;
  --success: #16C784;
}

*{ box-sizing: border-box; }

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* Keep your existing wrapper IDs used by the website */
#page{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#large{
  /* IMPORTANT: center children instead of flex-start (this was breaking title centering) */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 10px;
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F8F8FB 0%, #FFFFFF 50%);
}

#body{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
}

a{ text-decoration: none; color: inherit; }
p{ margin: 0; }

/* =========================
   BUTTONS (needed by dapp.html)
   ========================= */

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: 'Nunito';
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  background: transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
}

.button--black-outline{
  border-color: rgba(46, 36, 64, 0.25);
  color: #2E2440;
  background: rgba(255,255,255,0.8);
}

.button--black-outline:hover{
  transform: translateY(-1px);
  border-color: rgba(51,0,128,0.25);
  box-shadow: 0px 10px 24px rgba(51,0,128,0.10);
}

.button--accent-bg{
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(136, 144, 195, 0.2), 0 5px 15px 0 rgba(37, 44, 97, 0.15);
}

.button--accent-bg:hover{
  transform: translateY(-1px);
}

/* Contact button inner spans used by navbar */
.contactSpan{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 44px;
  border-radius: 4px;
  background-color: var(--purple-dark);
}
.contactP{ color: white; }


/* =========================
   FOOTER (kept, responsive)
   ========================= */

.bg-white-color{
  width: 100%;
  background-color: white;
  position: relative;
  top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-02{
  display: flex;
  flex-direction: column;
}

.container{
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0.7;
}

.footer-02__wrapper{
  display: flex;
  flex-direction: row;
  width: min(1050px, calc(100% - 24px));
  height: auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-02__text{
  font-size: 15px;
  font-family: 'Nunito';
  color: #3d3d3d;
  font-weight: normal;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.footer-02__text a{ color: #3d3d3d; }

.social-buttons{
  display: flex;
  flex-direction: row;
  width: 60px;
  justify-content: space-around;
  opacity: 0.7;
}

.social-buttons__icon{
  width: 18px;
  height: 18px;
}

/* =========================
   TEZOS PAGE (merged from style_tezos_pro_clean.css)
   ========================= */

.tezos-successWrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.tezos-successIcon{
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.tezos-successText{
  font-size: 20px;
  font-weight: 600;
  color: var(--success);
  text-align: center;
}

/* Shell */
.tezos-shell{
  width: 100%;
  padding: 110px 16px 64px; /* 70px fixed navbar + breathing room */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero (guaranteed centered) */
.tezos-hero{
  width: 100%;
  max-width: 980px;
  text-align: center;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tezos-title{
  margin: 0 auto 12px;
  width: 100%;
  text-align: center;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 52px;
  line-height: 1.12;
  color: var(--purple);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.tezos-subtitle{
  margin: 0 auto;
  max-width: 760px;
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Stage + card */
.tezos-stage{
  width: 100%;
  display: flex;
  justify-content: center;
}

.tezos-card{
  width: 100%;
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0px 14px 36px rgba(51, 0, 128, 0.08);
}

/* Progress */
.tezos-progress{
  display: flex;
  align-items: center;
  justify-content: center;  /* cleaner on desktop */
  gap: 18px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid #F1F0F5;
  flex-wrap: nowrap;
}

.tezos-progress-step{
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.72;
  min-width: 240px;
}

.tezos-progress-step.isActive{ opacity: 1; }

.tezos-dot{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 15px;
  color: var(--purple);
  background: rgba(51, 0, 128, 0.08);
  border: 1px solid rgba(51, 0, 128, 0.18);
}

.tezos-progress-divider{
  flex: 0 1 140px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.tezos-stepTitle{
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
}

.tezos-stepDesc{
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}

/* Instruction */
.tezos-instruction{
  text-align: center;
  padding: 14px 6px 0;
}

.tezos-h2{
  margin: 14px 0 10px;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 28px;
  line-height: 1.25;
  color: var(--purple);
}

.tezos-body{
  margin: 0 auto 6px;
  max-width: 640px;
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Action area */
.tezos-actionArea{
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.tezos-actionStack{
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

/* Connect button */
.tezos-connectBtn{
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tezos-connectBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(51, 0, 128, 0.18);
  box-shadow: 0px 16px 34px rgba(51, 0, 128, 0.10);
}

.tezos-connectInner{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.tezos-logo{
  width: 100px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #EFEAFB;
  background: var(--white);
}

.tezos-connectText{
  flex: 1;
  text-align: left;
}

.tezos-connectTitle{
  display: block;
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tezos-connectSub{
  display: block;
  margin-top: 6px;
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tezos-chevron{
  width: 10px;
  height: 16px;
}

/* Info card */
.tezos-info{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--white);
}

.tezos-infoTitle{
  font-family: 'Nunito';
  font-weight: 900;
  font-size: 17px;
  line-height: 1.3;
  color: var(--purple);
  margin-bottom: 6px;
}

.tezos-infoText{
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 10px;
}

.tezos-bullets{
  margin: 0;
  padding-left: 18px;
  font-family: 'Nunito';
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.tezos-bullets li{ margin: 6px 0; }

/* QR */
#qrcode{
  width: auto !important;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
#qrcode img,
#qrcode canvas{
  width: min(320px, 78vw) !important;
  height: auto !important;
}

/* Deeplink button */
.tezos-deeplinkWrap{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.tezos-deeplinkBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--purple-dark);
  color: #fff;
  font-family: 'Nunito';
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  width: min(420px, 100%);
  box-shadow: 0px 14px 26px rgba(46, 0, 114, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tezos-deeplinkBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0px 18px 34px rgba(46, 0, 114, 0.22);
}
.tezos-deeplinkBtn:active{ transform: translateY(1px); }

/* Responsive */
@media (max-width: 720px){
  .tezos-title{ font-size: 40px; }
  .tezos-subtitle{ font-size: 18px; }
  .tezos-h2{ font-size: 24px; }
  .tezos-connectInner{ padding: 16px; flex-wrap: wrap; }
  .tezos-logo{ width: 64px; height: 64px; border-radius: 14px; }

  .tezos-progress{
    flex-direction: column;
    align-items: flex-start;
  }
  .tezos-progress-divider{ display: none; }
  .tezos-progress-step{ min-width: 0; }
}

@media (max-width: 520px){
  .tezos-title{ font-size: 34px; }
  .tezos-subtitle{ font-size: 16px; }
  .tezos-card{ padding: 16px; border-radius: 18px; }

  .nav-02__box{
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* =========================
   NAVBAR (clean + responsive)
   ========================= */

.nav-02{
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.07);

  /* allow it to grow on mobile */
  height: auto;
  padding: 10px 0;
}

.nav-02__box{
  width: min(1170px, calc(100% - 24px));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

/* keep logo nice on desktop */
.nav-02__logo_img{
  height: 52px;   /* was 70px */
  width: auto;
  display: block;
}

/* buttons row */
.nav-02__item{
  display: flex;
  align-items: center;
}

/* make your top-right group behave as a compact cluster */
.nav-02__box > .nav-02__item{
  margin-left: 0;
}

/* slightly smaller buttons in navbar only */
.nav-02 .button{
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

/* wallet status should truncate nicely */
#walletStatus{
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------- Mobile layout -------- */
@media (max-width: 720px){
  .nav-02{
    padding: 8px 0;
  }

  .nav-02__box{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
  }

  /* logo on its own line */
  .nav-02__logo{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-02__logo_img{
    height: 44px;
  }

  /* items become a centered row that wraps */
  .nav-02__item{
    flex: 0 0 auto;
  }

  /* smaller buttons to avoid crowding */
  .nav-02 .button{
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  #walletStatus{
    max-width: 70vw;
  }
}
