@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

html,
body{
  margin: 0;
  padding: 0;
  background: #FFEFE8;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* show only one frame */
.desktop-only{ display:block !important; }
.mobile-only{ display:none !important; }

@media (max-width: 700px){
  .frame-mobile{
    --mobile-nav-width: 362px;
    --mobile-nav-left: 14px;
    --mobile-nav-top: 15px;
    --mobile-nav-height: 74px;
  }

  .desktop-only{ display:none !important; }
  .mobile-only{
    display:flex !important;
    justify-content: center;
    width: 100%;
    --mobile-scale: min(1, calc(100vw / 390));
    height: calc(2729px * var(--mobile-scale));
    overflow: hidden;
  }

  .frame-mobile{
    transform: scale(var(--mobile-scale));
    transform-origin: top center;
    margin: 0;
  }

  .mobile-top-bar{
    width: var(--mobile-nav-width) !important;
    left: var(--mobile-nav-left) !important;
    top: var(--mobile-nav-top) !important;
    border-radius: 15px !important;
  }

  .mobile-menu{
    width: var(--mobile-nav-width) !important;
    left: var(--mobile-nav-left) !important;
    top: calc(var(--mobile-nav-top) + var(--mobile-nav-height)) !important;
    border-radius: 15px !important;
    box-sizing: border-box;
  }

  #mobileMenu{
    display: none !important;
    z-index: 25;
  }

  #mobileMenu.is-open{
    display: flex !important;
  }
}

/* support button */
.chat-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);

  display:flex;
  align-items:center;
  justify-content:center;
}

.chat-fab img{
  width: 20px;
  height: 20px;
  display:block;
}

/* support panel */
.chat-panel{
  position: fixed;
  right: 15px;
  bottom: 84px;
  width: 360px;
  max-width: calc(100vw - 30px);
  height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.chat-panel.hidden{ display:none; }

.chat-head{
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-weight: 600;
}

.chat-close{
  border:0;
  background: transparent;
  cursor:pointer;
  font-size: 16px;
}

.chat-messages{
  flex: 1;
  padding: 12px;
  overflow:auto;
  background: #fafafa;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.msg{
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.2;
  white-space: pre-wrap;
}

.msg.me{
  align-self: flex-end;
  background: #ffe7dc;
}

.msg.them{
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.chat-input{
  padding: 10px;
  display:flex;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,.08);
  background:#fff;
}

.chat-input input{
  flex:1;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 10px;
  outline: none;
}

.chat-input button{
  border:0;
  background:#ff8d5d;
  color:#fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}


body{
  background: #FFEFE8;
}

#amount,
#amount_m{
  left: 50% !important;
  transform: translateX(-50%);
  text-align: center;
}

.desktop-footer{
  position: absolute;
  left: 60px;
  top: 1681px;
  width: 1080px;
  height: 367px;
  box-sizing: border-box;
  padding: 28px 38px 24px;
  border-radius: 25px;
  background: #ffffff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #000;
}

.desktop-footer__language{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 22px;
}

.desktop-footer__globe{
  font-size: 15px;
  line-height: 1;
}

.desktop-footer__socials{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.desktop-footer__social-link{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f6f6f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.desktop-footer__social-link img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.desktop-footer__divider{
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.16);
  margin-bottom: 20px;
}

.desktop-footer__links{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.desktop-footer__links a{
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.desktop-footer__copyright{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}


#expiresText{
  left: 0 !important;
  width: 1200px;
  text-align: center;
  font-size: 24px !important;
}

#expiresText_m{
  left: 0 !important;
  width: 390px;
  text-align: center;
  font-size: 16px !important;
}

.non-visible {
  display: none !important;
}

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

.wallet-modal.hidden {
  display: none;
}

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

.wallet-modal__card {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(5, 15, 25, 0.08);
  padding: 24px;
  box-sizing: border-box;
  z-index: 1;
}

.wallet-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.wallet-step h3 {
  margin: 0;
}

.wallet-step__desc {
  color: #667085;
  margin: 10px 0 16px;
}

.wallet-select,
.wallet-button {
  border-radius: 14px;
  border: 1px solid rgba(5, 15, 25, 0.12);
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
  width: 100%;
  text-align: left;
  font-size: 16px;
  box-sizing: border-box;
}

.wallet-select.active {
  border-color: rgba(0, 87, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.08) inset;
}

.wallet-select.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.wallet-action,
.wallet-back {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 16px;
}

.wallet-action {
  background: #ff8d5d;
  color: #fff;
  margin-top: 8px;
}

.wallet-back {
  background: #f4f4f4;
  color: #111;
  margin-top: 4px;
}

.wallet-address {
  margin: 0 0 12px;
  word-break: break-all;
  font-weight: 600;
}

.wallet-address--small {
  color: #667085;
  font-size: 13px;
}


.wallet-step--loading {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-step--loading > :not(.wallet-step2-loading) {
  display: none !important;
}

.wallet-step2-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #667085;
}

.wallet-step2-loading p {
  margin: 0;
}

.wallet-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(5, 15, 25, 0.12);
  border-top-color: #ff8d5d;
  animation: wallet-spin 0.9s linear infinite;
}

@keyframes wallet-spin {
  to {
    transform: rotate(360deg);
  }
}
