/* ==========================================================================
   سیتکا — استایل مشترک سامانه
   متغیرهای برند، بازنشانی‌ها و اجزای پایه
   ========================================================================== */

:root {
  --brand-primary: #2864f0;
  --brand-primary-dark: #1747c5;
  --brand-primary-soft: #edf3ff;
  --brand-navy: #14264b;
  --brand-ink: #172849;
  --brand-muted: #78859e;
  --brand-border: #e5eaf4;
  --brand-surface: #ffffff;
  --brand-background: #f5f8ff;
  --brand-success: #147a54;
  --brand-success-soft: #eafaf2;
  --brand-success-border: #c8f0dc;
  --brand-danger: #dc3545;
  --brand-danger-soft: #fff0f1;
  --brand-danger-border: #ffd9dd;
  --brand-danger-ink: #a62b3b;
  --radius-sm: 10px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-pill: 30px;
  --shadow-brand: 0 9px 20px rgba(40, 100, 240, .19);
  --shadow-brand-strong: 0 13px 25px rgba(40, 100, 240, .25);
  --font-family-base: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

/* ویژگی hidden باید با هر display دلخواهی در اجزا خنثی شود؛
   وگرنه قواعدی مثل display:flex آن را بی‌اثر می‌کنند. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  background: var(--brand-background);
  color: var(--brand-navy);
  min-height: 100vh;
  min-height: 100dvh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91b2ff;
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* نشان برند سیتکا */

.brand-mark {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(12px);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-titles .brand-name {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.35;
}

.brand-titles .brand-caption {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin-top: 1px;
}

/* دکمه پایه */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s, background .2s;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, #3478ff, #2057df);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-strong);
  filter: brightness(1.04);
}

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

.btn-ghost {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.btn-ghost:hover {
  background: #e0eaff;
}

.btn:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

/* پیام‌های وضعیت */

.notice {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 16px;
}

.notice.error {
  display: block;
  color: var(--brand-danger-ink);
  background: var(--brand-danger-soft);
  border: 1px solid var(--brand-danger-border);
}

.notice.success {
  display: block;
  color: var(--brand-success);
  background: var(--brand-success-soft);
  border: 1px solid var(--brand-success-border);
}

.notice.info {
  display: block;
  color: #1f4d9c;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

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