/* ================= توکن‌ها — تم ترکیبی لایت/تیره ================= */
:root {
  --navy: #030b2f;
  --teal: #21767d;
  --teal-2: #2b98a1;
  --teal-deep: #0c3d44;
  --teal-soft: #e3f2f2;
  --gold: #fcb53f;
  --gold-2: #ffd27a;
  --gold-deep: #c77f0e;
  --gold-soft: #fff4dd;
  --sage: #6eac85;
  --sage-soft: #e8f4ec;
  --danger: #dd5560;
  --danger-soft: #fdecee;
  --bg: #eef3f4;
  --cream: #faf5ea;
  --card: #fff;
  --line: #e3ecee;
  --ink: #132f38;
  --muted: #6d838d;
  --shadow: 0 8px 24px rgba(12, 61, 68, .08);
  --shadow-lg: 0 18px 44px rgba(12, 61, 68, .16);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: 'Vazirmatn', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%2321767d'><path d='M36 8l6 22 22 6-22 6-6 22-6-22-22-6 22-6z'/></g></svg>")
}


/* ========== پچ ریسپانسیو / حذف اسکرول افقی ========== */
html,
body {
  overflow-x: clip
}

#view {
  position: relative;
  z-index: 1
}

::selection {
  background: var(--gold);
  color: #3a2607
}

::-webkit-scrollbar {
  width: 9px
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 9px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: var(--font);
  cursor: pointer
}

img {
  display: block
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 22px
}

.grow {
  flex: 1
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.page>* {
  animation: fadeUp .45s ease both
}

/* ================= اجزای پایه ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 800;
  transition: .22s;
  line-height: 1
}

.btn svg {
  width: 17px;
  height: 17px
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #f2a42c);
  color: #3a2607;
  box-shadow: 0 10px 24px rgba(252, 181, 63, .35)
}

.btn-gold:hover {
  transform: translateY(-2px)
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 118, 125, .3)
}

.btn-teal:hover {
  transform: translateY(-2px)
}

.btn-line {
  background: #fff;
  color: var(--teal);
  border: 1.5px solid var(--teal)
}

.btn-line:hover {
  background: var(--teal-soft)
}

.btn-line-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff
}

.btn-line-light:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.btn-sage {
  background: linear-gradient(135deg, #8cc6a2, var(--sage));
  color: #0b3a24;
  box-shadow: 0 10px 24px rgba(110, 172, 133, .3)
}

.btn-danger {
  background: var(--danger-soft);
  color: #b23c46;
  border: 1.5px solid #f3c6cb
}

.btn-danger:hover {
  background: #fbdde0
}

.btn-sm {
  padding: 9px 15px;
  font-size: 12px;
  border-radius: 10px
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  position: relative;
  transition: .2s
}

.icon-btn:hover {
  color: var(--teal);
  border-color: var(--teal-2)
}

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

.pip {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--gold);
  color: #3a2607;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding-inline: 4px
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow)
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #3a2607;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800
}

.b-mentoring {
  background: var(--gold-soft);
  color: #a06a08;
  border: 1px solid #f2d8a2
}

.b-judging {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid #bfe0e0
}

.b-approved {
  background: var(--sage-soft);
  color: #3c7a55;
  border: 1px solid #c4e2cf
}

.b-rejected {
  background: var(--danger-soft);
  color: #b23c46;
  border: 1px solid #f3c6cb
}

.field {
  margin-bottom: 15px
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px
}

.input {
  width: 100%;
  background: #f7fafb;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  transition: .2s
}

.input:focus {
  outline: none;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 4px rgba(33, 118, 125, .13);
  background: #fff
}

textarea.input {
  min-height: 92px;
  resize: vertical
}

.dropzone {
  border: 2px dashed #bcd8d9;
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
  background: #f7fbfb
}

.dropzone:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft)
}

.dropzone svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px
}

/* ================= پوستهٔ اپ — سایدبار چپِ تیره ================= */
.shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  color: #cfe7e8;
  background: linear-gradient(190deg, #0f4a52, #0a3541 45%, #062632);
  grid-column: 1;
  grid-row: 1
}

.side-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  margin-bottom: 14px
}

