@font-face {
  font-family: "Vazirmatn Local";
  src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080706;
  --ink-soft: #11100e;
  --panel: rgba(16, 14, 12, .84);
  --gold: #d6ad67;
  --gold-bright: #f1d39c;
  --gold-dark: #8b642b;
  --red: #64130f;
  --text: #f7f2e9;
  --muted: #a8a098;
  --line: rgba(214, 173, 103, .18);
  --danger: #e46f65;
  --font-fa: "Vazirmatn Local", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-fa);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, .98) 0%, rgba(5, 5, 4, .91) 33%, rgba(5, 5, 4, .48) 65%, rgba(5, 5, 4, .15) 100%),
    linear-gradient(0deg, rgba(7, 6, 5, .95) 0%, transparent 46%),
    url("assets/casino-hero.png") center right / cover no-repeat;
  filter: saturate(.84);
  transform: scale(1.01);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: inherit; }

button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 86px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.ambient-one {
  width: 280px;
  height: 280px;
  top: 26%;
  right: 30%;
  background: rgba(106, 19, 14, .16);
  animation: breathe 8s ease-in-out infinite;
}

.ambient-two {
  width: 230px;
  height: 230px;
  bottom: 0;
  left: 20%;
  background: rgba(185, 126, 45, .08);
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(214, 173, 103, .13), rgba(0, 0, 0, .1));
  transform: rotate(45deg);
}

.brand-mark svg {
  width: 29px;
  fill: var(--gold);
  transform: rotate(-45deg);
}

.brand-copy {
  direction: ltr;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy b {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: .22em;
}

.brand-copy small {
  color: var(--gold);
  font-size: .57rem;
  letter-spacing: .29em;
  margin-top: 6px;
}

.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7c0b6;
  font-size: .82rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(214, 173, 103, .1), 0 0 16px rgba(214, 173, 103, .5);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 490px);
  align-items: center;
  gap: clamp(42px, 7vw, 118px);
  padding: clamp(48px, 7vh, 88px) 0;
}

.intro {
  max-width: 680px;
  justify-self: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold-bright);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
}

.eyebrow::after {
  content: "";
  width: 66px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: .05em;
  color: #6e6250;
}

h1 {
  margin: 26px 0 26px;
  font-size: clamp(3.35rem, 6.3vw, 7rem);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0, 0, 0, .45);
}

h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 211, 156, .8);
  text-shadow: 0 0 34px rgba(214, 173, 103, .14);
}

.lead {
  max-width: 590px;
  margin: 0;
  color: #beb7ad;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 2;
  font-weight: 300;
}

.trust-row {
  display: flex;
  gap: 44px;
  margin-top: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-item svg {
  width: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-item b {
  font-size: .82rem;
  font-weight: 600;
}

.trust-item small {
  color: #7f7972;
  font-size: .7rem;
}

.register-card {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 3vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 38%),
    var(--panel);
  border: 1px solid rgba(214, 173, 103, .2);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .045);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  animation: card-in .85s cubic-bezier(.2, .78, .25, 1) both;
}

.register-card::after {
  content: "♠";
  position: absolute;
  left: -24px;
  bottom: -93px;
  z-index: -1;
  color: rgba(214, 173, 103, .035);
  font-family: Georgia, serif;
  font-size: 15rem;
  transform: rotate(-14deg);
}

.card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 22px rgba(214, 173, 103, .3);
}

.card-heading { margin-bottom: 30px; }

.card-kicker {
  display: block;
  direction: ltr;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-align: right;
}

.card-heading h2 {
  margin: 9px 0 7px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.card-heading p {
  margin: 0;
  color: #8f8880;
  font-size: .82rem;
}

.field { margin-top: 18px; }

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.name-grid .field { min-width: 0; }

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #d4cec5;
  font-size: .8rem;
  font-weight: 500;
}

.field label span {
  color: #6f6963;
  font-size: .7rem;
  font-weight: 400;
}

.input-wrap { position: relative; }

.input-wrap > svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #77716a;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .2s ease;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 0;
  outline: none;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  caret-color: var(--gold);
  font-size: .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder { color: #615d58; }

input:focus {
  border-color: rgba(214, 173, 103, .58);
  background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 0 3px rgba(214, 173, 103, .07);
}

.input-wrap:focus-within > svg { stroke: var(--gold); }

.phone-wrap input {
  direction: ltr;
  text-align: left;
  padding-left: 60px;
}

.country-code {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  direction: ltr;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  color: #888079;
  font-family: Arial, sans-serif;
  font-size: .75rem;
}

.field-error {
  display: block;
  min-height: 16px;
  padding-top: 4px;
  color: var(--danger);
  font-size: .67rem;
}

.has-error input { border-color: rgba(228, 111, 101, .65); }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 15px;
  color: #989189;
  font-size: .72rem;
  line-height: 1.8;
  cursor: pointer;
}

