@font-face {
  font-family: 'Byekan';
  src: url('../fonts/BYekan.ttf') format('truetype'),
       url('../fonts/BYekand41d.eot?#') format('eot'),
       url('../fonts/BYekan.woff') format('woff');
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan';
  src: url('../fonts/Yekan.eot');
  src: url('../fonts/Yekand41d.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Yekan.woff') format('woff'),
       url('../fonts/Yekan.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg-deep:      #05091a;
  --navy:         #0b1530;
  --navy-2:       #0e1c40;
  --glass:        rgba(11, 21, 48, 0.55);
  --glass-strong: rgba(9, 17, 40, 0.78);

  --platinum:     #eef2fb;
  --platinum-dim: #aeb9d9;
  --silver-line:  rgba(198, 212, 245, 0.26);
  --silver-line-2:rgba(198, 212, 245, 0.14);

  --royal:        #3a5fc4;
  --royal-glow:   #5c86ee;
  --gold:         #f4e2a1;

  --radius:       18px;
  --radius-sm:    12px;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.40);
  --font-fa: 'Yekan', 'Byekan', Tahoma, sans-serif;
}

/* ---------- ریست پایه ---------- */
* { box-sizing: border-box; }
*:focus { outline: none; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-fa);
  font-size: 14px;
  color: var(--platinum);
  direction: rtl;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.hura-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 16px 60px;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(58, 95, 196, 0.20), transparent 60%),
    url('../images/bg.jpg') center top / cover no-repeat,
    var(--bg-deep);
  background-attachment: scroll, fixed, scroll;
}

.hura-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 9, 26, 0.55) 0%, rgba(5, 9, 26, 0.30) 40%, rgba(5, 9, 26, 0.85) 100%);
  z-index: 0;
}

.hura-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.brand {
  text-align: center;
  padding-top: 6px;
}

.crown {
  width: 96px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 14px rgba(92, 134, 238, 0.45));
  animation: floaty 6s ease-in-out infinite;
}
.crown svg { width: 100%; height: auto; display: block; }

.brand-title {
  margin: 4px 0 2px;
  font-family: var(--font-fa);
  font-size: clamp(40px, 11vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #d8e0f4 45%, #9aa9d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 24px rgba(92, 134, 238, 0.25);
}

.brand-sub {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.55em;
  padding-right: 0.55em; /* جبران letter-spacing */
  font-size: clamp(13px, 3.4vw, 18px);
  color: var(--platinum-dim);
  margin-bottom: 14px;
}

.brand-tag {
  margin: 10px 0 2px;
  font-size: clamp(17px, 4.6vw, 22px);
  color: var(--platinum);
  font-weight: 700;
}
.brand-tag2 {
  margin: 0;
  font-size: clamp(12px, 3.4vw, 15px);
  color: var(--platinum-dim);
}
.brand-tag2 .dia { color: var(--royal-glow); }

.features {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--silver-line-2);
  border-radius: 999px;
  padding: 10px 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.features li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(10px, 2.7vw, 13px);
  color: var(--platinum);
  text-align: center;
  padding: 2px 6px;
  position: relative;
}
.features li + li::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--silver-line-2);
}
.features li svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--royal-glow);
}

.pm {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(58, 95, 196, 0.30), rgba(58, 95, 196, 0.10));
  border: 1px solid var(--silver-line-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--platinum);
  font-size: 14px;
}
.pm .ico { color: var(--royal-glow); display: inline-flex; }
.pm .ico svg { width: 18px; height: 18px; }

.card {
  width: 100%;
  background: var(--glass-strong);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.card::before { /* درخشش لبه‌ی نقره‌ای بالا */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.card-head {
  text-align: center;
  color: var(--platinum-dim);
  font-size: 13px;
  margin-bottom: 16px;
}

/* --- فیلدها --- */
#form { display: flex; flex-direction: column; gap: 12px; }

.field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-line-2);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field:focus-within {
  border-color: var(--royal-glow);
  background: rgba(92, 134, 238, 0.08);
  box-shadow: 0 0 0 3px rgba(92, 134, 238, 0.18);
}
.field .f-ico {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--platinum-dim);
}
.field .f-ico svg { width: 18px; height: 18px; }