.side-user b {
  color: #fff;
  font-size: 13.5px;
  display: block
}

.side-user small {
  color: #9fc4c6;
  font-size: 11px
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1
}

.nav a {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 12px;
  color: #bcd9da;
  font-size: 13px;
  font-weight: 700;
  transition: .2s
}

.nav a svg {
  width: 19px;
  height: 19px
}

.nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff
}

.nav a.on {
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 120, 128, .4)
}

.nav-out {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(221, 85, 96, .14);
  color: #ffb9be;
  border: none;
  font-size: 13px;
  font-weight: 800;
  width: 100%
}

.nav-out svg {
  width: 18px;
  height: 18px
}

.nav-out:hover {
  background: rgba(221, 85, 96, .25)
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.topbar .tt {
  font-size: 15.5px;
  font-weight: 900;
  color: var(--teal-deep)
}

.burger {
  display: none
}

.page {
  padding: 26px;
  max-width: 1160px;
  margin-inline: auto;
  width: 100%
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.page-head h2 {
  font-size: 19px;
  font-weight: 900
}

.page-head p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px
}

/* ================= داشبورد ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.stat {
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center
}

.stat .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center
}

.stat .ic svg {
  width: 22px;
  height: 22px
}

.stat b {
  font-size: 21px;
  font-weight: 900;
  display: block
}

.stat small {
  color: var(--muted);
  font-size: 11.5px
}

.t-teal {
  background: var(--teal-soft);
  color: var(--teal)
}

.t-gold {
  background: var(--gold-soft);
  color: var(--gold-deep)
}

.t-sage {
  background: var(--sage-soft);
  color: var(--sage)
}

.t-red {
  background: var(--danger-soft);
  color: var(--danger)
}

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

.proj {
  overflow: hidden;
  transition: .25s
}

.proj:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.proj .cover {
  height: 150px;
  position: relative;
  overflow: hidden
}

.proj .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s
}

.proj:hover .cover img {
  transform: scale(1.07)
}

.proj .cover .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  backdrop-filter: blur(4px)
}

.proj .body {
  padding: 16px
}

.proj h3 {
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 6px
}

.proj .desc {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.proj .foot {
  display: flex;
  gap: 8px;
  align-items: center
}

.meta-chip {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 8px
}

/* ================= استپر ================= */
.stepper {
  display: flex;
  gap: 4px;
  margin: 14px 0
}

.step {
  flex: 1;
  text-align: center;
  position: relative
}

.step::before {
  content: '';
  position: absolute;
  top: 16px;
  inset-inline: calc(50% + 20px) 0;
  height: 2px;
  background: var(--line)
}

.step:first-child::before {
  display: none
}

.step .dot {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  position: relative;
  z-index: 1
}

.step small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px
}

.step.done .dot {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff
}

.step.done::before {
  background: var(--sage)
}

.step.active .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #3a2607;
  box-shadow: 0 0 0 5px rgba(252, 181, 63, .22);
  animation: pulse 1.8s infinite
}

.step.active::before {
  background: var(--gold)
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(252, 181, 63, .1)
  }
}

/* ================= چت — ویترین سامانه ================= */
.chat-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  height: calc(100vh - 135px);
  min-height: 540px
}

.chat-side {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column
}

.cs-search {
  margin: 14px;
  position: relative
}

.cs-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 15px;
  height: 15px;
  color: var(--muted)
}

.cs-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 36px 10px 12px;
  font-size: 12px;
  font-family: var(--font)
}

.cs-search input:focus {
  outline: none;
  border-color: var(--teal-2)
}

.cs-list {
  flex: 1;
  overflow: auto;
  padding: 4px 10px
}

