@font-face {
  font-family: "IRANSansX";
  src: url("/assets/IRANSansXVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f7fb;
  --surface: #fff;
  --ink: #171b43;
  --soft: #555e76;
  --navy: #101a47;
  --amber: #f6ad2d;
  --gold: #ffc65b;
  --line: #e4e7f1;
  font-family: "IRANSansX", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 300px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #865b02; outline-offset: 4px; }

.site-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 86px; }
.brand { display: flex; max-width: 76%; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 11px; background: var(--navy); }
.brand-logo { display: block; width: min(230px, 57vw); height: auto; aspect-ratio: 6 / 1; object-fit: contain; }
.brand-logo[data-default-logo] { object-fit: cover; }
.header-link { display: inline-flex; gap: 8px; align-items: center; flex: none; padding: 9px 15px; border: 1px solid #f5d894; border-radius: 100px; background: #fff4dd; color: #65440a; font-size: 13px; font-weight: 700; }
.header-link:hover { background: #ffedc3; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 344px; overflow: hidden; border-radius: 26px; background: #081638; color: white; box-shadow: 0 13px 30px #0d21461a; }
.hero-art { position: absolute; inset: 0 auto 0 0; width: 66%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, #081638 0 33%, #081638ed 40%, #08163822 64%, transparent 78%); }
.hero-copy { padding: 35px clamp(24px, 4.5vw, 62px); }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #ffe1a3; font-size: 14px; font-weight: 650; }
.hero-kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(45px, 5.6vw, 79px); font-weight: 900; line-height: 1.16; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.hero-presenter { margin-top: 15px; color: #dce7fc; font-size: 17px; font-weight: 550; }

.registration-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 21px; align-items: stretch; margin-block: 24px 34px; }
.panel, .fact { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 5px 15px #18244a07; }
.panel { padding: clamp(20px, 3vw, 34px); }
.registration h2 { font-size: clamp(24px, 2.65vw, 32px); font-weight: 850; line-height: 1.35; }
.panel-copy { margin-block: 7px 21px; color: var(--soft); font-size: 14px; line-height: 1.95; }
form { display: grid; gap: 15px; }
.form-fields { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 13px; min-width: 0; margin: 0; padding: 0; border: 0; }
label { display: grid; gap: 7px; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #dce1ed; border-radius: 11px; background: #f9fafd; color: var(--ink); font-size: 16px; font-weight: 500; }
input::placeholder { color: #69748d; font-size: 13px; }
.phone { text-align: right; }
.primary { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid #eaa11d; border-radius: 11px; background: var(--amber); color: #221804; font-weight: 850; text-align: center; cursor: pointer; }
.primary:hover { background: #f9be50; }
.primary:disabled { border-color: #e4c789; background: #f9d996; color: #543a12; cursor: not-allowed; }
.primary[aria-busy="true"] { cursor: wait; }
.form-note, .form-error, .save-notice { font-size: 13px; line-height: 1.8; }
.form-note { color: var(--soft); }
.form-error { color: #9d2433; }
.save-notice { color: #146539; }
.access-greeting { margin-bottom: 6px; }
.timer-label { color: var(--soft); font-size: 14px; }
.timer { margin: 3px 0 12px; color: #764900; font-size: 31px; font-weight: 850; font-variant-numeric: tabular-nums; text-align: right; }

.facts { display: grid; gap: 12px; grid-template-rows: 1fr 1fr; }
.fact { display: flex; align-items: center; gap: 14px; padding: 17px; }
.fact h3 { font-size: 17px; font-weight: 850; }
.fact p { margin-top: 3px; color: var(--soft); font-size: 13px; line-height: 1.9; }
.fact-icon { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; }
.clock { background: #fff0cc; color: #9a600b; }
.clock::before { content: ""; position: absolute; inset: 12px; border: 2px solid currentColor; border-radius: 50%; }
.clock::after { content: ""; position: absolute; top: 17px; left: 23px; width: 5px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.link-icon { background: #e9eaff; color: #313a8d; }
.link-icon::before, .link-icon::after { content: ""; position: absolute; width: 16px; height: 9px; border: 2px solid currentColor; border-radius: 12px; transform: rotate(-41deg); }
.link-icon::before { top: 14px; left: 21px; }
.link-icon::after { top: 23px; left: 11px; }
.site-footer { display: flex; min-height: 66px; justify-content: space-between; gap: 12px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover  { text-decoration: underline; }

.inner-page { width: min(1080px, calc(100% - 40px)); margin: 24px auto 45px; }
.inner-page > .panel { max-width: 620px; margin-inline: auto; }
.inner-page h1 { margin-bottom: 12px; font-size: clamp(25px, 4vw, 41px); font-weight: 850; line-height: 1.45; }
.inner-page h1 em { color: #855300; font-style: normal; }
.inner-page h2 { margin-bottom: 12px; font-size: 22px; font-weight: 850; }
.inner-page form { margin-top: 14px; }
.inner-page video, .aparat-player { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 14px; border: 0; border-radius: 15px; background: #091633; }
.video-placeholder { display: grid; justify-items: center; align-content: center; gap: 10px; margin-top: 14px; padding: 16px; aspect-ratio: 16 / 9; border-radius: 15px; background: #091633; color: #e9edfa; }
.video-placeholder span { color: var(--gold); }
.expiry-panel { margin-top: 42px; text-align: center; }
.expiry-panel p { line-height: 1.95; color: var(--soft); }
.expiry-panel .support-handle { margin-block: 10px 20px; font-weight: 800; color: var(--navy); }
.support-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.support-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid #dbe0f0; border-radius: 11px; background: #f7f7ff; font-weight: 800; }
.secondary { display: inline-block; margin-top: 10px; color: #835000; }
.dashboard-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.dashboard-header p { color: var(--soft); }
.video-settings, .image-settings { margin-bottom: 18px; }
.video-settings { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.video-settings :is(.save-notice, .form-error) { grid-column: 1 / -1; }
.image-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.image-forms form { align-content: end; }
.image-forms input[type=file] { direction: ltr; font-size: 13px; }
.image-preview { display: block; width: 100%; height: 96px; object-fit: contain; border-radius: 10px; background: #101a47; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; text-align: right; white-space: nowrap; background: var(--surface); font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); }
th { color: var(--navy); background: #eef0fa; }
tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .site-shell { width: calc(100% - 32px); }
  .site-header { min-height: 66px; }
  .brand { padding: 5px 7px; }
  .header-link { padding: 7px 10px; font-size: 12px; }
  .hero { min-height: 267px; border-radius: 18px; }
  .hero-copy { padding: 28px 20px; }
  .hero-art { width: 79%; object-position: 50% center; }
  .hero::before { background: linear-gradient(270deg, #081638 1%, #081638ed 24%, #08163886 47%, #08163812 85%); }
  .hero h1 { font-size: clamp(34px, 7.8vw, 54px); }
  .hero-presenter { font-size: 14px; }
  .registration-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-block: 16px 22px; }
  .panel, .fact { border-radius: 16px; }
  .form-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .fact h3 { font-size: 14px; }
  .fact p { font-size: 12px; }
  .site-footer { flex-wrap: wrap; }
  .footer-links { gap: 10px; }
  .video-settings, .image-forms { grid-template-columns: minmax(0, 1fr); }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
}
