@font-face{
  font-family:Vazir;
  src:url('../../fonts/Vazir-Regular.woff2') format('woff2'),
      url('../../fonts/Vazir-Regular.woff') format('woff'),
      url('../../fonts/Vazir-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:Vazir;
  src:url('../../fonts/Vazir-Bold.woff2') format('woff2'),
      url('../../fonts/Vazir-Bold.woff') format('woff'),
      url('../../fonts/Vazir-Bold.ttf') format('truetype');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:Vazir;
  src:url('../../fonts/Vazir.woff2') format('woff2'),
      url('../../fonts/Vazir.woff') format('woff'),
      url('../../fonts/Vazir.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --olive:#686323;
  --olive2:rgba(89,83,24,.88);
  --cream:rgba(255,255,244,.86);
  --yellow:#ecd541;
  --green:#8bd13c;
  --blue:#6e82eb;
  --orange:#bd721d;
  --txt:#686323;
  --darkField:rgba(89,83,24,.88);
  --focusField:rgba(255,255,244,.86);
}

*{box-sizing:border-box}

html,
body{
  margin:0;
  width:100%;
  min-height:100%;
  height:100%;
  font-family:Vazir,Tahoma,sans-serif!important;
  direction:rtl;
  color:var(--txt);
  overflow-x:hidden;
}

body{
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
}

button,
input,
select,
textarea{
  font-family:Vazir,Tahoma,sans-serif!important;
}

.page{
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  background:#d7c25a url('../images/bg.jpg') center/cover no-repeat;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.wrap{
  width:min(100%,768px);
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  padding:68px 8.5% 82px;
  text-align:center;
  position:relative;
}

.register-wrap{padding-top:82px}
.forgot-wrap{padding-top:92px}

.hero-banner{
  width:100%;
  min-height:188px;
  margin:0 auto 20px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.hero-banner img{
  display:block;
  max-width:82%;
  height:auto;
  object-fit:contain;
}

.recover-banner{
  min-height:165px;
  margin-bottom:22px;
}

.success-banner{
  min-height:188px;
  margin-bottom:16px;
}

.brand-kicker{
  font-weight:700;
  font-size:23px;
  margin:0 0 4px;
}

.logo-img{
  display:block;
  margin:0 auto 8px;
  max-width:82%;
  height:auto;
}

.fallback-title{
  color:#fff;
  font-size:54px;
  line-height:1;
  font-weight:900;
  margin:0;
  text-shadow:0 2px 1px rgba(0,0,0,.08);
}

.fallback-sub{
  color:#fff;
  font-size:29px;
  font-weight:700;
  margin:4px 0 18px;
}

.forgot-title{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.12);
  color:var(--olive);
  border-radius:24px;
  padding:7px 24px;
  font-size:20px;
  font-weight:700;
  margin-bottom:18px;
}

.syllabus-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1.4px solid var(--olive);
  background:rgba(255,255,255,.12);
  color:var(--olive);
  border-radius:20px;
  padding:4px 18px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  margin-bottom:14px;
}

.field,
.price-trigger{
  height:56px;
  border-radius:28px;
  border:0;
  background:var(--darkField);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 22px;
  margin:16px 0;
  color:#fff;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}

.field:focus-within,
.phone-row:focus-within,
.price-dropdown.open .price-trigger,
.price-trigger:focus{
  background:var(--focusField);
  border:1.5px solid var(--yellow);
  color:var(--olive);
  box-shadow:0 8px 18px rgba(255,242,138,.22);
  outline:0;
}

.field img,
.field-icon{
  width:25px;
  height:25px;
  object-fit:contain;
  flex:0 0 auto;
}

.field input{
  border:0;
  background:transparent;
  outline:0;
  width:100%;
  height:100%;
  font-size:18px;
  font-weight:400;
  color:inherit;
  text-align:right;
}

.field input::placeholder,
.phone-input input::placeholder{
  color:rgba(255,255,255,.55);
}

.field:focus-within input::placeholder,
.phone-row:focus-within input::placeholder{
  color:rgba(104,99,35,.72);
}

/* Price radio selector */
.price-radio-box{
  width:100%;
  min-height:56px;
  border-radius:28px;
  background:var(--darkField);
  color:#fff;
  padding:0;
  margin:16px 0;
  overflow:hidden;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}

.price-radio-box.open,
.price-radio-box:focus-within{
  background:var(--darkField);
  color:#fff;
}

.price-radio-head{
  width:100%;
  min-height:56px;
  border:0;
  background:transparent;
  color:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 22px;
  cursor:pointer;
  position:relative;
}

.price-wallet-icon{
  position:absolute;
  right:22px;
  top:50%;
  transform:translateY(-50%);
  width:25px;
  height:25px;
  object-fit:contain;
}

.price-radio-title{
  display:block;
  max-width:calc(100% - 58px);
  color:inherit;
  font-size:18px;
  font-weight:400;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
}

.price-radio-options{
  display:none;
  grid-template-columns:1fr;
  gap:0;
  padding:0 54px 18px 54px;
}

.price-radio-box.open .price-radio-options{
  display:grid;
}

.price-radio-option{
  width:100%;
  border:0;
  background:transparent;
  color:#fff;
  display:grid;
  grid-template-columns:34px 1fr;
  align-items:center;
  gap:10px;
  padding:5px 0;
  font-size:18px;
  font-weight:400;
  text-align:right;
  cursor:pointer;
}

.radio-dot{
  width:22px;
  height:22px;
  border-radius:50%;
  background:rgba(255,255,255,.78);
  border:2px solid rgba(255,255,255,.88);
  box-shadow:inset 0 0 0 5px transparent;
}

.price-radio-option.active .radio-dot{
  background:#fff;
  box-shadow:inset 0 0 0 5px var(--olive);
}


.price-radio-amount{
  direction:rtl;
  text-align:right;
  font-size:18px;
  font-weight:400;
  white-space:nowrap;
}

.price-radio-box.selected:not(.open) .price-radio-head{
  justify-content:center;
}

.price-radio-box.selected:not(.open) .price-radio-title{
  font-weight:700;
}

.phone-row{
  display:flex;
  align-items:center;
  background:var(--darkField);
  height:56px;
  color:#fff;
  border-radius:28px;
  margin:16px 0;
  overflow:hidden;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}

.phone-row .send{
  height:44px;
  margin-left:8px;
  margin-right:0;
  min-width:132px;
  border:0;
  border-radius:22px;
  background:var(--green);
  color:#fff;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  white-space:nowrap;
}

.phone-row .send.wait{background:#817b36}
.phone-row .send:disabled{opacity:.82;cursor:not-allowed}

.phone-input{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 22px;
  flex:1;
  color:inherit;
}

.phone-input img{
  width:25px;
  height:25px;
  object-fit:contain;
  flex:0 0 auto;
}

.phone-input input{
  border:0;
  background:transparent;
  outline:0;
  width:100%;
  height:54px;
  font-size:18px;
  font-weight:400;
  color:#fff;
  text-align:right;
}

.phone-row:focus-within .phone-input input{color:var(--olive)}
.phone-input input:not(:placeholder-shown){color:#fff}
.phone-row:focus-within .phone-input input:not(:placeholder-shown){color:var(--olive)}

.phone-input input:-webkit-autofill,
.field input:-webkit-autofill{
  -webkit-text-fill-color:#fff;
  transition:background-color 9999s ease-in-out 0s;
}

.phone-row:focus-within .phone-input input:-webkit-autofill,
.field:focus-within input:-webkit-autofill{
  -webkit-text-fill-color:var(--olive);
}

.otp-area{display:none}
.otp-area.show{display:block}

.otp-help{
  font-size:18px;
  font-weight:700;
  margin:12px 0 18px;
}

.otp-boxes{
  direction:ltr;
  display:flex;
  justify-content:center;
  gap:16px;
}

.otp-boxes input{
  width:82px;
  height:82px;
  border-radius:22px;
  border:0;
  background:rgba(87,82,22,.86);
  color:#fff;
  text-align:center;
  font-size:32px;
  font-weight:400;
  outline:0;
}

.price{
  display:none;
  font-weight:700;
  font-size:25px;
  margin:26px 0 18px;
  min-height:32px;
}

.pay-btn{
  height:56px;
  min-width:360px;
  border:0;
  border-radius:28px;
  background:var(--blue);
  box-shadow:0 8px 15px rgba(50,62,140,.30);
  color:#fff;
  font-size:22px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  gap:12px;
  align-items:center;
  justify-content:center;
}

.pay-btn.off{
  background:#a6a6a6;
  box-shadow:none;
  cursor:not-allowed;
}

.pay-tick{
  width:30px;
  height:30px;
  object-fit:contain;
  display:inline-block;
  flex:0 0 auto;
}

.pay-btn .tick{
  width:30px;
  height:30px;
  border:2px solid #fff;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.recover-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:360px;
  max-width:100%;
  min-height:56px;
  border:1.7px solid var(--olive);
  border-radius:28px;
  padding:6px 22px;
  margin-top:22px;
  color:var(--olive);
  text-decoration:none;
  font-size:20px;
  font-weight:700;
}

.forgot-wrap .field,
.forgot-wrap .recover-btn,
.forgot-wrap .alert{
  width:360px;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}

.alert{
  display:none;
  margin-top:8px;
  margin-bottom:8px;
  border-radius:13px;
  padding:7px 11px;
  background:rgba(255,255,255,.78);
  font-size:15px;
  font-weight:700;
}

.alert.ok{color:#2a8a19}
.alert.err{color:#b42318}

.success-badge{
  display:inline-flex;
  background:var(--green);
  color:#fff;
  border-radius:24px;
  padding:10px 28px;
  font-size:18px;
  font-weight:700;
  margin:22px 0 -18px;
  position:relative;
  z-index:2;
}

.note-card{
  background:var(--cream);
  border:1.7px solid var(--yellow);
  border-radius:26px;
  padding:36px 30px;
  font-size:18px;
  line-height:2;
  font-weight:700;
}

.license-card{
  background:var(--cream);
  border:1.7px solid var(--yellow);
  direction:ltr;
  text-align:left;
  word-break:break-all;
  margin-top:18px;
  position:relative;
  min-height:96px;
  max-height:138px;
  overflow:auto;
  padding:24px 58px 24px 22px;
  font-size:14px;
  line-height:1.55;
  font-weight:700;
  border-radius:20px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.license-card::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

.license-card .license-icon,
.license-card > img{
  position:absolute;
  right:17px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  object-fit:contain;
}

.license-card #lic{
  display:block;
  direction:ltr;
  text-align:left;
}

#result .license-card{margin-top:14px}

.action-row{
  display:flex;
  gap:22px;
  justify-content:center;
  margin-top:30px;
}

.copy-btn,
.download-btn{
  min-height:46px;
  border:0;
  border-radius:28px;
  padding:13px 30px;
  color:#fff;
  font-size:21px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.copy-btn{background:var(--blue)}
.download-btn{background:var(--orange)}

.copy-btn img.copy-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  flex:0 0 auto;
}

.small-phone{
  font-size:18px;
  font-weight:700;
  margin-top:24px;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}

.modal.show{display:flex}

.modal-card{
  width:min(680px,96vw);
  max-height:82vh;
  overflow:auto;
  background:rgba(255,255,244,.95);
  border:1.7px solid var(--yellow);
  border-radius:26px;
  padding:42px 22px 22px;
  text-align:right;
  line-height:2;
  color:var(--olive);
  font-size:18px;
  position:relative;
}

.modal-close{
  position:absolute;
  top:12px;
  left:14px;
  width:34px;
  height:34px;
  border:0;
  background:var(--olive2);
  color:#fff;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  font-size:28px;
  line-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:400;
}

.loader{
  position:fixed;
  inset:0;
  background:rgba(255,245,205,.45);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:60;
  font-weight:700;
  font-size:22px;
}

.loader.show{display:flex}

.honeypot{
  position:absolute;
  right:-9999px;
  opacity:0;
}

.ltr{direction:ltr}

.admin{
  background:#f6f4df;
  min-height:100vh;
  padding:24px;
}

.admin .panel{
  max-width:1150px;
  margin:auto;
  background:#fff;
  border-radius:18px;
  padding:18px;
  border:1px solid #e5df9b;
}

.admin input,
.admin select,
.admin textarea{
  width:100%;
  border:1px solid #ddd;
  border-radius:10px;
  padding:10px;
}

.admin button,
.admin .btn{
  background:#686323;
  color:#fff;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  text-decoration:none;
  display:inline-block;
}

.admin table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
}

.admin th,
.admin td{
  border-bottom:1px solid #eee;
  padding:9px;
  text-align:right;
}

.admin nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 18px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.card-admin{
  background:#faf9ee;
  border:1px solid #ece7b8;
  border-radius:14px;
  padding:14px;
}

@media(max-width:760px){
  .wrap{
    padding:46px 7% 68px;
  }

  .register-wrap{
    padding-top:58px;
  }

  .forgot-wrap{
    padding-top:70px;
  }

  .hero-banner{
    min-height:164px;
    margin-bottom:16px;
  }

  .hero-banner img{
    max-width:86%;
  }

  .recover-banner,
  .success-banner{
    min-height:142px;
    margin-bottom:20px;
  }

  .brand-kicker{
    font-size:19px;
  }

  .fallback-title{
    font-size:43px;
  }

  .fallback-sub{
    font-size:24px;
  }

  .forgot-title{
    font-size:17px;
    margin-bottom:40px;
  }

  .syllabus-btn{
    font-size:15px;
    padding:4px 16px;
    margin-bottom:12px;
  }

  .field,
  .price-trigger,
  .phone-row{
    height:54px;
    border-radius:27px;
  }

  .field,
  .price-trigger{
    padding:0 19px;
  }

  .field img,
  .field-icon,
  .phone-input img{
    width:24px;
    height:24px;
  }

  .select-label,
  .field input,
  .phone-input input{
    font-size:17px;
  }

  .arrow-icon{
    width:17px;
    height:17px;
  }

  .phone-row{padding:0}

  .phone-row .send{
    min-width:128px;
    height:42px;
    font-size:14px;
    margin-left:8px;
    margin-right:0;
  }

  .phone-input{
    gap:11px;
    padding:0 19px;
  }

  .phone-input input{height:52px}

  .price-option{
    font-size:15px;
    padding:10px 13px;
  }

  .price-option b{font-size:14px}

  .otp-help{
    font-size:16px;
    margin:10px 0 16px;
  }

  .otp-boxes{gap:12px}

  .otp-boxes input{
    width:64px;
    height:70px;
    border-radius:19px;
    font-size:27px;
  }

  .price{
    font-size:22px;
    margin:24px 0 16px;
    min-height:30px;
  }

  .pay-btn{
    min-width:0;
    width:78%;
    height:54px;
    border-radius:27px;
    font-size:20px;
    gap:11px;
  }

  .pay-tick{
    width:28px;
    height:28px;
  }

  .pay-btn .tick{
    width:28px;
    height:28px;
    font-size:17px;
  }

  .recover-link{
    font-size:17px;
    padding:6px 18px;
    margin-top:22px;
    width:78%;
    min-height:54px;
    border-radius:27px;
  }

  .forgot-wrap .field,
  .forgot-wrap .recover-btn,
  .forgot-wrap .alert{
    width:78%;
    max-width:100%;
  }

  .alert{
    font-size:13px;
    padding:6px 10px;
    margin-top:7px;
    margin-bottom:7px;
  }

  .success-badge{font-size:21px}

  .note-card{
    font-size:19px;
    padding:30px 21px;
  }

  .license-card{
    min-height:88px;
    max-height:128px;
    padding:20px 52px 20px 18px;
    font-size:13.5px;
    line-height:1.55;
    border-radius:18px;
  }

  .license-card .license-icon,
  .license-card > img{
    right:15px;
    width:22px;
    height:22px;
  }

  .action-row{flex-direction:column}

  .copy-btn,
  .download-btn{
    min-height:44px;
    font-size:16px;
    padding:10px 22px;
    border-radius:23px;
  }

  .copy-btn img.copy-icon{
    width:18px;
    height:18px;
  }

  .modal-card{font-size:16px}

  .grid{grid-template-columns:1fr}
}

@media(max-width:430px){
  .wrap{
    padding-left:6.5%;
    padding-right:6.5%;
  }

  .hero-banner{min-height:148px}

  .syllabus-btn{
    font-size:14px;
    padding:4px 14px;
    margin-bottom:10px;
  }

  .field,
  .price-trigger,
  .phone-row{
    height:52px;
    border-radius:26px;
  }

  .select-label,
  .field input,
  .phone-input input{
    font-size:16px;
  }

  .field img,
  .field-icon,
  .phone-input img{
    width:23px;
    height:23px;
  }

  .arrow-icon{
    width:16px;
    height:16px;
  }

  .phone-row .send{
    min-width:124px;
    height:40px;
    font-size:13px;
  }

  .otp-boxes input{
    width:58px;
    height:64px;
  }

  .pay-btn{
    height:52px;
    border-radius:26px;
    font-size:19px;
  }

  .pay-tick{
    width:26px;
    height:26px;
  }

  .recover-link{
    font-size:14px;
    min-height:52px;
    border-radius:26px;
  }

  .forgot-wrap .field,
  .forgot-wrap .recover-btn,
  .forgot-wrap .alert{
    width:78%;
    max-width:100%;
  }
}

/* v16: responsive price radio selector */
@media(max-width:760px){
  .price-radio-box{
    min-height:54px;
    border-radius:27px;
    margin:16px 0;
  }

  .price-radio-head{
    min-height:54px;
    padding:0 19px;
  }

  .price-wallet-icon{
    right:19px;
    width:24px;
    height:24px;
  }

  .price-radio-title{
    max-width:calc(100% - 54px);
    font-size:17px;
  }

  .price-radio-options{
    padding:0 45px 16px 45px;
  }

  .price-radio-option{
    grid-template-columns:30px 1fr;
    gap:8px;
    padding:4px 0;
  }

  .radio-dot{
    width:20px;
    height:20px;
  }


  .price-radio-amount{
    font-size:17px;
  }
}

@media(max-width:430px){
  .price-radio-box{
    min-height:52px;
    border-radius:26px;
  }

  .price-radio-head{
    min-height:52px;
  }

  .price-wallet-icon{
    width:23px;
    height:23px;
  }

  .price-radio-title{
    font-size:16px;
  }

  .price-radio-options{
    padding:0 34px 15px 34px;
  }

  .price-radio-option{
    grid-template-columns:28px 1fr;
    gap:7px;
  }

  .radio-dot{
    width:19px;
    height:19px;
  }


  .price-radio-amount{
    font-size:16px;
  }
}

/* v17: OTP spacing fix */
.otp-area.show{
  display:block;
  margin:14px 0 30px;
}

.otp-boxes{
  margin-bottom:8px;
}

@media(max-width:760px){
  .otp-area.show{
    margin:12px 0 28px;
  }
}

@media(max-width:430px){
  .otp-area.show{
    margin:10px 0 26px;
  }
}


/* v19: OTP spacing fix */
.otp-area.show{
  display:block;
  margin:12px 0 28px;
}

.otp-boxes{
  margin-bottom:18px;
}

@media(max-width:760px){
  .otp-area.show{
    margin:10px 0 26px;
  }
  .otp-boxes{
    margin-bottom:16px;
  }
}

@media(max-width:430px){
  .otp-area.show{
    margin:8px 0 24px;
  }
}

/* v23: green-blue background palette + red active payment button */
:root{
  --olive:#064d63;
  --olive2:rgba(4,76,88,.88);
  --cream:rgba(245,255,238,.88);
  --yellow:#bce94a;
  --green:#8ed94f;
  --blue:#0b72a8;
  --orange:#e07a34;
  --txt:#064d63;
  --darkField:rgba(4,76,88,.84);
  --focusField:rgba(247,255,240,.92);
  --red:#e94338;
  --redDark:#c72f29;
  --teal:#087f86;
  --tealDark:#055f6f;
}

.page{
  background:#087f86 url('../images/bg.jpg') center/cover no-repeat;
}

.forgot-title,
.syllabus-btn,
.recover-link{
  color:#064d63;
  background:rgba(245,255,238,.18);
}

.syllabus-btn,
.recover-link{
  border-color:rgba(6,77,99,.72);
}

.field,
.price-trigger,
.price-radio-box,
.phone-row{
  background:rgba(4,76,88,.84);
  color:#f6fff1;
}

.field:focus-within,
.phone-row:focus-within,
.price-dropdown.open .price-trigger,
.price-trigger:focus{
  background:rgba(247,255,240,.92);
  border-color:rgba(188,233,74,.82);
  color:#064d63;
  box-shadow:0 8px 18px rgba(142,217,79,.22);
}

.field input::placeholder,
.phone-input input::placeholder{
  color:rgba(246,255,241,.64);
}

.field:focus-within input::placeholder,
.phone-row:focus-within input::placeholder{
  color:rgba(6,77,99,.68);
}

.price-radio-box.open,
.price-radio-box:focus-within{
  background:rgba(4,76,88,.88);
  color:#f6fff1;
}

.price-radio-option{
  color:#f6fff1;
}

.radio-dot{
  background:rgba(246,255,241,.84);
  border-color:rgba(246,255,241,.92);
}

.price-radio-option.active .radio-dot{
  background:#fff;
  box-shadow:inset 0 0 0 5px var(--red);
}

.phone-row .send{
  background:#8ed94f;
  color:#fff;
  box-shadow:0 8px 16px rgba(95,170,52,.22);
}

.phone-row .send.wait{
  background:#087f86;
  color:#f6fff1;
  box-shadow:none;
}

.phone-row:focus-within .phone-input input,
.phone-row:focus-within .phone-input input:not(:placeholder-shown),
.phone-row:focus-within .phone-input input:-webkit-autofill,
.field:focus-within input:-webkit-autofill{
  color:#064d63;
  -webkit-text-fill-color:#064d63;
}

.otp-help{
  color:#064d63;
}

.otp-boxes input{
  background:rgba(4,76,88,.84);
  color:#fff;
  box-shadow:0 8px 18px rgba(4,76,88,.16);
}

.otp-boxes input:focus{
  background:rgba(247,255,240,.94);
  color:#064d63;
  border:1.5px solid rgba(188,233,74,.82);
}

.pay-btn{
  background:var(--red);
  box-shadow:0 10px 22px rgba(233,67,56,.30);
}

.pay-btn:hover{
  background:var(--redDark);
  box-shadow:0 12px 26px rgba(199,47,41,.34);
}

.pay-btn.off{
  background:#a6b1af;
  box-shadow:none;
  cursor:not-allowed;
}

.alert{
  background:rgba(247,255,240,.86);
}

.alert.ok{
  color:#2c8d24;
}

.alert.err{
  color:#c72f29;
}

.success-badge{
  background:#8ed94f;
  box-shadow:0 8px 18px rgba(95,170,52,.22);
}

.note-card,
.license-card{
  background:rgba(245,255,238,.88);
  border-color:rgba(188,233,74,.72);
}

.copy-btn{
  background:#0b72a8;
}

.download-btn{
  background:#5faa34;
}

.modal-card{
  background:rgba(247,255,240,.96);
  border-color:rgba(188,233,74,.70);
  color:#064d63;
}

.modal-close{
  background:rgba(4,76,88,.88);
}

.loader{
  background:rgba(247,255,240,.45);
  color:#064d63;
}

.admin{
  background:#eef8ee;
}

.admin .panel{
  border-color:#d4e8c8;
}

.admin button,
.admin .btn{
  background:#055f6f;
}

/* v24: final color polish + OTP guidance */
:root{
  --red:#e94338;
  --redDark:#c72f29;
  --tealText:#064d63;
  --softPanel:rgba(245,255,238,.78);
}

/* لینک «اگر قبلاً ثبت‌نام کردید...» روشن و ملایم */
.recover-link{
  background:rgba(245,255,238,.30) !important;
  border:1.5px solid rgba(6,77,99,.92) !important;
  color:#064d63 !important;
  box-shadow:0 8px 18px rgba(4,76,88,.10);
}

.recover-link:hover{
  background:rgba(255,255,255,.86) !important;
}

/* متن راهنمای OTP سفید */
.otp-help{
  color:#fff !important;
  text-shadow:0 1px 8px rgba(4,76,88,.22);
}

/* کادرهای OTP هماهنگ با بک‌گراند */
.otp-boxes input{
  background:rgba(4,76,88,.86) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(4,76,88,.18) !important;
}

.otp-boxes input:focus{
  background:rgba(245,255,238,.95) !important;
  color:#064d63 !important;
  border:1.5px solid rgba(188,233,74,.86) !important;
  box-shadow:0 9px 20px rgba(142,217,79,.24) !important;
}

/* حالت تایمر دکمه تایید شماره همراه */
.phone-row .send.wait{
  background:rgba(245,255,238,.88) !important;
  color:#064d63 !important;
  box-shadow:0 8px 16px rgba(4,76,88,.12) !important;
}

/* انیمیشن راهنما بعد از تکمیل شماره همراه */
.phone-row .send.nudge{
  animation:sendNudge .62s ease both;
}

@keyframes sendNudge{
  0%{transform:scale(1) translateX(0)}
  25%{transform:scale(1.045) translateX(-2px)}
  50%{transform:scale(.985) translateX(2px)}
  75%{transform:scale(1.025) translateX(-1px)}
  100%{transform:scale(1) translateX(0)}
}

/* دکمه کپی لایسنس مثل دکمه تایید و پرداخت */
.copy-btn{
  background:var(--red) !important;
  box-shadow:0 10px 22px rgba(233,67,56,.30) !important;
}

.copy-btn:hover{
  background:var(--redDark) !important;
}

/* بج موفقیت: سفید با متن سبز */
.success-badge{
  background:#fff !important;
  color:#2c8d24 !important;
  font-size:18px !important;
  padding:9px 24px !important;
  box-shadow:0 8px 18px rgba(4,76,88,.12) !important;
}

/* متن کارت توضیحی زیر بج موفقیت */
.note-card{
  font-size:18px !important;
}

@media(max-width:760px){
  .success-badge{
    font-size:18px !important;
    padding:8px 22px !important;
  }

  .note-card{
    font-size:18px !important;
  }
}

@media(max-width:430px){
  .success-badge{
    font-size:17px !important;
    padding:8px 20px !important;
  }

  .note-card{
    font-size:17px !important;
  }
}

/* v27: color-only palette based on the supplied green/cream/navy/orange reference image.
   No font sizes, spacing, layout, or price selector structure changed.
   Default fields are light with dark text; focused/open fields are dark with light text. */
:root{
  --olive:#143443;
  --olive2:rgba(20,52,67,.88);
  --cream:rgba(238,242,220,.88);
  --yellow:#dca03a;
  --green:#8bd246;
  --blue:#143443;
  --orange:#dd9d31;
  --txt:#143443;
  --darkField:#526f5c;
  --focusField:rgba(238,242,220,.94);
  --red:#dd9d31;
  --redDark:#c98220;
  --teal:#526f5c;
  --tealDark:#143443;
  --tealText:#143443;
  --softPanel:rgba(238,242,220,.78);
}

/* صفحه و پس‌زمینه */
.page{
  background:#bfd18b url('../images/bg.jpg') center/cover no-repeat !important;
  color:#143443;
}

/* تیترها و دکمه سرفصل */
.brand-kicker,
.forgot-title,
.syllabus-btn,
.recover-link,
.small-phone,
.price,
.otp-help{
  color:#143443 !important;
}

.forgot-title,
.syllabus-btn{
  background:rgba(238,242,220,.20) !important;
  border-color:rgba(20,52,67,.82) !important;
}

/* فیلدهای اصلی و انتخاب قیمت؛ حالت عادی روشن با نوشته تیره */
.field,
.price-trigger,
.price-radio-box,
.phone-row{
  background:rgba(238,242,220,.92) !important;
  color:#143443 !important;
  border-color:rgba(20,52,67,.58) !important;
}

/* حالت باز/فوکوس انتخاب قیمت؛ تیره با نوشته روشن */
.price-radio-box.open,
.price-radio-box:focus-within{
  background:#526f5c !important;
  color:#ffffff !important;
}

/* حالت فوکوس فیلدها؛ تیره با نوشته روشن */
.field:focus-within,
.phone-row:focus-within,
.price-dropdown.open .price-trigger,
.price-trigger:focus{
  background:#526f5c !important;
  border-color:rgba(20,52,67,.78) !important;
  color:#ffffff !important;
  box-shadow:0 8px 18px rgba(20,52,67,.12) !important;
}

/* متن placeholder در حالت عادی و فوکوس */
.field input::placeholder,
.phone-input input::placeholder{
  color:rgba(20,52,67,.58) !important;
}

.field:focus-within input::placeholder,
.phone-row:focus-within input::placeholder{
  color:rgba(255,255,255,.62) !important;
}

/* گزینه‌های قیمت: عادی تیره، هنگام باز شدن سفید */
.price-radio-option{
  color:#143443 !important;
}

.price-radio-box.open .price-radio-option,
.price-radio-box:focus-within .price-radio-option{
  color:#ffffff !important;
}

.radio-dot{
  background:rgba(20,52,67,.12) !important;
  border-color:rgba(20,52,67,.35) !important;
}

.price-radio-box.open .radio-dot,
.price-radio-box:focus-within .radio-dot{
  background:rgba(255,255,255,.78) !important;
  border-color:rgba(255,255,255,.88) !important;
}

.price-radio-option.active .radio-dot{
  background:#ffffff !important;
  box-shadow:inset 0 0 0 5px #8bd246 !important;
}

/* ورودی‌ها */
.field input,
.phone-input input{
  color:#143443 !important;
}

.field:focus-within input,
.phone-row:focus-within .phone-input input,
.phone-row:focus-within .phone-input input:not(:placeholder-shown){
  color:#ffffff !important;
}

.phone-input input:not(:placeholder-shown){
  color:#143443 !important;
}

.phone-input input:-webkit-autofill,
.field input:-webkit-autofill{
  -webkit-text-fill-color:#143443 !important;
  transition:background-color 9999s ease-in-out 0s;
}

.phone-row:focus-within .phone-input input:-webkit-autofill,
.field:focus-within input:-webkit-autofill{
  -webkit-text-fill-color:#ffffff !important;
}

/* آیکون‌های داخل فیلدها در حالت عادی و فوکوس */
.field img,
.field-icon,
.phone-input img,
.price-wallet-icon{
  opacity:.48;
}

.field:focus-within img,
.field:focus-within .field-icon,
.phone-row:focus-within .phone-input img,
.price-radio-box.open .price-wallet-icon,
.price-radio-box:focus-within .price-wallet-icon{
  opacity:.82;
}

/* دکمه تایید شماره همراه */
.phone-row .send{
  background:#8bd246 !important;
  color:#ffffff !important;
  box-shadow:0 8px 16px rgba(91,165,46,.22) !important;
}

.phone-row .send:hover{
  background:#76bf37 !important;
}

.phone-row .send.wait{
  background:rgba(238,242,220,.92) !important;
  color:#143443 !important;
  box-shadow:0 8px 16px rgba(20,52,67,.10) !important;
}

/* OTP */
.otp-help{
  color:#143443 !important;
  text-shadow:none !important;
}

.otp-boxes input{
  background:rgba(238,242,220,.92) !important;
  color:#143443 !important;
  box-shadow:none !important;
}

.otp-boxes input:focus{
  background:#526f5c !important;
  color:#ffffff !important;
  border:1.5px solid rgba(20,52,67,.62) !important;
  box-shadow:0 8px 20px rgba(20,52,67,.12) !important;
}

/* دکمه تایید و پرداخت، کپی لایسنس، دکمه بازیابی */
.pay-btn,
.copy-btn,
.recover-btn{
  background:#dd9d31 !important;
  color:#ffffff !important;
  box-shadow:0 10px 22px rgba(201,130,32,.30) !important;
}

.pay-btn:hover,
.copy-btn:hover,
.recover-btn:hover{
  background:#c98220 !important;
}

.pay-btn.off{
  background:#a6a6a6 !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
}

/* لینک بازیابی ثبت‌نام قبلی */
.recover-link{
  background:rgba(238,242,220,.25) !important;
  border:1.7px solid #143443 !important;
  color:#143443 !important;
  box-shadow:none !important;
}

.recover-link:hover{
  background:rgba(238,242,220,.52) !important;
}

/* پیام‌ها و کارت‌ها */
.alert{
  background:rgba(238,242,220,.86) !important;
}

.alert.ok{
  color:#2c8d24 !important;
}

.alert.err{
  color:#b42318 !important;
}

.success-badge{
  background:#ffffff !important;
  color:#2c8d24 !important;
  box-shadow:0 8px 18px rgba(20,52,67,.12) !important;
}

.note-card,
.license-card{
  background:rgba(238,242,220,.88) !important;
  border-color:rgba(20,52,67,.32) !important;
  color:#143443 !important;
}

.download-btn{
  background:#5ba52e !important;
}

/* پاپ‌آپ و لودر */
.modal{
  background:rgba(20,52,67,.34) !important;
}

.modal-card{
  background:rgba(238,242,220,.88) !important;
  border-color:rgba(20,52,67,.34) !important;
  color:#143443 !important;
  box-shadow:0 18px 42px rgba(20,52,67,.18) !important;
}

.modal-close{
  background:#143443 !important;
  color:#ffffff !important;
}

.loader{
  background:rgba(238,242,220,.42) !important;
  color:#143443 !important;
}

/* مدیریت */
.admin{
  background:#eef4dc !important;
  color:#143443 !important;
}

.admin .panel{
  border-color:rgba(20,52,67,.18) !important;
}

.admin button,
.admin .btn{
  background:#143443 !important;
  color:#ffffff !important;
}

.card-admin{
  background:#f7f9ec !important;
  border-color:rgba(20,52,67,.16) !important;
}

/* v28: force phone input text to white while focused */
.phone-row:focus-within .phone-input input,
.phone-row:focus-within .phone-input input:focus,
.phone-row:focus-within .phone-input input:not(:placeholder-shown),
.phone-row:focus-within .phone-input input:focus:not(:placeholder-shown){
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  caret-color:#fff !important;
}

.phone-row:focus-within .phone-input input::placeholder{
  color:rgba(255,255,255,.72) !important;
  -webkit-text-fill-color:rgba(255,255,255,.72) !important;
}

.phone-row:focus-within .phone-input input:-webkit-autofill,
.phone-row:focus-within .phone-input input:-webkit-autofill:hover,
.phone-row:focus-within .phone-input input:-webkit-autofill:focus{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  caret-color:#fff !important;
}


/* v29: requested final palette and solid project background.
   White colors are intentionally left unchanged. */
:root{
  --olive:#555555;
  --olive2:rgba(85,85,85,.88);
  --cream:rgba(229,199,101,.88);
  --yellow:#e5c765;
  --green:#e5c765;
  --blue:#555555;
  --txt:#555555;
  --darkField:#555555;
  --focusField:rgba(229,199,101,.94);
  --teal:#555555;
  --tealDark:#555555;
  --tealText:#555555;
  --softPanel:rgba(229,199,101,.78);
}

/* پس‌زمینه کل پروژه: رنگ ثابت، بدون تصویر */
.page{
  background:#e5c765 !important;
  color:#555555 !important;
}

/* عنوان بالای انتخاب قیمت */
.price-section-title{
  width:100%;
  margin:2px 0 8px;
  font-weight:700;
  font-size:16px;
  line-height:1.8;
  color:#555555;
  text-align:right;
}

/* بخش‌های تیره */
.price-radio-box.open,
.price-radio-box:focus-within,
.field:focus-within,
.phone-row:focus-within,
.price-dropdown.open .price-trigger,
.price-trigger:focus,
.otp-boxes input:focus,
.modal-close,
.admin button,
.admin .btn{
  background:#555555 !important;
}

/* بخش‌های روشن قبلی */
.field,
.price-trigger,
.price-radio-box,
.phone-row,
.otp-boxes input,
.alert,
.note-card,
.license-card,
.modal-card,
.loader,
.recover-link,
.phone-row .send.wait{
  background:rgba(229,199,101,.92) !important;
}

/* دکمه تایید شماره که قبلاً سبز روشن بود */
.phone-row .send,
.phone-row .send:hover{
  background:#e5c765 !important;
  color:#555555 !important;
  box-shadow:0 8px 16px rgba(85,85,85,.14) !important;
}

/* نقطه انتخاب قیمت در حالت فعال: سبز روشن قبلی -> رنگ جدید */
.price-radio-option.active .radio-dot{
  box-shadow:inset 0 0 0 5px #e5c765 !important;
}

/* متن‌ها و مرزهای تیره */
.brand-kicker,
.forgot-title,
.syllabus-btn,
.recover-link,
.small-phone,
.price,
.otp-help,
.price-radio-option,
.field input,
.phone-input input,
.note-card,
.license-card,
.modal-card,
.loader,
.admin,
.price-section-title{
  color:#555555 !important;
}

.forgot-title,
.syllabus-btn,
.recover-link,
.field,
.price-trigger,
.price-radio-box,
.phone-row,
.otp-boxes input,
.note-card,
.license-card,
.modal-card,
.admin .panel,
.card-admin{
  border-color:rgba(85,85,85,.55) !important;
}

.field input::placeholder,
.phone-input input::placeholder{
  color:rgba(85,85,85,.62) !important;
}

.radio-dot{
  background:rgba(85,85,85,.12) !important;
  border-color:rgba(85,85,85,.35) !important;
}

.modal{
  background:rgba(85,85,85,.34) !important;
}

/* مدیریت: روشن موردنیاز با رنگ جدید */
.admin{
  background:#e5c765 !important;
}

.card-admin{
  background:rgba(229,199,101,.72) !important;
}


/* v30: restore white registration/recovery inputs, green phone button and white success cards */

/* فیلدهای ورودی در حالت عادی سفید */
.field,
.phone-row,
.otp-boxes input{
  background:#ffffff !important;
  color:#555555 !important;
}

.field input,
.phone-input input,
.otp-boxes input{
  color:#555555 !important;
  -webkit-text-fill-color:#555555;
}

.field input::placeholder,
.phone-input input::placeholder{
  color:rgba(85,85,85,.62) !important;
}

/* فوکوس فیلدها مثل تم تیره پروژه باقی می‌ماند */
.field:focus-within,
.phone-row:focus-within,
.otp-boxes input:focus{
  background:#555555 !important;
  color:#ffffff !important;
}

.field:focus-within input,
.phone-row:focus-within .phone-input input,
.phone-row:focus-within .phone-input input:not(:placeholder-shown),
.otp-boxes input:focus{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  caret-color:#ffffff !important;
}

.field:focus-within input::placeholder,
.phone-row:focus-within .phone-input input::placeholder{
  color:rgba(255,255,255,.72) !important;
  -webkit-text-fill-color:rgba(255,255,255,.72) !important;
}

/* دکمه تایید شماره همراه به سبز قبلی برگردد */
.phone-row .send{
  background:#8bd246 !important;
  color:#ffffff !important;
  box-shadow:0 8px 16px rgba(91,165,46,.22) !important;
}

.phone-row .send:hover{
  background:#76bf37 !important;
}

/* حالت شمارش معکوس همان حالت روشن قبلی */
.phone-row .send.wait{
  background:rgba(229,199,101,.92) !important;
  color:#555555 !important;
  box-shadow:0 8px 16px rgba(85,85,85,.10) !important;
}

/* کارت‌های اصلی صفحه موفقیت سفید */
.success-badge,
.note-card,
.success-banner + .success-badge,
.license-card{
  background:#ffffff !important;
}

.note-card,
.license-card{
  color:#555555 !important;
  border-color:rgba(85,85,85,.32) !important;
}

/* دکمه خاموش قابل کلیک می‌ماند تا پیام تکمیل موارد نمایش داده شود */
.pay-btn.off{
  background:#a6a6a6 !important;
  box-shadow:none !important;
  cursor:pointer !important;
}

/* v31: keep selected price dark + orange gradient action buttons and price radio */
:root{
  --actionOrangeGradient:linear-gradient(135deg,#b85c14 0%,#df841f 48%,#f2ae3d 100%);
  --actionOrangeGradientHover:linear-gradient(135deg,#a84f0e 0%,#d67517 50%,#e99a28 100%);
}

/* بعد از انتخاب قیمت، کادر بسته‌شده همچنان تیره بماند */
.price-radio-box.selected:not(.open){
  background:#555555 !important;
  color:#ffffff !important;
  border-color:#555555 !important;
  box-shadow:0 8px 18px rgba(85,85,85,.14) !important;
}

.price-radio-box.selected:not(.open) .price-radio-head{
  background:#555555 !important;
  color:#ffffff !important;
}

.price-radio-box.selected:not(.open) .price-radio-title{
  color:#ffffff !important;
}

.price-radio-box.selected:not(.open) .price-wallet-icon{
  opacity:.82 !important;
}

/* دکمه فعال تایید و پرداخت + بازیابی لایسنس */
#payBtn:not(.off),
.forgot-wrap .recover-btn{
  background:var(--actionOrangeGradient) !important;
  color:#ffffff !important;
  box-shadow:0 10px 24px rgba(184,92,20,.30) !important;
}

#payBtn:not(.off):hover,
.forgot-wrap .recover-btn:hover{
  background:var(--actionOrangeGradientHover) !important;
  box-shadow:0 12px 27px rgba(168,79,14,.34) !important;
}

/* حالت خاموش پرداخت همچنان مشخص و خاکستری بماند */
#payBtn.off,
#payBtn.off:hover{
  background:#a6a6a6 !important;
  box-shadow:none !important;
}

/* نشانگر انتخاب قیمت با همان گرادیانت دکمه پرداخت */
.price-radio-option.active .radio-dot{
  position:relative;
  background:var(--actionOrangeGradient) !important;
  border-color:#ffffff !important;
  box-shadow:0 3px 9px rgba(184,92,20,.30) !important;
}

.price-radio-option.active .radio-dot::after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffffff;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}


/* v33: price helper text without truncating the original label */
.price-radio-head{
  flex-direction:column;
  justify-content:center;
  gap:2px;
  min-height:72px;
  padding:8px 58px;
}

/* متن اصلی قیمت کامل نمایش داده شود و همیشه وسط‌چین باشد */
.price-radio-title{
  display:block;
  width:100%;
  max-width:100%;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  text-align:center;
  line-height:1.5;
}

.price-radio-note{
  display:block;
  width:100%;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  text-align:center;
  white-space:normal;
}

/* بعد از انتخاب قیمت، فقط خود مبلغ نمایش داده شود؛ رفتار قبلی قیمت حفظ می‌شود */
.price-radio-box.selected .price-radio-note{
  display:none;
}

.price-radio-box.selected:not(.open) .price-radio-head{
  min-height:56px;
  padding-top:0;
  padding-bottom:0;
}

/* حفظ تغییر قبلی: دکمه کپی لایسنس هم‌رنگ دکمه تایید و پرداخت */
.copy-btn{
  background:var(--actionOrangeGradient) !important;
  color:#ffffff !important;
  box-shadow:0 10px 24px rgba(184,92,20,.30) !important;
}

.copy-btn:hover{
  background:var(--actionOrangeGradientHover) !important;
  box-shadow:0 12px 27px rgba(168,79,14,.34) !important;
}


/* v34: optional "قیمت اصلی" label for the first displayed price */

/* عبارت راهنمای قیمت همیشه یک‌خط، وسط‌چین و بدون سه‌نقطه بماند */
.price-radio-title{
  display:block;
  width:100%;
  max-width:100%;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  text-align:center;
  font-size:clamp(11px, 3.5vw, 14px);
}

/* مبلغ و برچسب قیمت اصلی کنار هم */
.price-radio-content{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  direction:rtl;
}

.primary-price-label{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:3px 10px;
  border-radius:999px;
  background:var(--actionOrangeGradient);
  color:#ffffff;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(184,92,20,.22);
}

.price-radio-amount{
  min-width:0;
  flex:0 1 auto;
}

@media (max-width:430px){
  .price-radio-content{
    gap:7px;
  }

  .primary-price-label{
    padding:3px 8px;
    font-size:11px;
  }
}


/* v35: primary price label as simple inline text before the first price */
.price-radio-content{
  display:block;
  min-width:0;
  direction:rtl;
  text-align:right;
}

.price-radio-line{
  display:inline-flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:6px;
  direction:rtl;
  white-space:nowrap;
}

.primary-price-label{
  display:inline !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  color:inherit !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:inherit !important;
  white-space:nowrap;
  box-shadow:none !important;
}

@media (max-width:430px){
  .price-radio-line{
    gap:5px;
  }

  .primary-price-label{
    font-size:12px !important;
  }
}