.cs-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 14px;
  background: transparent;
  text-align: right;
  transition: .2s
}

.cs-item:hover {
  background: var(--bg)
}

.cs-item.on {
  background: var(--teal-soft)
}

.cs-item .avatar {
  width: 40px;
  height: 40px
}

.cs-item b {
  font-size: 12.5px;
  display: block
}

.cs-item small {
  color: var(--muted);
  font-size: 10.5px;
  display: block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cs-item time {
  font-size: 9.5px;
  color: var(--muted)
}

.cs-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #3c7a55;
  display: flex;
  gap: 8px;
  align-items: center
}

.dot-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
  animation: pulse 1.6s infinite
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f0f7f7, #eef3f4)
}

.cm-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  row-gap: 6px
}

.cm-head b {
  font-size: 13.5px;
  display: block
}

.cm-head small {
  color: var(--muted);
  font-size: 11px
}

.cm-head .badge {
  max-width: 100%
}

.on-txt {
  color: var(--sage);
  font-style: normal;
  font-weight: 800
}

.cm-msgs {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.day-chip {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  border-radius: 999px;
  padding: 4px 14px
}

.msg {
  max-width: 70%;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.9;
  animation: fadeUp .3s
}

.msg p {
  margin: 0
}

.msg .m-meta {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  font-size: 9.5px;
  opacity: .65;
  margin-top: 5px
}

.msg.other {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  box-shadow: var(--shadow)
}

.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  color: #fff;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 8px 20px rgba(33, 118, 125, .28)
}

.msg.me .ticks {
  color: var(--gold-2);
  font-style: normal
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-2);
  animation: tp 1s infinite
}

.typing i:nth-child(2) {
  animation-delay: .18s
}

.typing i:nth-child(3) {
  animation-delay: .36s
}

@keyframes tp {
  30% {
    transform: translateY(-5px)
  }
}

.cm-in {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line)
}

.cm-in input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-family: var(--font);
  min-width: 0
}

.cm-in input:focus {
  outline: none;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 4px rgba(33, 118, 125, .12)
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #3a2607;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(252, 181, 63, .4);
  transition: .2s;
  flex-shrink: 0
}

.send-btn svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1)
}

.send-btn:hover {
  transform: scale(1.08) rotate(-8deg)
}

/* ================= داوری (ستاره‌ها) ================= */
.crit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line)
}

.crit-row:last-child {
  border: none
}

.crit-row .lab {
  font-size: 12.5px;
  font-weight: 700
}

.stars {
  display: flex;
  gap: 3px
}

.stars svg {
  width: 20px;
  height: 20px;
  color: #d7e2e4;
  cursor: pointer;
  transition: .15s
}

.stars svg.on {
  color: var(--gold);
  filter: drop-shadow(0 2px 5px rgba(252, 181, 63, .45))
}

.stars svg:hover {
  transform: scale(1.2)
}

.stars.big svg {
  width: 26px;
  height: 26px;
  cursor: default
}

.score-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold-deep);
  line-height: 1.1
}

.score-word {
  color: var(--teal);
  font-weight: 900
}

/* ================= جدول و ادمین ================= */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px
}

.table th {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  padding: 11px 14px
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line)
}

.table tr:last-child td {
  border: none
}

.table tr:hover td {
  background: #f7fbfb
}

.line-chart {
  width: 100%;
  height: 150px
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  margin-inline: auto
}

.donut::after {
  content: '';
  position: absolute;
  inset: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 2px 8px rgba(12, 61, 68, .08)
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-left: 6px
}

/* ================= لندینگ ================= */
.landing .l-nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  color: #fff
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border: 1.5px solid rgba(252, 181, 63, .55);
  box-shadow: 0 0 22px rgba(33, 118, 125, .4)
}

.brand .mark svg {
  width: 24px;
  height: 24px;
  color: var(--gold)
}

