/* ============================================================
   رهنو — RHNO.IR
   base.css : tokens, reset, typography, controls, primitives
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* surfaces */
  --paper: #f6f2e9;
  --paper-soft: #fbf8f1;
  --paper-deep: #efe8da;
  --surface: #ffffff;
  --surface-2: #fcfaf5;

  /* ink */
  --ink: #12211c;
  --ink-soft: #34463f;
  --muted: #6c7b74;
  --muted-2: #8b9791;

  /* lines */
  --line: #e4dccc;
  --line-soft: #efe8da;

  /* brand */
  --accent: #0f5b49;
  --accent-deep: #0a3f33;
  --accent-soft: #e5efe9;
  --accent-tint: #f2f7f4;
  --gold: #b0802b;
  --gold-soft: #f4e8d0;

  /* semantic */
  --danger: #a5352b;
  --danger-soft: #fbeae7;
  --ok: #1e7a52;
  --ok-soft: #e7f3ec;
  --warn: #8a6216;
  --warn-soft: #fbf1da;
  --info: #2f5f8a;
  --info-soft: #eaf1f7;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(18, 33, 28, 0.05);
  --shadow-2: 0 14px 34px -22px rgba(18, 33, 28, 0.35);
  --shadow-3: 0 30px 70px -38px rgba(18, 33, 28, 0.45);
  --ring: 0 0 0 3px rgba(15, 91, 73, 0.14);

  /* geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --arch: 50% 50% 16px 16px / 34% 34% 16px 16px;

  --wrap: 1200px;
  --head-h: 74px;

  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- type ---------- */

.display {
  font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--ink);
}

.h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
}

.h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.5;
}