.tf-user,
.tf-pass,
.inp_style,
#security_answer {
  flex: 1;
  width: 100%;
  height: 46px;
  background: transparent !important;
  border: 0;
  padding: 0 8px 0 14px;
  color: var(--platinum);
  font-family: var(--font-fa);
  font-size: 14px;
  text-align: right;
  direction: rtl;
}
.tf-user::placeholder,
.tf-pass::placeholder,
.inp_style::placeholder,
#security_answer::placeholder { color: var(--platinum-dim); opacity: .8; }

#lay_captcha,
#lay_pw,
#lay_security_question,
#lay_hide { width: 100%; }

#lay_captcha {
  align-items: center;
  gap: 10px;
}
#lay_captcha img {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver-line-2);
  background: #fff;
}
#lay_captcha input.tf-pass {
  flex: 1;
  width: auto !important;
  height: 46px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--silver-line-2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
}

#lay_pw input,
#lay_security_question input {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-line-2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--platinum);
  font-family: var(--font-fa);
  font-size: 14px;
  text-align: right;
}
#lay_security_question #question { margin-bottom: 8px; color: var(--platinum-dim); }

#lay_hide {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--platinum-dim);
  font-size: 13px;
  padding-right: 4px;
}
#lay_hide input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--royal-glow); }
#lay_hide .hide { cursor: pointer; }

.select {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-line-2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--platinum);
  font-family: var(--font-fa);
  font-size: 13px;
  text-align: right;
  direction: rtl;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23aeb9d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.select:focus {
  border-color: var(--royal-glow);
  box-shadow: 0 0 0 3px rgba(92, 134, 238, 0.18);
}
.select option { background: var(--navy); color: var(--platinum); }
#lay_gender { position: relative; }

.btn {
  cursor: pointer;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-fa);
  font-size: 17px;
  font-weight: 700;
  color: #0a1330;
  background: linear-gradient(180deg, #f4f7ff 0%, #cdd7f2 55%, #a9b8e2 100%);
  box-shadow: 0 8px 22px rgba(92, 134, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { filter: brightness(1.04); box-shadow: 0 12px 30px rgba(92, 134, 238, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.btn:active { transform: translateY(1px); }

.card-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--silver-line-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.card-links a {
  color: var(--platinum);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.card-links a svg { width: 15px; height: 15px; color: var(--royal-glow); }
.card-links a:hover { color: var(--royal-glow); }

.welcome {
  width: 100%;
  text-align: center;
  color: var(--platinum-dim);
  font-size: clamp(13px, 3.6vw, 16px);
  padding: 10px 0 2px;
  letter-spacing: .5px;
}
.welcome b { color: var(--gold); }

.menu {
  width: 100%;
  border-top: 1px solid var(--silver-line-2);
  border-bottom: 1px solid var(--silver-line-2);
  padding: 10px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.menu ul li {
  padding: 4px 12px;
  font-size: 13px;
  border-left: 1px dashed var(--silver-line-2);
}
.menu ul li:last-child { border-left: 0; }
.menu ul li a { color: var(--platinum-dim); transition: color .2s ease; }
.menu ul li a:hover { color: var(--platinum); }
.menu .on {
  color: var(--platinum);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(58, 95, 196, 0.22);
  border: 1px solid var(--silver-line-2);
  white-space: nowrap;
}
.menu .on font { color: var(--gold) !important; }

.site-footer {
  width: 100%;
  text-align: center;
  color: var(--platinum-dim);
  font-size: 12px;
  line-height: 1.9;
  padding-top: 6px;
}
.site-footer .error { color: var(--platinum-dim); }
.site-footer .error font,
.site-footer .cop a { color: var(--royal-glow) !important; }
.site-footer .cop { margin-top: 2px; }

.clear { clear: both; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .crown { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 600px) {
  .hura-page { padding: 26px 12px 40px; background: none; }

  .hura-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
	url('../images/bg-mobile.jpg') center top / contain no-repeat,
      var(--bg-deep);
  }
.features { padding: 10px 6px; gap: 2px; }
  .features li { flex-direction: column; gap: 5px; font-size: 10px; line-height: 1.4; }
  .features li svg { width: 16px; height: 16px; }
  .card { padding: 20px 16px; }
  .menu ul li { border-left: 0; padding: 4px 10px; }
  .menu .on { width: 100%; text-align: center; }
}

@media (max-width: 380px) {
  .brand-sub { letter-spacing: 0.35em; padding-right: 0.35em; }
}
#lay_captcha {
    display: none;
}
