/* ─── یکپارچه با هدر ISC ─── */
body.isc-body .site-shell.utilities-converter-page {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.site-shell.utilities-converter-page .site-main {
  padding: 0;
  max-width: none;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 35%, #fff 100%);
}

.ut-hub-page {
  --ut-tools-subnav-h: 3.25rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--isc-header-h, 6.5rem));
}

.ut-hub-page--dictionary .dict-w11 {
  max-width: 72rem;
}

/* منوی اختصاصی ابزار زیر هدر سایت */
.ut-tools-subnav {
  position: sticky;
  top: var(--isc-header-h, 6.5rem);
  z-index: 35;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.ut-tools-subnav__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ut-tools-subnav__primary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ut-tools-subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ut-tools-subnav__link:hover {
  background: rgba(0, 120, 212, 0.08);
  color: #0078d4;
}

.ut-tools-subnav__link.is-active {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.14), rgba(99, 102, 241, 0.1));
  border-color: rgba(0, 120, 212, 0.25);
  color: #106ebe;
}

.ut-tools-subnav__link i {
  font-size: 0.95rem;
}

.ut-tools-subnav__quick {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding-inline-start: 0.5rem;
  border-inline-start: 1px solid rgba(148, 163, 184, 0.35);
}

.ut-tools-subnav__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.15rem;
  padding: 0.25rem 0.65rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ut-tools-subnav__chip:hover {
  color: #0078d4;
  border-color: rgba(0, 120, 212, 0.3);
  background: rgba(0, 120, 212, 0.06);
}

.ut-tools-subnav__chip.is-active {
  color: #106ebe;
  border-color: rgba(0, 120, 212, 0.35);
  background: rgba(0, 120, 212, 0.1);
}

/* هیروی فشرده */
.ut-hub-page__hero {
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(241, 245, 249, 0.55));
}

.ut-hub-page__hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 90rem;
  margin: 0 auto;
}

.ut-hub-page__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.02em;
}

.ut-hub-page__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.ut-hub-page__lead {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  max-width: 42rem;
}

.ut-hub-page__stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ut-hub-page__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ut-hub-page__stat strong {
  font-size: 1rem;
  font-weight: 900;
  color: #0078d4;
}

.ut-hub-page__stat span {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

/* سازگاری با کلاس‌های قدیمی elierp */
body.gp-ui.utilities-converter-page.gp-ui--no-site-header .main-content > .container-fluid:has(.ut-hub__shell),
.utilities-converter-page .main-content {
  max-width: 100%;
  padding: 0 !important;
}

.ut-conv.ut-hub__shell {
  --ut-rail-w: 272px;
  display: grid;
  grid-template-columns: var(--ut-rail-w) 1fr;
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - var(--isc-header-h, 6.5rem) - var(--ut-tools-subnav-h, 3.25rem) - 5.5rem);
  margin: 0;
  padding: 0;
}

.ut-hub-page--dictionary {
  --ut-tools-subnav-h: 3.25rem;
}

.ut-hub-page--dictionary .dict-w11 {
  padding-top: 1rem;
}

/* ========== Hub shell ========== */
.ut-hub__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.8);
  max-height: calc(100dvh - var(--isc-header-h, 6.5rem) - var(--ut-tools-subnav-h, 3.25rem) - 5.5rem);
  overflow-y: auto;
  position: sticky;
  top: calc(var(--isc-header-h, 6.5rem) + var(--ut-tools-subnav-h, 3.25rem) + 5.5rem);
}

.ut-hub__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 0.15rem;
}

.ut-hub__brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.2rem;
  margin: -0.2rem;
  transition: background 0.15s ease;
}

.ut-hub__brand-link:hover {
  background: rgba(0, 120, 212, 0.08);
}

.ut-hub__brand-link:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.ut-hub__brand-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.ut-hub__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ut-hub__brand-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-hub__brand-text small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ut-hub__today-compact {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
}

.ut-hub__today-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
}

.ut-hub__today-compact-row small { color: #94a3b8; font-weight: 700; }
.ut-hub__today-compact-row strong { color: #0f172a; font-weight: 800; font-size: 0.78rem; }
.ut-hub__today-compact-row--sham strong { color: #b45309; }
.ut-hub__today-compact-row--greg strong { color: #2563eb; }
.ut-hub__today-compact-row--hij strong { color: #059669; }

.ut-hub__workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.ut-hub__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.ut-hub__toolbar-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ut-hub__toolbar-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.12));
  color: #2563eb;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.ut-hub__toolbar-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.ut-hub__toolbar-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.ut-hub__toolbar-today {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

.ut-hub__toolbar-today-label {
  font-weight: 700;
  color: #64748b;
}

.ut-hub__toolbar-today-val {
  font-weight: 800;
  color: #0f172a;
}

.ut-hub__toolbar-today-val--muted {
  color: #64748b;
  font-weight: 700;
}

.ut-hub__toolbar-today-sep {
  color: #cbd5e1;
}

.ut-hub__main {
  flex: 1;
  min-width: 0;
  padding: 1.15rem 1.5rem 2rem;
  width: 100%;
}

.ut-hub__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.ut-hub__search i { color: #94a3b8; font-size: 0.85rem; }

.ut-hub__search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  outline: none;
}

.ut-hub__nav-group {
  margin: 0.65rem 0 0.35rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.ut-hub__nav-group:first-child { margin-top: 0; }

.ut-hub__nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  text-align: right;
  transition: 0.18s ease;
  margin-bottom: 0.2rem;
}

.ut-hub__nav-item:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.12);
}

.ut-hub__nav-item.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08));
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

a.ut-hub__nav-item--link {
  text-decoration: none;
  color: inherit;
}

