/* =========================================================
   TERM-FIN Member UX V1
   Wallet-FINFIN popup + Account OTP + LINE contact
   ========================================================= */

.tf-wallet-launch{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

button.mini-link.tf-wallet-launch{
  border:1px solid var(--line, #ead6a9);
}

.tf-wallet-launch .tf-wallet-chevron{
  margin-left:auto;
  opacity:.55;
  font-size:13px;
}

/* Wallet popup */
.tf-finfin-modal{
  position:fixed;
  inset:0;
  z-index:900;
  display:grid;
  place-items:center;
  padding:20px;
}

.tf-finfin-modal[hidden]{
  display:none!important;
}

.tf-finfin-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(25,18,8,.48);
  backdrop-filter:blur(6px);
  cursor:pointer;
  animation:tfFinfinFade .2s ease;
}

.tf-finfin-card{
  position:relative;
  z-index:1;
  width:min(430px,100%);
  padding:30px 26px 25px;
  text-align:center;
  border:1px solid #e3c171;
  border-radius:26px;
  color:#33220b;
  background:
    radial-gradient(circle at 50% -5%,rgba(255,219,101,.38),transparent 38%),
    linear-gradient(145deg,#fffefb,#fff5d9);
  box-shadow:0 30px 90px rgba(65,42,8,.28);
  animation:tfFinfinPop .26s cubic-bezier(.2,.8,.2,1);
}

.tf-finfin-close{
  position:absolute;
  right:14px;
  top:14px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #ead7ad;
  border-radius:50%;
  color:#74551d;
  background:#fffdf9;
  cursor:pointer;
}

.tf-finfin-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  margin:0 auto 10px;
  border-radius:22px;
  color:#684300;
  font-size:32px;
  background:linear-gradient(145deg,#fff1a5,#e6a91d);
  box-shadow:0 12px 30px rgba(195,132,11,.22);
}

.tf-finfin-card>small{
  display:block;
  color:#9a815e;
  font-size:12px;
}

.tf-finfin-card h2{
  margin:2px 0 2px;
  font-size:24px;
}

.tf-finfin-balance{
  display:block;
  margin:4px 0 15px;
  color:#b57406;
  font-size:40px;
  line-height:1.1;
}

.tf-finfin-coin{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 18px;
  padding:10px 12px;
  border:1px solid #ead096;
  border-radius:13px;
  color:#75530e;
  background:#fff8df;
  font-size:12px;
}

.tf-finfin-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.tf-finfin-actions .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:46px;
}

body.tf-finfin-lock{
  overflow:hidden;
}

@keyframes tfFinfinFade{
  from{opacity:0}
  to{opacity:1}
}
@keyframes tfFinfinPop{
  from{opacity:0;transform:translateY(18px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* Account password OTP */
.tf-password-security{
  position:relative;
  overflow:hidden;
}

.tf-password-security:before{
  content:"";
  position:absolute;
  right:-80px;
  top:-100px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(244,192,51,.16),transparent 68%);
  pointer-events:none;
}

.tf-security-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.tf-security-head>i{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 46px;
  border-radius:14px;
  color:#805500;
  background:#fff0b8;
  font-size:21px;
}

.tf-security-head h2{
  margin:0;
}

.tf-security-head p{
  margin:3px 0 0;
  color:#927c5f;
  font-size:12px;
}

.tf-account-email-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  margin-bottom:13px;
  border:1px solid #ead7ad;
  border-radius:13px;
  color:#604820;
  background:#fff9e9;
}

.tf-account-email-box i{
  color:#c3850b;
}

.tf-otp-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:end;
}

.tf-otp-row .btn{
  height:50px;
  white-space:nowrap;
}

.tf-account-password-result{
  display:none;
  margin:12px 0;
}

.tf-account-password-result.show{
  display:block;
}

.tf-pass-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

/* Contact LINE page */
.tf-contact-wrap{
  max-width:760px;
  margin:20px auto 50px;
}

.tf-contact-card{
  position:relative;
  overflow:hidden;
  padding:42px 28px!important;
  text-align:center;
}

.tf-contact-card:before,
.tf-contact-card:after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.tf-contact-card:before{
  width:270px;
  height:270px;
  left:-140px;
  top:-130px;
  background:radial-gradient(circle,rgba(6,199,85,.17),transparent 68%);
}

.tf-contact-card:after{
  width:300px;
  height:300px;
  right:-150px;
  bottom:-170px;
  background:radial-gradient(circle,rgba(244,190,44,.15),transparent 68%);
}

.tf-line-logo{
  position:relative;
  z-index:1;
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  margin:0 auto 15px;
  border-radius:28px;
  color:#fff;
  background:#06c755;
  font:900 22px/1 Arial,sans-serif;
  box-shadow:0 18px 38px rgba(6,199,85,.23);
}

.tf-contact-card h1{
  position:relative;
  z-index:1;
  margin:0 0 7px;
}

.tf-contact-card p{
  position:relative;
  z-index:1;
  max-width:520px;
  margin:0 auto 22px;
  color:#8b7657;
}

.tf-line-btn{
  position:relative;
  z-index:1;
  min-width:min(330px,100%);
  min-height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  overflow:hidden;
  border:1px solid #04a949;
  border-radius:16px;
  color:#fff!important;
  background:linear-gradient(135deg,#08d45e,#04ac48)!important;
  box-shadow:0 14px 34px rgba(6,199,85,.24)!important;
  font-weight:900;
  font-size:15px;
  animation:tfLinePulse 2.2s ease-in-out infinite;
}

.tf-line-btn:before{
  content:"";
  position:absolute;
  top:-30%;
  bottom:-30%;
  left:-80px;
  width:55px;
  transform:skewX(-22deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);
  animation:tfLineShine 2.8s ease-in-out infinite;
}

.tf-line-btn i,
.tf-line-btn span{
  position:relative;
  z-index:1;
}

.tf-line-btn i{
  font-size:23px;
}

.tf-line-btn:hover{
  transform:translateY(-2px) scale(1.015);
}

.tf-line-note{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  gap:8px;
  align-items:center;
  margin-top:17px;
  color:#927c5f;
  font-size:11px;
}

@keyframes tfLinePulse{
  0%,100%{box-shadow:0 14px 34px rgba(6,199,85,.22),0 0 0 0 rgba(6,199,85,.18)}
  50%{box-shadow:0 17px 38px rgba(6,199,85,.29),0 0 0 10px rgba(6,199,85,0)}
}

@keyframes tfLineShine{
  0%,35%{left:-80px}
  65%,100%{left:calc(100% + 80px)}
}

@media(max-width:560px){
  .tf-finfin-actions,
  .tf-pass-grid{
    grid-template-columns:1fr;
  }

  .tf-otp-row{
    grid-template-columns:1fr;
  }

  .tf-otp-row .btn{
    width:100%;
  }

  .tf-finfin-balance{
    font-size:34px;
  }
}
