*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg-main: #050816;
  --color-bg-frame: #050816;
  --color-card-bg: #020617;
  --color-primary: #2563eb;
  --color-badge-blue: #1d4ed8;
  --color-text-main: #ffffff;
  --color-text-muted: #9ca3af;
  --color-border-soft: rgba(148, 163, 184, 0.4);

  --radius-frame: 24px;
  --radius-card: 20px;
  --radius-pill: 999px;

  --spacing-section-y: 3rem;
  --spacing-section-x: 1.5rem;

  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.8);
  --transition-fast: 0.2s ease-out;

  --bg: #020617;
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --accent: #de880b;
  --button-bg: #1f2937;
  --timer-orange: #ff9400;
  --timer-blue: #1f3a8b;
  --timer-dark: #333333;
  --timer-white: #ffffff;

  --orange: #ff9400;
  --card-bg: #1d2228;
  --white: #ffffff;


  --container-max-width: 1240px;
  --container-padding: 0 20px;

}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmat";
  src: url("/static/Fonts/Vazirmatn-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

body {
  height: 100%;
  font-family: "Vazirmat", sans-serif;
  font-weight: 400;
  background-color: #14171c;
  direction: rtl;
  margin: 0;
  color: var(--text-main);
}

body.loading {
  overflow: hidden;
  filter: blur(8px);
  transition: filter 0.7s ease;
}

footer {
  font-family: "Vazirmat", sans-serif;
}


#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(0px);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s ease;
}

#loading-bar {
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #f98d01, #fe850a);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
  transition: width 0.25s ease;
}


::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #111418;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb {
  background: #dc890b;
  border-radius: 20px;

  border: 1px solid #111418;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ۴. حالت تعامل و هاور (Hover) */
::-webkit-scrollbar-thumb:hover {
  background: #f98d01;
}

* {
  scrollbar-width: thin;

  scrollbar-color: #dc890b #111418;
}

html {
  scrollbar-gutter: stable;
}