.brand b {
  font-size: 16.5px;
  font-weight: 900
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.l-nav .links {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: #c6d4de
}

.l-nav .links a:hover {
  color: var(--gold)
}

.hero {
  background: radial-gradient(900px 480px at 88% -10%, rgba(33, 118, 125, .4), transparent 60%), radial-gradient(700px 420px at 8% 110%, rgba(252, 181, 63, .13), transparent 60%), var(--navy);
  position: relative
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  padding: 120px 0 120px
}

.hero-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(33, 118, 125, .25);
  border: 1px solid rgba(43, 152, 161, .5);
  color: #7fd8de;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 20px
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 900;
  color: #fff;
  line-height: 1.4
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 44px rgba(252, 181, 63, .5)
}

.hero p {
  color: #b9c9d6;
  font-size: 14.5px;
  line-height: 2.1;
  margin: 14px 0 28px;
  max-width: 520px
}

.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px
}

.hs {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #dfeaf2;
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 11.5px
}

.hs b {
  color: var(--gold)
}

.hero-art img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(252, 181, 63, .4);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .55);
  padding: 13px;
}

.feat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -72px;
  position: relative;
  z-index: 2
}

.feat {
  padding: 24px 18px;
  text-align: center;
  transition: .25s
}

.feat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.feat .ic {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center
}

.feat .ic svg {
  width: 26px;
  height: 26px
}

.feat h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px
}

.feat p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9
}

.sec-cream {
  background: var(--cream);
  margin-top: 76px;
  padding: 64px 0;
  border-top: 1px solid #eadfc8
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  color: var(--teal-deep);
  margin: 44px 0 30px
}

.sec-title:first-child {
  margin-top: 0
}

.sec-title::before,
.sec-title::after {
  content: '';
  height: 2px;
  width: 54px;
  background: linear-gradient(to left, var(--gold), transparent)
}

.sec-title::after {
  background: linear-gradient(to right, var(--gold), transparent)
}

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

.path {
  background: #fff;
  border: 1px solid #eee4d2;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: .25s
}

.path:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.path .num {
  position: absolute;
  left: 16px;
  top: 14px;
  font-weight: 900;
  color: #d9d2bf;
  font-size: 15px
}

.path .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px
}

.path .ic svg {
  width: 22px;
  height: 22px
}

.path h3 {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 7px
}

.path p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9
}

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

.stage {
  background: #fff;
  border: 1px solid #eee4d2;
  border-radius: 16px;
  padding: 24px;
  text-align: center
}

.stage .n {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  color: var(--gold-deep)
}

.stage h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px
}

.stage p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 2
}

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

.crit-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee4d2;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700
}

.crit-chip svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0
}

.cta-band {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--teal-deep), var(--navy));
  border-radius: 24px;
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%23fcb53f' stroke-opacity='.14'><path d='M36 8l6 22 22 6-22 6-6 22-6-22-22-6 22-6z'/></g></svg>")
}

.cta-band h3 {
  font-size: 19px;
  font-weight: 900;
  position: relative;
  z-index: 1
}

.cta-band p {
  color: #a9c3cd;
  font-size: 12.5px;
  margin-top: 6px;
  position: relative;
  z-index: 1
}

footer {
  background: var(--navy);
  color: #9db3c4;
  padding: 26px 0;
  font-size: 12px
}

footer .container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap
}

footer b {
  color: var(--gold)
}

