@font-face {
  font-family: "IRANSansWeb";
  src: url("../fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1140px;
  --gutter: 12px;
  --color-bg: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #d1d5db;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-light: #f3f4f6;
  --color-overlay: rgba(17, 24, 39, 0.55);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.14);
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --bg-2: #0f1626;
  --surface: #ffffff0a;
  --surface-2: #ffffff0f;
  --stroke: #ffffff14;
  --stroke-2: #ffffff24;
  --green: oklch(68% 0.18 145);
  --green-2: oklch(78% 0.16 145);
  --green-soft: oklch(55% 0.18 145 / 0.18);
  --blue: #d6cdae;
  --blue-2: #ece7d3;
  --blue-soft: #1f6bff2e;
  --gold: oklch(91.312% 0.04755 87.027);
  --gold-2: oklch(92% 0.12 88);
  --gold-soft: oklch(78% 0.15 85 / 0.18);
  --silver: oklch(85% 0.02 250);
  --bronze: oklch(68% 0.12 50);
  --ink: #f3f5fb;
  --ink-2: #c8cfdd;
  --ink-3: #8a93a8;
  --ink-4: #5b6478;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --shadow-card: 0 30px 60px -20px #0009, 0 2px 0 #ffffff0a inset;
  --glow-blue: 0 0 0 1px #1f6bff73, 0 20px 60px -10px #1f6bff8c;
  --glow-green:
    0 0 0 1px oklch(75% 0.17 55 / 0.45),
    0 20px 60px -10px oklch(72% 0.18 50 / 0.55);
  --glow-gold:
    0 0 0 1px oklch(82% 0.15 85 / 0.45),
    0 25px 70px -10px oklch(82% 0.15 85 / 0.55);
  --glow-orange:
    0 0 0 1px oklch(75% 0.17 55 / 0.45),
    0 30px 80px -10px oklch(72% 0.18 50 / 0.55);
  --orange: oklch(72% 0.18 50);
  --orange-2: oklch(78% 0.16 55);
  --orange-soft: oklch(72% 0.18 50 / 0.18);
  --container: 1240px;
}
a,
a:hover {
  text-decoration: none;
}
a {
  color: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-family: "IRANSansWeb", Tahoma, Arial, sans-serif;
}

body {
  background: #05070d;
  font-family: "IRANSansWeb", Tahoma, Arial, sans-serif;
  margin: 0;
  text-align: right;
  color: #fff;
}

/* Container */
.container {
  width: min(var(--container), calc(100% - 24px));
  margin-inline: auto;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gutter) * -1);
  margin-left: calc(var(--gutter) * -1);
}

