



.token-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(60, 18, 90, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  backdrop-filter: blur(2px);
  transition: opacity 0.18s;
  box-sizing: border-box;
  display:none;
}


.token-modal-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 38px #b18dc634, 0 2px 8px #e3adc944;
  width: 100%;
  max-width: 370px;
  padding: 34px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modal-pop 0.34s cubic-bezier(.76,.04,.39,.95);
  border: none;
}

@keyframes modal-pop {
  0% { transform: scale(0.97) translateY(40px); opacity:0; }
  70% { transform: scale(1.04) translateY(-8px); opacity:1; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}

#token-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.token-modal-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.token-modal-logo svg { display:block; }
.token-modal-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #a21caf;
  letter-spacing: -0.3px;
}
.token-modal-desc {
  font-size: 1.08em;
  color: #5a416e;
  text-align: center;
  margin-bottom: 21px;
  margin-top: -5px;
  line-height: 1.36;
}

.token-input-label {
  font-weight: 500;
  font-size: 1em;
  color: #a21caf;
  display: block;
  margin-bottom: 7px;
  margin-top: 8px;
  letter-spacing: -0.2px;
}
.token-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1.5px solid #e3adc9;
  background: #f8f8fb;
  font-size: 1.11em;
  margin-bottom: 11px;
  outline: none;
  transition: border 0.16s;
  color: #4a136f;
}
.token-input:focus {
  border: 1.7px solid #a21caf;
  background: #fcf4ff;
}

.token-modal-submit-btn {
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.token-upload-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.token-upload-btn {
  background: #f4eafd;
  color: #a21caf;
  border: none;
  padding: 8px 8px;
  margin-bottom:9px;
  margin-left:10px;
  border-radius: 9px;
  font-size: 0.98em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.token-upload-btn:hover {
  background: #e3adc9;
  color: #fff;
}
.token-upload-filename {
  font-size: 0.97em;
  color: #5a416e;
  opacity: 0.82;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-modal-error {
  margin-top: 8px;
  color: #e0154d;
  font-size: 1em;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}
@media (max-width: 600px) {
  .token-modal-card 
  { 
    /* max-width: 98vw;  */
    /* padding: 17vw 6vw 8vw 6vw;  */
    width:100%;

    margin-left: 10px;
    margin-right: 10px;
  }
}

.token-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-bottom: 11px;
  margin-left: auto;
  margin-right: auto;

}

.token-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 13px; /* right padding for the button */
  border-radius: 11px;
  border: 1.5px solid #e3adc9;
  background: #f8f8fb;
  font-size: 1.11em;
  outline: none;
  transition: border 0.16s;
  color: #4a136f;
  line-height: 42px; /* This helps vertical center text and icon */
  box-sizing: border-box;
}
.token-input:focus {
  border: 1.7px solid #a21caf;
  background: #fcf4ff;
}






.token-visibility-btn {
  position: absolute;
  top: 0;
  right: 51px;
  height: 42px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  z-index: 2;
}

.token-visibility-btn svg {
  width: 22px;
  height: 22px;
  stroke: #a098b4;
  pointer-events: none;
  display: block;
}
.token-visibility-btn:focus svg,
.token-visibility-btn:hover svg {
  stroke: #a21caf;
}




.token-modal-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 260px;
  margin: 12px auto 0 auto;
}



.token-modal-submit-btn {
  background: linear-gradient(92deg,#a21caf 60%,#e3adc9 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 9px #e3adc920;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
   font-weight: 600;
}
.token-modal-submit-btn:hover {
  background: linear-gradient(92deg,#e3adc9 20%,#a21caf 100%);
  color: #fff;
}

/* Specific style for back button */
.token-modal-free-btn {
  background: #f4eafd;
  color: #a21caf;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
.token-modal-free-btn:hover,
.token-modal-free-btn:focus {
  background: #e3adc9;
  color: #fff;
  
}



/* Make both buttons the same height and font-size */
.token-modal-free-btn,
.token-modal-submit-btn {
  min-width: 0;
  width: 50%;
  max-width: none;
  font-size: 1.08em;
  padding: 11px 0 10px 0;
  border-radius: 11px;
  text-align: center;
  transition: background 0.13s, color 0.13s;
  box-sizing: border-box;
  line-height: 1.2;
}


.token-modal-purchase-hint {
  margin-top: 18px;
  font-size: 0.98em;
  text-align: center;
  color: #8567a3;
  opacity: 0.98;
}
.token-modal-purchase-hint a {
  color: #a21caf;
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.14s;
}
.token-modal-purchase-hint a:hover,
.token-modal-purchase-hint a:focus {
  color: #e3adc9;
  text-decoration: underline;
}








/* Make the Premium item look/size exactly like the other nav links */
.nav-premium-link {
  text-decoration: none;
  font-weight: 500;
  color: #443059;
  padding: 7px 18px;                   /* matches .nav-links a */
  border-radius: 22px;                 /* matches .nav-links a */
  transition: background 0.13s, color 0.13s;
}
.nav-premium-link:hover,
.nav-premium-link:focus {
  background: #f6ecfb;
  color: #a21caf;
}

/* Icon before the text */
.nav-premium-icon {
  margin-right: 8px;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: 3px;
  color: #a21caf;                      /* brand accent */
}
.nav-premium-sep { margin: 0 4px; }

/* On mobile your menu turns vertical; <a> styles already match other items */
@media (max-width: 700px) {
  .nav-premium-link { display: block; padding: 14px 22px; font-size: 1.05em; }
}



#nav-li-logout {
  display: none;
}
#nav-li-premium {
  display: none;
}

#nav-li-premium a {
  cursor: default;
  font-weight: 400;
}

#nav-li-premium a:hover,
#nav-li-premium a:focus {
  background: none;
}