/* ================= ورود/ثبت‌نام ================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(900px, 100%);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff
}

.auth-art {
  position: relative;
  min-height: 460px
}

.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.auth-art .ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(3, 11, 47, .1), rgba(3, 11, 47, .82))
}

.auth-art .cap {
  position: absolute;
  bottom: 24px;
  inset-inline: 24px;
  color: #fff
}

.auth-art .cap b {
  font-size: 18px;
  font-weight: 900
}

.auth-art .cap p {
  color: #c6d4de;
  font-size: 12px;
  margin-top: 5px
}

.auth-form {
  padding: 38px
}

.auth-form h2 {
  font-size: 19px;
  font-weight: 900;
  color: var(--teal-deep);
  margin-bottom: 4px
}

.auth-form .sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px
}

.tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 22px
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
  transition: .2s
}

.tabs button.on {
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  color: #fff;
  box-shadow: 0 6px 14px rgba(33, 118, 125, .3)
}

.demo-box {
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1.5px dashed #ecc98a
}

.demo-box p {
  font-size: 11px;
  color: #a06a08;
  margin-bottom: 10px;
  font-weight: 800
}

.demo-box .row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

/* ================= مودال ================= */
.modal-bk {
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 47, .5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  animation: fadeUp .25s
}

.modal {
  width: min(420px, 92%);
  padding: 28px;
  text-align: center
}

.modal .ic {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--danger-soft);
  color: var(--danger)
}

.modal .ic svg {
  width: 26px;
  height: 26px
}

.modal h3 {
  font-size: 15.5px;
  font-weight: 900;
  margin-bottom: 10px
}

.modal p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
  margin-bottom: 22px
}

.modal .acts {
  display: flex;
  gap: 10px;
  justify-content: center
}

/* ================= ریسپانسیو ================= */
@media(max-width:1024px) {

  .feat-row,
  .paths {
    grid-template-columns: repeat(2, 1fr)
  }

  .proj-grid,
  .stats,
  .crits {
    grid-template-columns: 1fr 1fr
  }

  .chat-shell {
    grid-template-columns: 1fr;
    height: auto
  }

  .chat-side {
    max-height: 230px;
    border-left: none;
    border-bottom: 1px solid var(--line)
  }
}

@media(max-width:960px) {

  .sidebar {
    position: fixed;
    right: 0;
    left: auto;
    width: 272px;
    transform: translateX(100%);
    transition: .3s;
    z-index: 60
  }

  .sidebar.open {
    transform: none
  }

  .burger {
    display: grid
  }

  .hero-grid,
  .auth-card {
    grid-template-columns: 1fr
  }

  .auth-art {
    min-height: 230px
  }

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

  .feat-row {
    margin-top: -40px
  }

  /* لینک‌های هدر لندینگ روی موبایل مخفی (استاندارد لندینگ) */
  .l-nav .links {
    display: none
  }

  /* گریدهای این‌لاینِ داوری و ادمین تک‌ستونه بشن */
  .judge-grid,
  .chart-grid {
    grid-template-columns: 1fr !important
  }

  .shell {
    grid-template-columns: 1fr !important
  }

  .main {
    grid-column: 1 !important;
    grid-row: 1
  }

}




@media(max-width:560px) {

  .feat-row,
  .paths,
  .proj-grid,
  .crits {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 34px
  }

  .hero-grid {
    padding: 100px 0 84px
  }

  .hero .cta a {
    flex: 1;
    justify-content: center
  }

  .hero-stats {
    gap: 8px
  }

  .hs {
    font-size: 10.5px;
    padding: 8px 10px
  }

  .sec-title {
    font-size: 16.5px;
    gap: 10px
  }

  .sec-title::before,
  .sec-title::after {
    width: 22px
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px
  }

  .l-nav .btn {
    padding: 9px 14px;
    font-size: 12px
  }

  .auth-form {
    padding: 26px 20px
  }

  .page {
    padding: 18px
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .chat-shell {
    height: auto;
    min-height: 0
  }

  .cm-msgs {
    max-height: 340px
  }


  .table {
    font-size: 11px
  }

  .table th,
  .table td {
    padding: 9px 8px
  }

  .cm-in {
    padding: 10px 12px;
    gap: 0px
  }

  .cm-in .icon-btn {
    width: 38px;
    height: 38px
  }

  .msg {
    max-width: 86%
  }

  .cs-item small {
    max-width: 110px
  }
}

.toastify {
  font-family: var(--font) !important;
  border-radius: 12px !important;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25) !important
}