.h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.body {
  font-size: 1rem;
  color: var(--ink-soft);
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.caption {
  font-size: 0.78125rem;
  color: var(--muted);
  line-height: 1.65;
}

.strong {
  font-weight: 600;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.gold {
  color: var(--gold);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 6px 13px 6px 11px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.eyebrow--plain {
  background: none;
  padding: 0;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow--plain::before {
  background: var(--gold);
}

/* ---------- layout helpers ---------- */

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.wrap--wide {
  width: min(1360px, 100% - 48px);
}

.section {
  padding-block: clamp(48px, 6vw, 88px);
}

.section--tight {
  padding-block: clamp(32px, 4vw, 56px);
}

.stack {
  display: grid;
  gap: 16px;
}

.stack--sm {
  gap: 10px;
}

.stack--lg {
  gap: 26px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.row--between {
  justify-content: space-between;
}

.row--end {
  justify-content: flex-end;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spacer {
  flex: 1;
}

.divider {
  height: 1px;
  background: var(--line-soft);
  border: 0;
}

.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;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
}

.btn--primary:hover {
  --btn-bg: var(--accent-deep);
  --btn-bd: var(--accent-deep);
}

.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
}

.btn--ink:hover {
  --btn-bg: #1d3029;
}

.btn--outline {
  --btn-bg: transparent;
}

.btn--outline:hover {
  --btn-bg: var(--paper-soft);
}

.btn--soft {
  --btn-bg: var(--accent-soft);
  --btn-fg: var(--accent-deep);
  --btn-bd: transparent;
}

.btn--soft:hover {
  --btn-bg: #d9e8e1;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: transparent;
  --btn-fg: var(--ink-soft);
  padding-inline: 12px;
}

.btn--ghost:hover {
  --btn-bg: rgba(18, 33, 28, 0.05);
  box-shadow: none;
}

.btn--danger {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger);
  --btn-bd: transparent;
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84375rem;
  border-radius: 10px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn--loading {
  color: transparent !important;
  position: relative;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.btn--soft.btn--loading::after,
.btn--outline.btn--loading::after,
.btn--ghost.btn--loading::after {
  border-color: rgba(15, 91, 73, 0.25);
  border-top-color: var(--accent);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.icon-btn:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

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

.icon-btn--plain {
  border-color: transparent;
  background: transparent;
}

/* ---------- links ---------- */

.link {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link:hover {
  text-decoration: underline;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(-3px);
}

/* ---------- forms ---------- */

.field {
  display: grid;
  gap: 7px;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.label .req {
  color: var(--danger);
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--danger);
  line-height: 1.6;
}

.err svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.field.is-invalid .err {
  display: flex;
}

.field.is-invalid .control {
  border-color: var(--danger);
  background: #fffafa;
}

.field.is-invalid .control:focus {
  box-shadow: 0 0 0 3px rgba(165, 53, 43, 0.13);
}

.control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease);
}

.control::placeholder {
  color: var(--muted-2);
  font-size: 0.875rem;
}

.control:hover {
  border-color: #d5cab4;
}

.control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

textarea.control {
  min-height: 118px;
  line-height: 1.8;
  resize: vertical;
  padding-block: 12px;
}

select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7b74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-inline-end: 36px;
  cursor: pointer;
}

.control--ltr {
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .control {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-inline-end: 0;
}

.input-group .btn {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  min-height: 48px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* checkbox / radio */

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84375rem;
  color: var(--ink-soft);
  line-height: 1.7;
  cursor: pointer;
}

.check input {
  appearance: none;
  width: 19px;
  height: 19px;
  border: 1px solid #cfc4ae;
  border-radius: 5px;
  background: #fff;
  flex: none;
  margin-block-start: 3px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.check input[type="radio"] {
  border-radius: 50%;
}

.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  inset-block-start: 2px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.check input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* segmented control */

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--paper-deep);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.segmented button svg {
  width: 16px;
  height: 16px;
}

.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

/* switch */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.switch input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: var(--r-pill);
  background: #d8cfbc;
  position: relative;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  flex: none;
}

.switch input::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.switch input:checked {
  background: var(--accent);
}

.switch input:checked::after {
  transform: translateX(-18px);
}

/* file drop */

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1.5px dashed #d3c7b1;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  cursor: pointer;
}

.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.dropzone svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.dropzone .dz-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.dropzone .dz-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* OTP */

.otp {
  display: flex;
  gap: 8px;
  direction: ltr;
  justify-content: center;
}

.otp input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.otp input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* ---------- chips, badges, pills ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    color 0.16s var(--ease);
}

button.chip:hover {
  border-color: #cfc3ac;
}

.chip svg {
  width: 15px;
  height: 15px;
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip--soft {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.71875rem;
  font-weight: 600;
  line-height: 1.6;
  background: var(--paper-deep);
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge svg {
  width: 13px;
  height: 13px;
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

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

.badge--info {
  background: var(--info-soft);
  color: var(--info);
}

.badge--gold {
  background: var(--gold-soft);
  color: #7a561a;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.dot--ok {
  background: var(--ok);
}

.dot--warn {
  background: var(--gold);
}

.dot--danger {
  background: var(--danger);
}

/* rating */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rating svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  fill: var(--gold);
}

.rating--lg {
  font-size: 1rem;
}

.rating--lg svg {
  width: 18px;
  height: 18px;
}

/* ---------- avatars ---------- */

.avatar {
  --av-bg: #dce8e1;
  --av-fg: #23503f;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--av-bg);
  color: var(--av-fg);
  font-weight: 700;
  font-size: 0.9375rem;
  flex: none;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.55),
    transparent 55%
  );
  pointer-events: none;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}

.avatar--xl {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
}

.avatar--arch {
  border-radius: var(--arch);
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 0.78125rem;
}

.avatar--a {
  --av-bg: #dbe8e2;
  --av-fg: #1d4d3b;
}
.avatar--b {
  --av-bg: #efe1cd;
  --av-fg: #6c4a17;
}
.avatar--c {
  --av-bg: #e2e4ef;
  --av-fg: #38406c;
}
.avatar--d {
  --av-bg: #f0dedd;
  --av-fg: #6d332f;
}
.avatar--e {
  --av-bg: #dfe9ec;
  --av-fg: #245059;
}
.avatar--f {
  --av-bg: #e8e3d6;
  --av-fg: #4d452c;
}

/* ---------- cards & surfaces ---------- */

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

.card--pad {
  padding: 22px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.panel__title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.panel__body {
  padding: 20px;
}

.panel--soft {
  background: var(--surface-2);
  border-color: var(--line-soft);
}

.tinted {
  background: var(--accent-tint);
}

.arch-frame {
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--paper-deep);
}

/* ticket / receipt slip */

.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.ticket__perf {
  position: relative;
  border-top: 1.5px dashed #dcd1bd;
  margin-block: 18px;
}

.ticket__perf::before,
.ticket__perf::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  top: 50%;
  transform: translateY(-50%);
}

.ticket__perf::before {
  inset-inline-start: -10px;
  border-inline-start-color: transparent;
}

.ticket__perf::after {
  inset-inline-end: -10px;
  border-inline-end-color: transparent;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
}

.table {
  min-width: 620px;
  font-size: 0.875rem;
}

.table th {
  text-align: start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: #fdfcf8;
}

.table .cell-strong {
  font-weight: 600;
  color: var(--ink);
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ---------- misc ---------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
}

.empty__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
  color: var(--muted);
}

.empty__icon svg {
  width: 26px;
  height: 26px;
}

.empty__title {
  font-size: 1rem;
  font-weight: 700;
}

.empty__text {
  font-size: 0.84375rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.8;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #f0ebe0 25%, #f7f3ea 37%, #f0ebe0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

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

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

/* modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 20, 0.55);
  backdrop-filter: blur(3px);
}

.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 24px;
  animation: rise 0.25s var(--ease);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 14px;
}

.modal__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--paper-soft);
}

.modal__close:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.modal__foot {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-block-start: 20px;
}

/* toast */

.toast-stack {
  position: fixed;
  inset-block-end: 22px;
  inset-inline: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  z-index: 150;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 0.84375rem;
  box-shadow: var(--shadow-2);
  animation: rise 0.22s var(--ease);
  pointer-events: auto;
}

.toast svg {
  width: 17px;
  height: 17px;
  color: #9fd6bd;
}

/* utility spacing */

.mt-0 { margin-block-start: 0; }
.mt-1 { margin-block-start: 6px; }
.mt-2 { margin-block-start: 12px; }
.mt-3 { margin-block-start: 18px; }
.mt-4 { margin-block-start: 26px; }
.mb-0 { margin-block-end: 0; }
.mb-2 { margin-block-end: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }
  .wrap,
  .wrap--wide {
    width: calc(100% - 32px);
  }
  .section {
    padding-block: 40px;
  }
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .otp input {
    width: 40px;
    height: 48px;
  }
  .modal__card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
