/* Shared UI primitives. Page layouts stay in their own stylesheet. */
:root {
  --ui-panel: #131925;
  --ui-card: #1d2228;
  --ui-line: #303233;
  --ui-orange: #f59e0b;
  --ui-blue: #213b8f;
  --ui-muted: #9ca3af;
  --ui-radius: 20px;
  --ui-shadow: 0 12px 36px #02061732;
}
[hidden] {
  display: none !important;
}
.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ui-skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  transform: translateY(-150%);
  background: var(--ui-orange);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 11000;
  color: #14171c;
}
.ui-skip-link:focus {
  transform: none;
}
:where(.ui-button,.ui-field,.ui-link-button,.cf-filter,.cp-tab,.user-hamburger-link,.ui-close):focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 4px;
}
.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg,#ffad10,#f49507);
  color: #fff !important;
  font: 600 14px "Vazirmat",sans-serif;
  cursor: pointer;
  transition: transform .22s ease,box-shadow .22s ease,background .22s ease;
  box-shadow: 0 7px 22px #f4950719;
  text-align: center;
}
.ui-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px #f4950730;
}
.ui-button:active:not(:disabled) {
  transform: translateY(0);
}
.ui-button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
.ui-button--blue {
  background: #213b8f;
  color: #fff !important;
  box-shadow: 0 7px 22px #213b8f25;
}
.ui-button--outline {
  border-color: #b57b19;
  background: transparent;
  color: #ffb32b !important;
  box-shadow: none;
}
.ui-button--quiet {
  background: #262e3b;
  color: #f3f4f6 !important;
  box-shadow: none;
}
.ui-button--small {
  padding: 6px 14px;
  min-height: 36px;
  font-size: 12px;
}
.ui-button--full {
  width: 100%;
}
.ui-link-button {
  background: none;
  border: 0;
  color: #93afff;
  font: inherit;
  cursor: pointer;
  padding: 5px;
}
.ui-field {
  display: block;
  width: 100%;
  min-width: 0;
  background: #151a23;
  border: 1px solid #ffffff0e;
  color: #f3f4f6;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 46px;
  font: 400 14px "Vazirmat",sans-serif;
  transition: border-color .2s ease,box-shadow .2s ease;
}
textarea.ui-field {
  border-radius: 16px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.9;
}
select.ui-field {
  appearance: auto;
}
.ui-field::placeholder {
  color: #727c8b;
}
.ui-field:focus {
  border-color: #b87d23;
  box-shadow: 0 0 0 3px #f59e0b14;
  outline: none;
}
.ui-field[readonly] {
  color: #bfc7d4;
  cursor: default;
}
.ui-field[aria-invalid="true"] {
  border-color: #f87171;
}
.ui-field[dir="ltr"] {
  text-align: left;
}
.ui-label {
  display: block;
  font-size: 13px;
  color: #c8ced8;
  margin-bottom: 8px;
}
.ui-error {
  min-height: 18px;
  color: #fda4a4;
  font-size: 12px;
  margin-top: 5px;
}
.ui-help {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.9;
}
.ui-form-group {
  min-width: 0;
}
.ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ui-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ffffff13;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #d5dae4;
  background: #2a3342;
  white-space: nowrap;
}
.ui-status--upcoming {
  color: #ffb32b;
  background: #f59e0b17;
  border-color: #d69b363b;
}
.ui-status--success {
  color: #88e0ba;
  background: #10b98116;
  border-color: #10b98139;
}
.ui-status--full {
  color: #fda4a4;
  background: #ef444414;
  border-color: #ef44442a;
}
.ui-message {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #10b98140;
  background: #10b9810d;
  color: #88e0ba;
  font-size: 13px;
  line-height: 1.9;
  margin-block: 12px;
}
.ui-message--error {
  color: #fda4a4;
  background: #ef44440d;
  border-color: #ef44443b;
}
.ui-empty {
  text-align: center;
  padding: 42px 24px;
  border: 1px solid #ffffff0b;
  border-radius: 20px;
  background: #131925;
}
.ui-empty > .ui-icon {
  width: 48px;
  height: 48px;
  color: #94a3b8;
  margin-bottom: 18px;
}
.ui-empty h2,.ui-empty h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.ui-empty p {
  color: var(--ui-muted);
  line-height: 1.9;
  font-size: 14px;
  margin-bottom: 20px;
}
.ui-dialog {
  width: min(480px,calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  border: 1px solid #3d4657;
  padding: 26px;
  border-radius: 22px;
  background: #161d29;
  color: #f3f4f6;
  box-shadow: 0 25px 100px #0009;
  font-family: "Vazirmat",sans-serif;
}
.ui-dialog::backdrop {
  background: #05080ecc;
  backdrop-filter: blur(5px);
}
.ui-dialog[open] {
  animation: ui-dialog-in .2s ease-out;
}
.ui-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ui-dialog__head h2 {
  font-size: 19px;
}
.ui-dialog__body {
  line-height: 1.9;
  font-size: 14px;
}
.ui-dialog__body > p {
  color: #bcc5d5;
  margin-bottom: 16px;
}
.ui-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  background: #263041;
  color: #d9dfeb;
  cursor: pointer;
}
.ui-toast-region {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11010;
  width: min(440px,calc(100% - 32px));
  pointer-events: none;
}
.ui-toast {
  background: #1e293b;
  border: 1px solid #41516d;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px #0008;
  line-height: 1.8;
  font-size: 13px;
  animation: ui-dialog-in .2s ease-out;
}
.ui-toast--error {
  border-color: #ba5353;
  color: #ffbcbc;
}
.ui-preview-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font: 400 11px "Vazirmat",sans-serif;
  padding: 8px 16px;
  color: #abb4c2;
  background: #10151f;
  border-bottom: 1px solid #ffffff0a;
}
.ui-preview-note a,.ui-preview-note button {
  color: #e5b052;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.ui-reveal {
  animation: ui-reveal-in .55s ease-out both;
}
@keyframes ui-reveal-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ui-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media(max-width:520px) {
  .ui-dialog {
    padding: 20px;
  }
.ui-button {
    padding-inline: 18px;
  }
.ui-actions .ui-button {
    flex: 1;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
.ui-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.ui-button {
  text-decoration: none;
}
.ui-field-error {
  min-height: 18px;
  color: #fda4a4;
  font-size: 12px;
  margin-top: 5px;
}
.ui-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.ui-dialog-head h2 {
  font-size: 19px;
}
.ui-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  background: #263041;
  color: #d9dfeb;
  cursor: pointer;
}
@keyframes ui-reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