.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1px solid #5b554e;
  background: rgba(0, 0, 0, .35);
  transition: .2s ease;
}

.checkmark svg {
  width: 13px;
  fill: none;
  stroke: #110f0c;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(.6);
  transition: .2s ease;
}

.consent input:checked + .checkmark {
  border-color: var(--gold);
  background: var(--gold);
}

.consent input:checked + .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.consent input:focus-visible + .checkmark {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.consent a {
  color: #cbc2b6;
  text-decoration-color: #6c5a3b;
  text-underline-offset: 3px;
}

.consent-error { padding-right: 30px; }

.submit-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: .78rem;
  line-height: 1.7;
}

.submit-error[hidden] { display: none; }

.submit-btn {
  width: 100%;
  height: 58px;
  margin-top: 7px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gold-bright);
  color: #19140d;
  background: linear-gradient(105deg, #b8873e, #f0cf94 48%, #bd8d48);
  box-shadow: 0 12px 34px rgba(159, 105, 35, .2), inset 0 1px rgba(255, 255, 255, .6);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.submit-btn svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 17px 44px rgba(159, 105, 35, .29), inset 0 1px rgba(255, 255, 255, .6);
}

.submit-btn:hover svg { transform: translateX(-5px); }

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled { cursor: wait; opacity: .7; }

.form-note {
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #6f6962;
  font-size: .66rem;
}

.form-note svg {
  width: 14px;
  fill: none;
  stroke: #796849;
  stroke-width: 1.5;
}

.success-state {
  min-height: 434px;
  padding: 38px 6px 10px;
  text-align: center;
  animation: reveal .5s ease both;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 173, 103, .48);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 103, .17), rgba(214, 173, 103, .03));
  box-shadow: 0 0 0 9px rgba(214, 173, 103, .035), 0 0 44px rgba(214, 173, 103, .14);
}

.success-icon svg {
  width: 38px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-number {
  display: block;
  color: #857e75;
  font-size: .74rem;
}

.success-number b { color: var(--gold); letter-spacing: .12em; }

.success-state h3 {
  margin: 13px 0 12px;
  font-size: 1.9rem;
}

.success-state p {
  max-width: 330px;
  margin: 0 auto;
  color: #938c84;
  font-size: .83rem;
  line-height: 1.9;
}

.reset-btn {
  margin-top: 28px;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid #5f4e33;
  color: #c4b697;
  background: transparent;
  font-size: .76rem;
  cursor: pointer;
}

footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #65605a;
  font-size: .65rem;
}

footer p { direction: ltr; letter-spacing: .1em; }

footer div { display: flex; align-items: center; gap: 24px; }

footer a { text-decoration: none; transition: color .2s ease; }

footer a:hover { color: var(--gold); }

@keyframes breathe {
  0%, 100% { opacity: .65; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 4, .74) 0%, rgba(5, 5, 4, .88) 46%, #070605 76%),
      url("assets/casino-hero.png") 68% top / auto 58vh no-repeat;
  }

  .topbar { min-height: 92px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 70px 0 58px;
  }

  .intro { max-width: 620px; }

  h1 { max-width: 600px; font-size: clamp(3.5rem, 10vw, 6rem); }

  .register-card { width: min(100%, 560px); justify-self: center; }
}

@media (max-width: 620px) {
  .page-shell { padding: 0 18px; }

  .topbar { min-height: 82px; }

  .brand-mark { width: 36px; height: 36px; }

  .brand-mark svg { width: 25px; }

  .brand-copy b { font-size: 1.37rem; }

  .top-status { font-size: 0; }

  .top-status::after { content: "اطلاع‌رسانی فعال"; font-size: .68rem; }

  .hero { padding: 52px 0 38px; gap: 40px; }

  h1 { margin: 19px 0 19px; font-size: clamp(2.7rem, 14.5vw, 4.2rem); line-height: 1.17; }

  .lead { font-size: .94rem; line-height: 1.95; }

  .trust-row { margin-top: 34px; gap: 23px; }

  .trust-item { gap: 9px; }

  .trust-item svg { width: 22px; }

  .trust-item b { font-size: .72rem; }

  .trust-item small { display: none; }

  .register-card { padding: 28px 21px; }

  .card-heading { margin-bottom: 23px; }

  .field { margin-top: 14px; }

  .name-grid { gap: 10px; }

  .name-grid input[type="text"] { padding-right: 42px; }

  input[type="text"], input[type="tel"], input[type="email"] { height: 52px; font-size: .84rem; }

  .submit-btn { height: 56px; }

  footer { padding: 23px 0; flex-direction: column-reverse; justify-content: center; }

  footer p { margin: 0; }

  footer div { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 410px) {
  .name-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