.ut-hub__nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.ut-hub__nav-ico--amber { background: #fef3c7; color: #d97706; }
.ut-hub__nav-ico--blue { background: #dbeafe; color: #2563eb; }
.ut-hub__nav-ico--rose { background: #ffe4e6; color: #e11d48; }
.ut-hub__nav-ico--teal { background: #ccfbf1; color: #0d9488; }
.ut-hub__nav-ico--indigo { background: #e0e7ff; color: #4f46e5; }
.ut-hub__nav-ico--violet { background: #ede9fe; color: #7c3aed; }
.ut-hub__nav-ico--slate { background: #f1f5f9; color: #475569; }
.ut-hub__nav-ico--cyan { background: #cffafe; color: #0891b2; }
.ut-hub__nav-ico--emerald { background: #d1fae5; color: #059669; }
.ut-hub__nav-ico--green { background: #dcfce7; color: #16a34a; }
.ut-hub__nav-ico--orange { background: #ffedd5; color: #ea580c; }
.ut-hub__nav-ico--sky { background: #e0f2fe; color: #0284c7; }
.ut-hub__nav-ico--pink { background: #fce7f3; color: #db2777; }
.ut-hub__nav-ico--gray { background: #f1f5f9; color: #64748b; }
.ut-hub__nav-ico--odoo { background: #f3e8f2; color: #714b67; }

.ut-hub__nav-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ut-hub__nav-text strong { font-size: 0.86rem; color: #0f172a; font-weight: 750; }
.ut-hub__nav-text small { font-size: 0.7rem; color: #94a3b8; }

.ut-hub__nav-empty {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
}


.ut-conv__input-lg {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.ut-conv__range {
  width: 100%;
  accent-color: #2563eb;
}

.ut-conv__range-out {
  display: block;
  text-align: center;
  font-weight: 800;
  color: #2563eb;
  margin-top: 0.25rem;
}

.ut-conv__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0;
}

.ut-conv__check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #475569;
  cursor: pointer;
}

.ut-tool-result__grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.ut-tool-result--status .ut-tool-result__status {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.ut-tool-result--status.is-valid {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.ut-tool-result--status.is-invalid {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
}

.ut-tool-result__password {
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.ut-conv__hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.ut-conv__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.14), transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

.ut-conv__hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  align-items: center;
}

.ut-conv__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.ut-conv__title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-conv__subtitle {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  max-width: 38rem;
}

.ut-conv__hero-today {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.ut-conv__hero-today-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.ut-conv__hero-today-grid {
  display: grid;
  gap: 0.55rem;
}

.ut-conv__hero-today-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ut-conv__hero-today-grid small {
  color: #94a3b8;
}

.ut-conv__hero-today-grid strong {
  font-size: 1rem;
  color: #0f172a;
}

.ut-conv__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ut-conv__tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.ut-conv__tab.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.ut-conv__panel[hidden] {
  display: none !important;
}

.ut-conv__card {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(12px);
  border: 1px solid var(--gp-border-soft, #e2e8f0);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--gp-glass-shadow, 0 8px 28px rgba(15, 23, 42, 0.05));
  transition: box-shadow 0.2s ease;
}

.ut-conv__card:hover {
  box-shadow: var(--gp-glass-shadow-hover, 0 12px 36px rgba(15, 23, 42, 0.07));
}

.ut-conv__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ut-conv__card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ut-conv__form-row,
.ut-conv__swap-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ut-conv__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.ut-conv__field--grow {
  flex: 1;
  min-width: 200px;
}

.ut-conv__field span {
  font-size: 0.82rem;
  color: #64748b;
}

.ut-conv__field input,
.ut-conv__field select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: #0f172a;
}

.ut-conv__field input:focus,
.ut-conv__field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ut-conv__btn {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ut-conv__btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.ut-conv__btn--ghost {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.ut-conv__btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.ut-conv__swap-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

.ut-conv__hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ut-conv__error {
  margin: 0.65rem 0 0;
  color: #dc2626;
  font-size: 0.88rem;
}

.ut-conv__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

/* --- ورود دستی تاریخ --- */
.ut-conv__card--date {
  padding: 1.25rem 1.35rem 1.1rem;
}

.ut-date__order-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.ut-date__cal-switch {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ut-date__cal-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: 0.2s ease;
}

.ut-date__cal-chip.is-active {
  color: #fff;
  border-color: transparent;
  font-weight: 800;
}

.ut-date__cal-chip.is-active i {
  color: #fff;
}

.ut-date__cal-chip[data-cal="shamsi"].is-active,
.ut-date__cal-chip[data-date-source="shamsi"].is-active {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.35);
}

.ut-date__cal-chip[data-cal="gregorian"].is-active,
.ut-date__cal-chip[data-date-source="gregorian"].is-active {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
}

.ut-date__cal-chip[data-cal="hijri"].is-active,
.ut-date__cal-chip[data-date-source="hijri"].is-active {
  background: linear-gradient(135deg, #047857, #065f46);
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.35);
}

.ut-date__manual-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.75));
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ut-date__manual-box:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ut-date__manual.is-valid .ut-date__manual-box {
  border-color: rgba(16, 185, 129, 0.4);
}

.ut-date__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  flex-shrink: 0;
}

.ut-date__parts {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.ut-date__part {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.ut-date__part--day { width: 4.8rem; }
.ut-date__part--month { flex: 1; min-width: 9rem; }
.ut-date__part--year { width: 5.2rem; }

.ut-date__part-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.ut-date__control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ut-date__control--year {
  text-align: center;
  direction: ltr;
}

.ut-date__control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.ut-date__side-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ut-date__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.ut-date__icon-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
}

.ut-date__steppers {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.ut-date__stepper-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
}

.ut-date__stepper-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding-left: 0.15rem;
}

.ut-date__step {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ut-date__step:hover {
  background: #eff6ff;
  color: #2563eb;
}

.ut-date__quick {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.ut-date__quick-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ut-date__quick-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.ut-date__preview {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 0.88rem;
  color: #475569;
  min-height: 2.2rem;
}

.ut-date__preview.is-ready {
  border-style: solid;
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ut-conv__result-card {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}

.ut-conv__result-card:hover,
.ut-conv__result-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
  outline: none;
}

.ut-conv__result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.ut-conv__copy {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.ut-conv__copy:hover {
  color: #2563eb;
  border-color: #93c5fd;
}

.ut-conv__result-use {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.ut-conv__result-card--gregorian { border-top: 3px solid #3b82f6; }
.ut-conv__result-card--shamsi { border-top: 3px solid #f59e0b; }
.ut-conv__result-card--hijri { border-top: 3px solid #10b981; }

.ut-conv__result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  background: #f1f5f9;
  color: #334155;
}

.ut-conv__result-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.ut-conv__result-date {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-conv__result-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-conv__unit-result {
  text-align: center;
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #dbeafe;
}

.ut-conv__unit-result-label {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ut-conv__unit-result-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-unit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.ut-unit-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.ut-unit-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ut-unit-filter i {
  color: #94a3b8;
  font-size: 0.85rem;
}

.ut-unit-filter input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

/* --- تبدیل واحد — استایل Win11 --- */
.ut-unit-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ut-unit-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ut-unit-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-unit-win__hint {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

.ut-unit-cats {
  margin-bottom: 1rem;
  max-height: 220px;
  overflow-y: auto;
  padding-left: 2px;
}

.ut-unit-cats__group {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
}

.ut-unit-cats__group:first-child { margin-top: 0; }

.ut-unit-cats__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ut-unit-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ut-unit-cat:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-unit-cat.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.ut-unit-cat__ico {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.8rem;
}

.ut-unit-cat.is-active .ut-unit-cat__ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-unit-cat--blue.is-active { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ut-unit-cat--orange.is-active { background: linear-gradient(135deg, #ea580c, #c2410c); }
.ut-unit-cat--indigo.is-active { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.ut-unit-cat--cyan.is-active { background: linear-gradient(135deg, #0891b2, #0e7490); }
.ut-unit-cat--rose.is-active { background: linear-gradient(135deg, #e11d48, #be123c); }
.ut-unit-cat--teal.is-active { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ut-unit-cat--violet.is-active { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ut-unit-cat--amber.is-active { background: linear-gradient(135deg, #d97706, #b45309); }
.ut-unit-cat--yellow.is-active { background: linear-gradient(135deg, #ca8a04, #a16207); }
.ut-unit-cat--lime.is-active { background: linear-gradient(135deg, #65a30d, #4d7c0f); }
.ut-unit-cat--sky.is-active { background: linear-gradient(135deg, #0284c7, #0369a1); }
.ut-unit-cat--purple.is-active { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.ut-unit-cat--pink.is-active { background: linear-gradient(135deg, #db2777, #be185d); }
.ut-unit-cat--slate.is-active { background: linear-gradient(135deg, #475569, #334155); }
.ut-unit-cat--red.is-active { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ut-unit-cat--emerald.is-active { background: linear-gradient(135deg, #059669, #047857); }

.ut-unit-value-card {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid #dbeafe;
}

.ut-unit-value-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.ut-unit-value-card__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  font-family: inherit;
  outline: none;
}

.ut-unit-filter--win {
  background: rgba(248, 250, 252, 0.95);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.85rem;
}

.ut-unit-converter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.ut-unit-panel {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.75rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.ut-unit-panel--from {
  border-top: 3px solid #2563eb;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.65), rgba(255, 255, 255, 0.85));
}

.ut-unit-panel--to {
  border-top: 3px solid #059669;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.65), rgba(255, 255, 255, 0.85));
}

.ut-unit-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.ut-unit-panel__head strong {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 700;
  max-width: 55%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ut-unit-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
}

.ut-unit-panel__badge--to {
  color: #047857;
  background: #d1fae5;
}

.ut-unit-swap--win {
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s, background 0.15s;
}

.ut-unit-swap--win:hover {
  transform: rotate(180deg);
  background: #f8fafc;
}

.ut-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.45rem;
  overflow-y: auto;
  max-height: 280px;
  flex: 1;
  padding: 2px;
}

.ut-unit-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
}

.ut-unit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.ut-unit-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ut-unit-card.is-active {
  border-color: #2563eb;
  background: linear-gradient(160deg, #eff6ff, #dbeafe);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ut-unit-card--to.is-active {
  border-color: #059669;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.ut-unit-card__ico {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
}

.ut-unit-card.is-active .ut-unit-card__ico {
  background: #2563eb;
  color: #fff;
}

.ut-unit-card--to.is-active .ut-unit-card__ico {
  background: #059669;
}

.ut-unit-card__abbr {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  direction: ltr;
}

.ut-unit-card__label {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ut-unit-result-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.ut-unit-result-card__ico {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ut-unit-result-card__label {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.ut-unit-result-card__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-unit-all-section {
  margin-top: 1.15rem;
}

.ut-unit-all-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
}

.ut-unit-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.ut-unit-all-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.ut-unit-all-card {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ut-unit-all-card--target {
  border-color: #059669;
  background: linear-gradient(160deg, #ecfdf5, #fff);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.ut-unit-all-card__ico {
  color: #64748b;
  font-size: 0.85rem;
}

.ut-unit-all-card__abbr {
  font-weight: 800;
  font-size: 0.8rem;
  color: #334155;
  direction: ltr;
}

.ut-unit-all-card__label {
  font-size: 0.68rem;
  color: #94a3b8;
}

.ut-unit-all-card__val {
  font-size: 0.95rem;
  color: #0f172a;
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .ut-unit-converter {
    grid-template-columns: 1fr;
  }

  .ut-unit-swap--win {
    justify-self: center;
    transform: rotate(90deg);
  }

  .ut-unit-swap--win:hover {
    transform: rotate(270deg);
  }
}

/* --- عدد به حروف و ارز --- */
.ut-currency-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.ut-currency-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-currency-win__badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ut-unit-badge--currency {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(29, 78, 216, 0.08));
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}

.ut-currency-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-currency-win__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-currency-rate-dash {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.ut-currency-rate-dash-card {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-currency-rate-dash-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-currency-rate-dash-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.ut-currency-rate-dash-card__flag { font-size: 1rem; }
.ut-currency-rate-dash-card__code {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  direction: ltr;
}

.ut-currency-rate-dash-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.ut-currency-rate-dash-card__val {
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
}

.ut-currency-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #e2e8f0;
}

.ut-currency-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.ut-currency-subtab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.ut-currency-subpanel[hidden] { display: none !important; }

.ut-currency-section {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
}

.ut-currency-section--fee {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.35), rgba(255, 255, 255, 0.95));
  border-color: rgba(245, 158, 11, 0.28);
}

.ut-currency-section--result {
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.45), rgba(239, 246, 255, 0.6));
  border-color: rgba(16, 185, 129, 0.22);
}

.ut-currency-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ut-currency-section__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
}

.ut-currency-section__badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.ut-currency-section__badge--hint {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.ut-currency-section__explain {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #64748b;
}

.ut-currency-fee-panel {
  margin-top: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.ut-currency-fee-panel .ut-currency-section__explain {
  margin-bottom: 0.55rem;
}

.ut-currency-fee-preview {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(5, 150, 105, 0.25);
  display: grid;
  gap: 0.35rem;
}

.ut-currency-fee-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #475569;
}

.ut-currency-fee-preview__row span {
  font-weight: 700;
}

.ut-currency-fee-preview__row strong {
  font-size: 0.82rem;
  font-weight: 900;
  color: #0f172a;
  text-align: left;
  line-height: 1.5;
}

.ut-currency-fee-preview__row--fee strong {
  color: #b45309;
}

.ut-currency-fee-preview__row--net strong {
  color: #047857;
}

.ut-currency-amount-card--lead {
  margin-top: 0;
}

.ut-currency-quick--amount {
  margin-bottom: 0.35rem;
}

.ut-currency-fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.ut-currency-fee-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fde68a;
}

.ut-currency-fee-card span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
}

.ut-currency-fee-card select,
.ut-currency-fee-card input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  background: #fff;
}

.ut-currency-fee-card__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ut-currency-fee-card__row input { flex: 1; min-width: 0; }

.ut-currency-unit-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.ut-currency-unit-tag--amount {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.ut-currency-unit-tag--fee {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.ut-currency-unit-tag--toman {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}

.ut-currency-unit-tag--rial {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.ut-currency-amount-card {
  margin: 0.65rem 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.ut-currency-amount-card__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ut-currency-amount-card__row .ut-currency-amount-card__input {
  flex: 1;
  min-width: 0;
}

.ut-currency-amount-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ut-currency-amount-card__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 900;
  font-family: inherit;
  outline: none;
  color: #0f172a;
}

.ut-currency-quick {
  margin-bottom: 0.75rem;
}

.ut-currency-quick__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.ut-currency-quick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ut-currency-quick__chip {
  padding: 0.38rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-currency-quick__chip:hover,
.ut-currency-quick__chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ut-currency-select-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0.75rem 0;
}

.ut-currency-select-panel {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  min-width: 0;
}

.ut-currency-select-panel__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ut-currency-select-panel__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
}

.ut-currency-select-panel__search {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  font-size: 0.78rem;
  background: #fff;
  outline: none;
}

.ut-currency-select-panel__search:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.ut-currency-select-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.ut-currency-select-panel__tab {
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.ut-currency-select-panel__tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.ut-currency-select-panel--to .ut-currency-select-panel__tab.is-active {
  background: linear-gradient(135deg, #059669, #047857);
}

.ut-currency-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
  padding-left: 2px;
}

.ut-currency-unit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: right;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ut-currency-unit-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-currency-unit-card.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.ut-currency-select-panel--from .ut-currency-unit-card.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.ut-currency-select-panel--to .ut-currency-unit-card.is-active {
  background: linear-gradient(135deg, #059669, #047857);
}

.ut-currency-unit-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.25rem;
}

.ut-currency-unit-card__flag { font-size: 1.05rem; line-height: 1; }

.ut-currency-unit-card__code {
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.75;
  direction: ltr;
}

.ut-currency-unit-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.ut-currency-unit-card.is-active .ut-currency-unit-card__label,
.ut-currency-unit-card.is-active .ut-currency-unit-card__rate,
.ut-currency-unit-card.is-active .ut-currency-unit-card__code {
  color: #fff;
}

.ut-currency-unit-card__rate {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
}

.ut-currency-unit-card--toman .ut-currency-unit-card__rate {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.ut-currency-unit-card--rial .ut-currency-unit-card__rate {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.ut-currency-unit-card--toman {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}

.ut-currency-unit-card--toman.is-active {
  background: linear-gradient(135deg, #059669, #047857);
}

.ut-currency-unit-card--rial {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.ut-currency-unit-card--rial.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.ut-currency-unit-card--usd.is-active { background: linear-gradient(135deg, #16a34a, #15803d); }
.ut-currency-unit-card--eur.is-active { background: linear-gradient(135deg, #2563eb, #1e40af); }
.ut-currency-unit-card--gbp.is-active { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ut-currency-unit-card--aed.is-active { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ut-currency-unit-card--try.is-active { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ut-currency-unit-card--cny.is-active { background: linear-gradient(135deg, #ea580c, #c2410c); }

.ut-currency-swap-btn {
  align-self: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.15s;
  flex-shrink: 0;
}

.ut-currency-swap-btn:hover {
  transform: rotate(180deg);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

.ut-currency-result-hero {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.5), rgba(239, 246, 255, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.1);
}

.ut-currency-result-hero__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.ut-currency-result-hero__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.ut-currency-result-hero__rate {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

.ut-currency-equiv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.ut-currency-equiv-card {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  overflow: hidden;
}

.ut-currency-equiv-card__ico {
  font-size: 0.85rem;
  opacity: 0.85;
}

.ut-currency-equiv-card small {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.85;
}

.ut-currency-equiv-card strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.ut-currency-equiv-card__unit {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.ut-currency-equiv-card__gross {
  font-size: 0.68rem;
  opacity: 0.85;
  margin-top: 0.1rem;
}

.ut-currency-equiv-card--fee {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

.ut-currency-result-hero__fee {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #b45309;
  font-weight: 700;
}

.ut-currency-result-hero__summary {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-right: 3px solid #059669;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 600;
}

.ut-currency-interpret {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
}

.ut-currency-interpret__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
}

.ut-currency-interpret__steps {
  margin: 0;
  padding: 0 1.1rem 0 0;
  list-style: none;
  counter-reset: ut-currency-step;
}

.ut-currency-interpret__steps li {
  counter-increment: ut-currency-step;
  position: relative;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #f1f5f9;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.ut-currency-interpret__steps li:last-child { border-bottom: none; }

.ut-currency-interpret__steps li::before {
  content: counter(ut-currency-step);
  position: absolute;
  right: -1.35rem;
  top: 0.5rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ut-currency-interpret__steps li.is-highlight {
  background: rgba(236, 253, 245, 0.5);
  margin: 0 -0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-weight: 800;
}

.ut-currency-interpret__steps li.is-highlight::before {
  background: #059669;
  color: #fff;
}

.ut-currency-interpret__label { color: #64748b; font-weight: 700; }
.ut-currency-interpret__value { color: #0f172a; font-weight: 800; text-align: left; }

.ut-currency-equiv-cards {
  grid-template-columns: repeat(3, 1fr);
}

.ut-currency-all-card__val::after {
  content: attr(data-unit);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 0.1rem;
}

@media (max-width: 720px) {
  .ut-currency-fee-grid { grid-template-columns: 1fr; }
  .ut-currency-equiv-cards { grid-template-columns: 1fr; }
}

.ut-currency-equiv-card--toman {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.25);
}

.ut-currency-equiv-card--rial {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.ut-currency-result-hero__words {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.65;
}

.ut-words-value-card,
.ut-currency-value-card {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f3ff, #fff);
  border: 1px solid #e9d5ff;
}

.ut-words-value-card__label,
.ut-currency-value-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ut-words-value-card__input,
.ut-currency-value-card input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: inherit;
  outline: none;
}

.ut-words-equiv {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #475569;
  text-align: right;
}

.ut-words-equiv p { margin: 0.25rem 0; }

.ut-words-rate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.ut-words-rate-bar__text {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.ut-words-rate-bar__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ut-words-rate-bar__btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.ut-currency-tgju {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.65rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
}

.ut-currency-tgju__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ut-currency-tgju__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1d4ed8;
}

.ut-currency-tgju__status {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
}

.ut-currency-tgju__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ut-currency-tgju.is-loading [data-currency-tgju-fetch] {
  opacity: 0.7;
  pointer-events: none;
}

.ut-currency-rates {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.ut-currency-rates__title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
}

.ut-currency-rates__hint {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #64748b;
}

.ut-currency-rates__hint i {
  color: #2563eb;
  margin-left: 0.25rem;
}

.ut-currency-rates__save-status {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  background: rgba(236, 253, 245, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.ut-currency-rates__save-status.is-error {
  color: #b45309;
  background: rgba(255, 251, 235, 0.95);
  border-color: rgba(245, 158, 11, 0.35);
}

.ut-conv__btn.is-saving {
  opacity: 0.75;
  pointer-events: none;
}

.ut-currency-rates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  max-height: 360px;
  overflow-y: auto;
}

.ut-currency-rate {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ut-currency-rate__label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
}

.ut-currency-rate__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.ut-currency-rate__row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  background: #fff;
}

.ut-currency-rates__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.ut-currency-all {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e2e8f0;
}

.ut-currency-all__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #334155;
}

.ut-currency-all__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  padding-left: 2px;
}

.ut-currency-all-card {
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-currency-all-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-currency-all-card--target {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.5));
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12);
}

.ut-currency-all-card--toman {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), #fff);
}

.ut-currency-all-card--rial {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), #fff);
}

.ut-currency-all-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.ut-currency-all-card__flag { font-size: 1rem; }
.ut-currency-all-card__ico { font-size: 0.72rem; color: #94a3b8; }
.ut-currency-all-card__label { font-size: 0.72rem; font-weight: 800; color: #64748b; }
.ut-currency-all-card__val { font-size: 0.92rem; font-weight: 900; color: #0f172a; line-height: 1.35; }
.ut-currency-all-card__code { font-size: 0.62rem; font-weight: 800; color: #94a3b8; direction: ltr; }

.ut-currency-history {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e2e8f0;
}

.ut-currency-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-currency-history__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
}

.ut-currency-history__autosave,
.ut-currency-history__db-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
}

.ut-currency-history-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.15rem;
}

.ut-currency-history-overview-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.ut-currency-history-overview-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.ut-currency-history-overview-card.is-empty {
  opacity: 0.65;
  border-style: dashed;
}

.ut-currency-history-overview-card__flag { font-size: 1rem; }
.ut-currency-history-overview-card__code {
  font-size: 0.68rem;
  font-weight: 900;
  color: #64748b;
  direction: ltr;
  text-align: left;
}
.ut-currency-history-overview-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ut-currency-history-overview-card__price {
  font-size: 0.82rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 0.15rem;
}
.ut-currency-history-overview-card__chg {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}
.ut-currency-history-overview-card__chg.is-up { color: #059669; }
.ut-currency-history-overview-card__chg.is-down { color: #dc2626; }

.ut-currency-history-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ut-currency-history-stat {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ut-currency-history-stat small {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
}

.ut-currency-history-stat strong {
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

.ut-currency-history-stat span {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.ut-currency-history-stat .ut-trend.is-up { color: #059669; }
.ut-currency-history-stat .ut-trend.is-down { color: #dc2626; }

.ut-currency-history-analytics__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.ut-currency-history-analytics__tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.ut-currency-history-analytics__tab.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ut-currency-history-analytics__tab.is-active .ut-currency-history-analytics__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ut-currency-history-analytics__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.ut-currency-history-analytics__desc {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #64748b;
}

.ut-currency-history-analytics__footer {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: left;
}

.ut-currency-history-analytics__panel {
  margin-bottom: 0.5rem;
}

.ut-currency-history__table-wrap--growth {
  max-height: 520px;
}

.ut-currency-history__table--growth th:nth-child(n+4),
.ut-currency-history__table--growth td:nth-child(n+4) {
  text-align: left;
  direction: ltr;
}

.ut-currency-history__table--growth td strong {
  font-weight: 900;
}

.ut-currency-history__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.ut-currency-history__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.ut-currency-history__select {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
}

.ut-currency-history__select span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.ut-currency-history__select select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: #fff;
}

.ut-currency-history__progress {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.ut-currency-history__progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.ut-currency-history__progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #2563eb, #059669);
  transition: width 0.25s ease;
}

.ut-currency-history__progress-text {
  margin: 0;
  font-size: 0.76rem;
  color: #475569;
}

.ut-currency-history__table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  max-height: 420px;
  overflow-y: auto;
}

.ut-currency-history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ut-currency-history__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  padding: 0.55rem 0.65rem;
  text-align: right;
  font-weight: 800;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ut-currency-history__table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
}

.ut-currency-history__table tr:hover td {
  background: rgba(239, 246, 255, 0.5);
}

.ut-currency-history__table td.is-up { color: #059669; }
.ut-currency-history__table td.is-down { color: #dc2626; }

.ut-currency-history__empty {
  text-align: center !important;
  color: #94a3b8 !important;
  padding: 1.25rem !important;
}

.ut-currency-history__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.ut-currency-history__pager span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 960px) {
  .ut-currency-select-layout { grid-template-columns: 1fr; }
  .ut-currency-swap-btn { justify-self: center; transform: rotate(90deg); }
  .ut-currency-swap-btn:hover { transform: rotate(270deg); }
  .ut-currency-equiv-cards { grid-template-columns: 1fr; }
  .ut-currency-history-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .ut-currency-history-summary { grid-template-columns: 1fr; }
}

.ut-conv__table-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.ut-conv__table-wrap {
  overflow-x: auto;
}

.ut-conv__table {
  width: 100%;
  border-collapse: collapse;
}

.ut-conv__table th,
.ut-conv__table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
}

.ut-conv__table th {
  color: #64748b;
  font-size: 0.82rem;
}

.ut-conv__tabs--scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.ut-conv__tabs--scroll .ut-conv__tab {
  flex-shrink: 0;
  white-space: nowrap;
}

.ut-conv__section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.ut-date__cal-switch--sm .ut-date__cal-chip {
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
}

.ut-date-parts {
  margin-bottom: 0.85rem;
}

.ut-date-parts__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.4rem;
}

.ut-date-parts__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ut-date-parts__preview {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ut-date-parts__preview.is-ready {
  color: #1e293b;
  background: #fff;
  border-color: #cbd5e1;
}

.ut-date-parts__preview.is-ready[data-cal-preview="shamsi"] {
  border-right: 3px solid #c2410c;
  background: #fff7ed;
}

.ut-date-parts__preview.is-ready[data-cal-preview="gregorian"] {
  border-right: 3px solid #1d4ed8;
  background: #eff6ff;
}

.ut-date-parts__preview.is-ready[data-cal-preview="hijri"] {
  border-right: 3px solid #047857;
  background: #ecfdf5;
}

.ut-date__control option:checked {
  background: #1e3a8a;
  color: #fff;
}

.ut-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.ut-diff-col {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid #e2e8f0;
}

.ut-diff-col .ut-date__cal-switch {
  margin-bottom: 0.65rem;
}

.ut-conv__hint--top {
  margin: 0 0 0.85rem;
}

.ut-diff-equiv {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  flex-wrap: wrap;
}

.ut-diff-equiv__item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #475569;
}

.ut-diff-equiv__item [data-diff-from-input],
.ut-diff-equiv__item [data-diff-to-input] {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
}

.ut-diff-equiv__item small {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.72rem;
}

.ut-diff-equiv__arrow {
  color: #94a3b8;
  flex-shrink: 0;
}

.ut-tool-result {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.ut-tool-result__main {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-tool-result__sub {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.ut-tool-result__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.ut-tool-result__grid div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 0.55rem;
  text-align: center;
}

.ut-tool-result__grid small {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.ut-tool-result__words {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 650;
  color: #0f172a;
}

.ut-tool-result__copy {
  margin-top: 0.25rem;
}

.ut-conv__textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.ut-tool-result--words,
.ut-tool-result--age {
  text-align: center;
}

.ut-date-with-cal .ut-date__cal-switch {
  margin-bottom: 0.75rem;
}

.ut-age-preview {
  margin-top: 1rem;
}

.ut-age-preview__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ut-age-preview__title i {
  color: #6366f1;
  font-size: 0.85rem;
}

.ut-conv__results--sm .ut-conv__result-card {
  padding: 0.85rem 0.9rem;
}

.ut-conv__results--sm .ut-conv__result-date {
  font-size: 1.05rem;
}

.ut-conv__results--sm h3 {
  font-size: 0.82rem;
}

.ut-tool-result__grid--age {
  margin: 0.85rem 0 1.1rem;
}

/* --- محاسبه مساحت --- */
.ut-conv__card--area .ut-conv__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ut-unit-badge--area {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.ut-area-shapes__group {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: none;
}

.ut-area-shapes__group:first-child {
  margin-top: 0;
}

.ut-area-shapes__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.ut-area-shape {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ut-area-shape i {
  color: #6366f1;
  font-size: 0.9rem;
}

.ut-area-shape:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.ut-area-shape.is-active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #312e81;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.ut-area-formula {
  margin: 0.85rem 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.ut-area-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-area-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ut-area-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ut-area-field__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.ut-area-field__row {
  display: flex;
  gap: 0.45rem;
}

.ut-area-field__value {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
}

.ut-area-field__unit {
  width: 9.5rem;
  max-width: 42%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.45rem;
  font-family: inherit;
  font-size: 0.78rem;
  background: #fff;
}

.ut-tool-result--area {
  text-align: center;
}

.ut-area-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.ut-area-diagram {
  padding: 0.75rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.ut-area-diagram__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.ut-area-diagram__svg svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.ut-area-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .ut-area-fields {
    grid-template-columns: 1fr;
  }

  .ut-area-field__unit {
    width: 7.5rem;
  }

  .ut-area-layout {
    grid-template-columns: 1fr;
  }

  .ut-area-diagram {
    order: -1;
  }

  .ut-area-results-grid {
    grid-template-columns: 1fr;
  }
}

.ut-tool-result--age .ut-age-preview__title {
  text-align: right;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .ut-conv.ut-hub__shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ut-hub__sidebar {
    position: static;
    max-height: none;
    top: auto;
    border-left: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .ut-tools-subnav__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.75rem;
  }

  .ut-tools-subnav__quick {
    border-inline-start: none;
    padding-inline-start: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .ut-hub-page__hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ut-hub-page__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .ut-hub__toolbar {
    padding: 0.65rem 1rem;
  }

  .ut-hub__main {
    padding: 1rem 0.85rem 1.5rem;
  }

  .ut-hub__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .ut-hub__nav-group { grid-column: 1 / -1; }

  .ut-conv__results {
    grid-template-columns: 1fr;
  }

  .ut-conv__card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ut-date__manual-box {
    flex-wrap: wrap;
  }

  .ut-date__side-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }

  .ut-date__part--month {
    min-width: 100%;
  }

  .ut-diff-grid {
    grid-template-columns: 1fr;
  }

  .ut-tool-result__grid,
  .ut-tool-result__grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- رمز عبور — Win11 --- */
.ut-pw-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ut-pw-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-pw-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-pw-win__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-pw-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.ut-pw-preset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-pw-preset:hover { transform: translateY(-1px); }

.ut-pw-preset.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}

.ut-pw-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ut-pw-slider-card {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
}

.ut-pw-slider-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
}

.ut-pw-slider-card__val {
  color: #4f46e5;
  font-weight: 900;
}

.ut-pw-range {
  width: 100%;
  accent-color: #6366f1;
}

.ut-pw-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.ut-pw-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
}

.ut-pw-opt input { accent-color: #6366f1; }

.ut-pw-opt span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ut-pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ut-pw-gen { flex: 1 1 180px; }

.ut-pw-strength {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ut-pw-strength__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ut-pw-strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #059669);
  transition: width 0.25s ease;
}

.ut-pw-strength__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  min-width: 4.5rem;
}

.ut-pw-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ut-pw-results__empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

.ut-pw-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
}

.ut-pw-card__idx {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 900;
}

.ut-pw-card__text {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  word-break: break-all;
  color: #0f172a;
  direction: ltr;
  text-align: left;
}

.ut-pw-card__text.is-masked {
  letter-spacing: 0.15em;
}

.ut-pw-card__copy {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .ut-pw-sliders { grid-template-columns: 1fr; }
}

/* --- ریال / تومان — Win11 --- */
.ut-rialtoman-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ut-rialtoman-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-rialtoman-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-unit-badge--rialtoman {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(22, 163, 74, 0.08));
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.28);
}

.ut-rialtoman-win__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-unit-value-card--rialtoman,
.ut-unit-value-card--money {
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
  border-color: rgba(34, 197, 94, 0.22);
}

.ut-rialtoman-direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.ut-rialtoman-dir {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-align: right;
}

.ut-rialtoman-dir:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-rialtoman-dir.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.28);
}

.ut-rialtoman-dir--rial.is-active {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.ut-rialtoman-dir--toman.is-active {
  background: linear-gradient(135deg, #059669, #047857);
}

.ut-rialtoman-dir__ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ut-rialtoman-dir.is-active .ut-rialtoman-dir__ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-rialtoman-dir__text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.ut-rialtoman-dir__arrow {
  font-size: 0.7rem;
  opacity: 0.75;
}

.ut-unit-result-card--rialtoman {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.ut-unit-result-card__sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.ut-rialtoman-copy {
  align-self: center;
  padding: 0.45rem 0.65rem;
}

.ut-rialtoman-quick {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(226, 232, 240, 0.95);
}

.ut-rialtoman-quick__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.ut-rialtoman-quick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ut-rialtoman-quick__chip {
  padding: 0.38rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ut-rialtoman-quick__chip:hover {
  background: #ecfdf5;
  border-color: #86efac;
}

@media (max-width: 560px) {
  .ut-rialtoman-direction {
    grid-template-columns: 1fr;
  }
}

/* --- محاسبات مالی — Win11 --- */
.ut-finance-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ut-finance-section {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.ut-finance-section:first-of-type {
  margin-top: 0.5rem;
}

.ut-finance-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ut-finance-section__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #334155;
}

.ut-finance-preset-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ut-finance-preset-category__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.ut-unit-badge--finance-win {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(2, 132, 199, 0.08));
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.25);
}

.ut-finance-fa-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ut-finance-win__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ut-unit-badge--finance-preset {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(79, 70, 229, 0.08));
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.25);
}

.ut-finance-presets__head {
  display: none;
}

.ut-finance-presets__clear {
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.ut-finance-presets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.55rem;
}

.ut-finance-preset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: right;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ut-finance-preset-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ut-finance-preset-card.is-active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
}

.ut-finance-preset-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.4rem;
}

.ut-finance-preset-card__ico {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.ut-finance-preset-card.is-active .ut-finance-preset-card__ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-finance-preset-card__badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

.ut-finance-preset-card.is-active .ut-finance-preset-card__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-finance-preset-card__label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-finance-preset-card.is-active .ut-finance-preset-card__label,
.ut-finance-preset-card.is-active .ut-finance-preset-card__provider {
  color: #fff;
}

.ut-finance-preset-card__provider {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.ut-finance-preset-card--melli.is-active { background: linear-gradient(135deg, #1e40af, #1d4ed8); }
.ut-finance-preset-card--mellat.is-active { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ut-finance-preset-card--saderat.is-active { background: linear-gradient(135deg, #0369a1, #075985); }
.ut-finance-preset-card--saman.is-active { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ut-finance-preset-card--parsian.is-active { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ut-finance-preset-card--tejarat.is-active { background: linear-gradient(135deg, #ca8a04, #a16207); }
.ut-finance-preset-card--pasargad.is-active { background: linear-gradient(135deg, #059669, #047857); }
.ut-finance-preset-card--digikala.is-active { background: linear-gradient(135deg, #ef4056, #d63046); }
.ut-finance-preset-card--snapp.is-active { background: linear-gradient(135deg, #00d170, #00a85a); }
.ut-finance-preset-card--torob.is-active { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ut-finance-preset-card--azki.is-active { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ut-finance-preset-card--tapsi.is-active { background: linear-gradient(135deg, #f97316, #ea580c); }
.ut-finance-preset-card--generic.is-active { background: linear-gradient(135deg, #475569, #334155); }

.ut-finance-active-preset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
}

.ut-finance-quick {
  margin-bottom: 0.65rem;
}

.ut-finance-quick__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.ut-finance-quick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ut-finance-quick__chip {
  padding: 0.38rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  color: #475569;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-finance-quick__chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ut-finance-quick__chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #059669, #047857);
}

.ut-finance-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-finance-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-unit-badge--finance {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.ut-finance-win__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-conv__panel.is-active {
  max-width: 100%;
}

@media (min-width: 1400px) {
  .ut-conv__results {
    grid-template-columns: repeat(3, 1fr);
  }

  .ut-unit-win,
  .ut-finance-win,
  .ut-currency-win,
  .ut-rialtoman-win,
  .ut-pw-win {
    padding: 1.4rem 1.6rem;
  }
}

.ut-finance-modes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ut-finance-mode-group {
  margin: 0;
}

.ut-finance-modes__group {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
}

.ut-finance-modes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.45rem;
}

.ut-finance-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  min-height: 4.25rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ut-finance-mode:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ut-finance-mode.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.ut-finance-mode__label {
  line-height: 1.35;
}

.ut-finance-mode__ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ut-finance-mode.is-active .ut-finance-mode__ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-finance-mode--blue.is-active { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ut-finance-mode--sky.is-active { background: linear-gradient(135deg, #0284c7, #0369a1); }
.ut-finance-mode--cyan.is-active { background: linear-gradient(135deg, #0891b2, #0e7490); }
.ut-finance-mode--rose.is-active { background: linear-gradient(135deg, #e11d48, #be123c); }
.ut-finance-mode--emerald.is-active { background: linear-gradient(135deg, #059669, #047857); }
.ut-finance-mode--amber.is-active { background: linear-gradient(135deg, #d97706, #b45309); }
.ut-finance-mode--orange.is-active { background: linear-gradient(135deg, #ea580c, #c2410c); }
.ut-finance-mode--teal.is-active { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ut-finance-mode--lime.is-active { background: linear-gradient(135deg, #65a30d, #4d7c0f); }
.ut-finance-mode--green.is-active { background: linear-gradient(135deg, #16a34a, #15803d); }
.ut-finance-mode--violet.is-active { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ut-finance-mode--purple.is-active { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.ut-finance-mode--indigo.is-active { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.ut-finance-mode--slate.is-active { background: linear-gradient(135deg, #475569, #334155); }
.ut-finance-mode--pink.is-active { background: linear-gradient(135deg, #db2777, #be185d); }
.ut-finance-mode--yellow.is-active { background: linear-gradient(135deg, #ca8a04, #a16207); }

.ut-finance-mode--red.is-active { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.ut-finance-mode-desc {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.9);
  font-size: 0.8rem;
  color: #64748b;
}

.ut-finance-value-card {
  margin: 0.5rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ut-finance-value-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ut-finance-value-card__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.55rem;
  font-weight: 800;
  font-family: inherit;
  outline: none;
  text-align: right;
  direction: rtl;
}

.ut-finance-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ut-finance-field-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
}

.ut-finance-field-card span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
}

.ut-finance-field-card input {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: inherit;
  outline: none;
  text-align: right;
  direction: rtl;
}

.ut-finance-section--result {
  background: linear-gradient(160deg, rgba(236, 253, 245, 0.35), rgba(255, 255, 255, 0.95));
  border-color: rgba(16, 185, 129, 0.18);
}

.ut-finance-result {
  margin-top: 0;
}

.ut-finance-result__hero {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.ut-finance-result__hero-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.ut-finance-result__hero-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.ut-finance-result__hero-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

.ut-finance-result__hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.ut-finance-result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.ut-finance-result-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s;
}

.ut-finance-result-card:hover {
  transform: translateY(-1px);
}

.ut-finance-result-card--accent {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}

.ut-finance-result-card small {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ut-finance-result-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .ut-finance-presets__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .ut-finance-modes__grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 520px) {
  .ut-hub__nav {
    grid-template-columns: 1fr;
  }
}

/* شبا و بانک — Win11 کارتی */
.ut-banking-win {
  background: var(--gp-glass-bg-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(var(--gp-glass-blur, 20px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ut-banking-win__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ut-banking-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ut-banking-win__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ut-unit-badge--banking {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(2, 132, 199, 0.08));
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.25);
}

.ut-unit-badge--banking-win {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.14), rgba(0, 90, 158, 0.08));
  color: #005a9e;
  border-color: rgba(0, 120, 212, 0.25);
}

.ut-banking-win__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.ut-banking-section {
  margin-top: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ut-banking-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
}

.ut-banking-section--result {
  background: linear-gradient(160deg, rgba(239, 246, 255, 0.45), rgba(255, 255, 255, 0.95));
  border-color: rgba(14, 165, 233, 0.18);
}

.ut-banking-modes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.5rem;
}

.ut-banking-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.7rem 0.8rem;
  min-height: 4.5rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ut-banking-mode:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.ut-banking-mode.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  box-shadow: 0 8px 22px rgba(0, 120, 212, 0.28);
}

.ut-banking-mode__ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.82rem;
}

.ut-banking-mode.is-active .ut-banking-mode__ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ut-banking-mode strong {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.ut-banking-mode small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.ut-banking-panel {
  margin-top: 0.15rem;
}

.ut-banking-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ut-banking-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ut-banking-field__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
}

.ut-banking-field__input,
.ut-banking-field__select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ut-banking-field__input:focus,
.ut-banking-field__select:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.ut-banking-field.is-invalid .ut-banking-field__input,
.ut-banking-field.is-invalid .ut-banking-field__select {
  border-color: #dc2626;
  background: rgba(254, 242, 242, 0.95);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ut-banking-field__hint {
  margin: 0;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.55;
}

.ut-banking-field__hint.is-muted {
  opacity: 0.45;
}

.ut-banking-field__error {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  line-height: 1.45;
}

.ut-banking-fa-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.ut-banking-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ut-banking-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 120, 212, 0.32);
}

.ut-banking-result__hero {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
}

.ut-banking-result__hero.is-valid {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.95));
}

.ut-banking-result__hero.is-invalid {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.95));
}

.ut-banking-result__hero.is-neutral {
  border-color: #e2e8f0;
}

.ut-banking-result__hero-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  font-size: 1rem;
}

.ut-banking-result__hero.is-valid .ut-banking-result__hero-ico {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}

.ut-banking-result__hero.is-invalid .ut-banking-result__hero-ico {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
}

.ut-banking-result__hero-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.ut-banking-result__hero-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.45;
}

.ut-banking-result__hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #475569;
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
  word-break: break-all;
}

.ut-banking-result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ut-banking-result-card {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.ut-banking-result-card small {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.ut-banking-result-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
  word-break: break-all;
}

.ut-banking-result__owners {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #cbd5e1;
}

.ut-banking-result__owners h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f766e;
}

.ut-banking-result__owner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ut-banking-result__note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
}

/* مودال خطای بانکی */
.ut-banking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ut-banking-modal[hidden] {
  display: none !important;
}

.ut-banking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.ut-banking-modal__box {
  position: relative;
  width: min(100%, 420px);
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-align: center;
}

.ut-banking-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ut-banking-modal__icon.is-error {
  background: rgba(254, 226, 226, 0.95);
  color: #dc2626;
}

.ut-banking-modal__icon.is-warn {
  background: rgba(254, 243, 199, 0.95);
  color: #d97706;
}

.ut-banking-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.ut-banking-modal__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.ut-banking-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

body.ut-banking-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ut-banking-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Win11 — آرشیو ارز */
.ut-currency-history--win11 {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.ut-win11-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.ut-win11-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.ut-currency-history__sync-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.ut-currency-history__sync-badge.is-complete {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.ut-currency-history-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.ut-currency-history-modes__btn {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ut-currency-history-modes__btn:hover {
  background: #fff;
  border-color: #93c5fd;
}

.ut-currency-history-modes__btn.is-active {
  background: linear-gradient(135deg, #0078d4, #106ebe);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.28);
}

.ut-win11-card-grid {
  max-height: none;
}

.ut-win11-mini-card {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
}

.ut-currency-history-overview-card__count {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 700;
}

.ut-win11-stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .ut-win11-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.ut-win11-stat-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.ut-win11-panel {
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.ut-win11-toolbar {
  margin-bottom: 0.65rem;
}

.ut-win11-date-card {
  padding: 1rem;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88));
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.ut-win11-date-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 900;
  color: #1e293b;
}

.ut-win11-date-card__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.ut-win11-date-card__row--wide {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.ut-win11-date-card label span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.ut-win11-date-card select,
.ut-win11-date-card input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
  background: #fff;
}

.ut-win11-date-card__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.ut-win11-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
}

.ut-win11-chip:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.ut-currency-history__snapshot-title {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0078d4;
}

.ut-currency-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}

.ut-currency-snapshot-card {
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ut-currency-snapshot-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ut-currency-snapshot-card__flag { font-size: 1.1rem; }
.ut-currency-snapshot-card__code {
  font-size: 0.68rem;
  font-weight: 900;
  color: #64748b;
  direction: ltr;
}

.ut-currency-snapshot-card__price {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 0.15rem;
}

.ut-currency-snapshot-card small {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.ut-currency-snapshot-card__vs.is-up { color: #059669; }
.ut-currency-snapshot-card__vs.is-down { color: #dc2626; }

.ut-currency-snapshot-card.is-empty {
  opacity: 0.6;
  border-style: dashed;
}

.ut-currency-detail-head {
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.ut-currency-detail-head h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 900;
}

.ut-currency-detail-head p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  color: #475569;
}

.ut-currency-history__table tbody tr.is-target td {
  background: rgba(0, 120, 212, 0.08);
  font-weight: 800;
}

.ut-currency-history__more {
  text-align: center;
  padding: 0.65rem !important;
}

.ut-currency-history-mode-panel {
  margin-top: 0.25rem;
}

.ut-currency-history-mode-panel[hidden] {
  display: none !important;
}

/* --- ماشین‌حساب حرفه‌ای (Odoo-inspired) --- */
.ut-calc-win {
  --ut-calc-odoo: #714b67;
  --ut-calc-odoo-light: #f3e8f2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.ut-calc-win--odoo {
  border-color: rgba(113, 75, 103, 0.15);
}

.ut-calc-win__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.ut-calc-win__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ut-calc-win__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.ut-calc-win__badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ut-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.ut-calc-badge--odoo {
  background: var(--ut-calc-odoo-light);
  border-color: rgba(113, 75, 103, 0.2);
  color: var(--ut-calc-odoo);
}

.ut-calc-badge--btn {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ut-calc-badge--btn:hover {
  background: rgba(0, 120, 212, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
  color: #0078d4;
}

.ut-calc-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.ut-calc-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ut-calc-mode:hover {
  border-color: rgba(0, 120, 212, 0.3);
  color: #0078d4;
}

.ut-calc-mode.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ut-calc-mode--blue.is-active {
  background: linear-gradient(135deg, #0078d4, #106ebe);
}

.ut-calc-mode--odoo.is-active {
  background: linear-gradient(135deg, #714b67, #5a3d52);
}

.ut-calc-mode--violet.is-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.ut-calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1rem;
  align-items: start;
}

.ut-calc-display {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  margin-bottom: 0.75rem;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(15, 23, 42, 0.15);
}

.ut-calc-display__expr {
  font-family: 'IRANSansXFaNum', 'IRANSansX', Tahoma, sans-serif;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: left;
  direction: ltr;
  min-height: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ut-calc-display__value {
  font-family: 'IRANSansXFaNum', 'IRANSansX', Tahoma, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: left;
  direction: ltr;
  line-height: 1.2;
  word-break: break-all;
}

.ut-calc-display__memory {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ut-calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.ut-calc-key {
  min-height: 3rem;
  border: none;
  border-radius: 14px;
  font-family: 'IRANSansXFaNum', 'IRANSansX', Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ut-calc-key:active {
  transform: scale(0.97);
}

.ut-calc-key--num {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.ut-calc-key--num:hover {
  background: #f8fafc;
}

.ut-calc-key--op {
  background: linear-gradient(180deg, #0078d4, #106ebe);
  color: #fff;
}

.ut-calc-win--odoo .ut-calc-key--op {
  background: linear-gradient(180deg, #714b67, #5a3d52);
}

.ut-calc-key--eq {
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  font-size: 1.2rem;
}

.ut-calc-key--fn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.ut-calc-key--mem {
  background: var(--ut-calc-odoo-light);
  color: var(--ut-calc-odoo);
  border: 1px solid rgba(113, 75, 103, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.ut-calc-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ut-calc-tape {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.75rem;
  max-height: 28rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ut-calc-win--tape .ut-calc-tape {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.5), rgba(248, 250, 252, 0.95));
}

.ut-calc-tape__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ut-calc-tape__head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ut-calc-tape__clear {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.ut-calc-tape__clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.ut-calc-tape__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ut-calc-tape__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.ut-calc-tape__expr {
  font-family: 'IRANSansXFaNum', 'IRANSansX', Tahoma, sans-serif;
  font-size: 0.72rem;
  color: #64748b;
  direction: ltr;
  text-align: left;
}

.ut-calc-tape__res {
  font-family: 'IRANSansXFaNum', 'IRANSansX', Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  direction: ltr;
  text-align: left;
}

.ut-calc-tape__empty {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem 0.5rem;
}

@media (max-width: 900px) {
  .ut-calc-body {
    grid-template-columns: 1fr;
  }

  .ut-calc-tape {
    max-height: 14rem;
  }

  .ut-calc-key {
    min-height: 2.75rem;
  }
}

@media (max-width: 520px) {
  .ut-calc-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .ut-calc-mode span {
    font-size: 0.72rem;
  }
}

body[data-isc-view="mobile"] .ut-calc-key {
  min-height: 44px;
}