[class*="col-"] {
  width: 100%;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.col-12 {
  width: 100%;
}

.col-6 {
  width: 50%;
}

.col-4 {
  width: 33.3333%;
}

.col-3 {
  width: 25%;
}

@media (min-width: 768px) {
  .col-md-12 {
    width: 100%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-4 {
    width: 33.3333%;
  }

  .col-md-3 {
    width: 25%;
  }
}

@media (min-width: 992px) {
  .col-lg-12 {
    width: 100%;
  }

  .col-lg-6 {
    width: 50%;
  }

  .col-lg-4 {
    width: 33.3333%;
  }

  .col-lg-3 {
    width: 25%;
  }
}

/* Card */
.card-box {
  background: var(--color-bg);
  border: 1px solid #eef0f3;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.4;
}
.btn-secondary:after,
.btn-primary:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(#ffffff2e, #0000 45%);
  position: absolute;
  inset: 0;
}

.text-muted {
  color: var(--color-muted);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.input::placeholder,
.textarea::placeholder {
  color: #9ca3af;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-light {
  background: var(--color-light);
  color: var(--color-text);
}

.btn-light:hover {
  background: #e5e7eb;
}

/* Modal */
.mui-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.mui-modal.is-active {
  display: block;
}

.mui-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.mui-modal-dialog {
  position: relative;
  width: min(70%, calc(100% - 24px));
  margin: 8vh auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
  overflow: hidden;
}

.mui-modal-header,
.mui-modal-footer {
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
}

.mui-modal-footer {
  border-bottom: none;
  border-top: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.mui-modal-body {
  padding: 20px;
  color: #000;
  overflow: auto;
  max-height: 500px;
  font-size: 0.85em;
}

.mui-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #000;
}

.mui-modal-title {
  margin: 0;
  font-size: 18px;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #ff0000;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  line-height: 1;
}

/* Utilities */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.py-3 {
  padding-top: 24px;
  padding-bottom: 24px;
}

/*------------------------- Header ------------------------*/
.site-header {
  z-index: 50;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(#05070dd9, #05070d8c);
  position: sticky;
  top: 0;
}
.nav {
  justify-content: space-between;
  align-items: center;
  height: 96px;
  display: flex;
}
.nav-left,
.nav-right {
  align-items: center;
  gap: 18px;
  display: flex;
}
.brand {
  letter-spacing: -0.01em;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
}
.brand-logo {
  width: auto;
  height: 56px;
  display: block;
}
.nav ul {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.nav ul a {
  color: var(--ink-2);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
  display: inline-flex;
}
.nav ul a.active {
  background: var(--surface-2);
  color: var(--ink);
}
.user-menu {
  position: relative;
}
body[data-auth="out"] [data-auth-required],
body[data-auth="in"] [data-guest-only] {
  display: none !important;
}
.user-menu-btn {
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
  display: inline-flex;
}
.user-menu-panel {
  border: 1px solid var(--stroke-2);
  z-index: 100;
  background: linear-gradient(#11192a 0%, #0a1120 100%);
  border-radius: 14px;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  padding: 14px;
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  box-shadow:
    0 20px 60px -10px #0009,
    0 0 0 1px #1f6bff2e;
}
.user-menu-panel[hidden] {
  display: none;
}
.ump-header {
  border-bottom: 1px solid var(--stroke);
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  display: flex;
}
.ump-avatar-big {
  background: linear-gradient(135deg, var(--blue), #ac8a06);
  color: #fff;
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}
.ump-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.ump-stats {
  gap: 8px;
  display: flex;
}
.ump-stat {
  border: 1px solid var(--stroke);
  background: #ffffff08;
  border-radius: 10px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: flex;
}
.ump-stat-ico {
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}
.ump-stat-body {
  min-width: 0;
}
.ump-stat-k {
  color: var(--ink-3);
  white-space: nowrap;
  margin-bottom: 2px;
  font-size: 10px;
}
.ump-stat-v {
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.ump-actions {
  flex-direction: column;
  gap: 4px;
  display: flex;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: 0 0;
  border: 0;
}
.ump-link {
  color: var(--ink-2);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
  display: flex;
}
.ump-link-danger {
  color: oklch(78% 0.14 28);
}
.ump-link-danger svg {
  color: oklch(78% 0.14 28);
}
.btn-block {
  justify-content: center;
  width: 100%;
}
.btn-secondary {
  background: linear-gradient(135deg, var(--blue) 0%, #ac8a06 100%);
  color: #fff;
  box-shadow: #ffcc00;
  border: 0;
  position: relative;
}
.btn-sm {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.btn {
  transition:
    transform 0.15s,
    background 0.2s,
    box-shadow 0.25s,
    filter 0.2s;
}
.nav-burger {
  display: none;
}
.icon {
  stroke-width: 1.8px;
  width: 18px;
  height: 18px;
}
.user-menu-avatar {
  background: linear-gradient(135deg, var(--blue), #ac8a06);
  color: #fff;
  border-radius: 999px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}
.user-menu.is-open .user-menu-btn {
  background: #1f6bff1f;
  border-color: #1f6bff66;
}
.drawer {
  z-index: 200;
  backdrop-filter: blur(6px);
  background: #0009;
  align-items: flex-end;
  position: fixed;
  inset: 0;
}
.drawer {
  display: none;
}
.drawer .panel {
  background: var(--bg-1);
  border-top: 1px solid var(--stroke);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 28px;
  display: flex;
}
.drawer .panel a {
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
}
.drawer.open {
  display: flex;
}
@media (width <= 720px) {
  .mui-modal-dialog {
    width: min(95%, calc(100% - 24px));
  }
  .site-footer {
    padding: 28px 0;
  }
  .site-footer .container {
    grid-template-columns: 1fr !important;
  }
  .brand-logo.footer {
    height: 32px !important;
  }
  .site-footer ul {
    gap: 14px;
  }
  .drawer .panel a {
    padding: 14px;
    font-size: 15px;
  }
  .drawer .panel {
    gap: 6px;
    padding: 20px;
  }
  .site-header .nav {
    height: 72px;
  }
  .brand-logo {
    height: 60px !important;
  }
  .nav ul,
  .nav .cta-desktop {
    display: none;
  }
  .user-menu-panel {
    width: 260px;
    left: auto;
    right: 0;
  }
}
@media (width <= 880px) {
  .user-menu {
    display: none !important;
  }
  .nav-burger {
    color: #fff;
    border: 1px solid var(--stroke);
    background: var(--surface);
    border-radius: 10px;
    padding: 8px;
    display: inline-flex;
  }
}
