/* Import IRANSans font */
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  src: url("../fonts/eot/IRANSansWeb(FaNum)_Bold.eot");
  src:
    url("../fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2")
      format("woff2"),
    /* FF39+,Chrome36+, Opera24+*/
      url("../fonts/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/eot/IRANSansWeb(FaNum)_Medium.eot");
  src:
    url("../fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2")
      format("woff2"),
    /* FF39+,Chrome36+, Opera24+*/
      url("../fonts/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/eot/IRANSansWeb(FaNum)_Light.eot");
  src:
    url("../fonts/eot/IRANSansWeb(FaNum)_Light.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2")
      format("woff2"),
    /* FF39+,Chrome36+, Opera24+*/
      url("../fonts/woff/IRANSansWeb(FaNum)_Light.woff") format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot");
  src:
    url("../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2")
      format("woff2"),
    /* FF39+,Chrome36+, Opera24+*/
      url("../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff") format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/eot/IRANSansWeb(FaNum).eot");
  src:
    url("../fonts/eot/IRANSansWeb(FaNum).eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
    /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum).woff")
      format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../fonts/ttf/IRANSansWeb(FaNum).ttf") format("truetype");
}

/* fallback */
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/woff2/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOejbd5zrDAt.woff2)
    format("woff2");
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --bg: #fafaf8;
  --bg2: #f2f0ec;
  --bg3: #e8e6e1;
  --surf: #ffffff;
  --surf2: #f6f4f0;
  --line: #373638;
  --line2: rgba(55, 54, 56, 0.13);
  --line3: rgba(55, 54, 56, 0.06);
  --txt: #373638;
  --txt2: #5a5860;
  --txt3: #9a9898;
  --txt4: #c4c2c2;
  --acc: #c57d12; /* golden grey */
  --acc2: #8c6d42;
  --acc-bg: #f5efe6;
  --acc-dim: rgba(176, 144, 96, 0.15);
  --red: #e02020;
  --red-bg: rgba(224, 32, 32, 0.08);
  --grn: #1a7a3c;
  --grn-bg: rgba(26, 122, 60, 0.1);
  --amb: #b45309;
  --amb-bg: rgba(180, 83, 9, 0.1);
  --sh1: 0 1px 3px rgba(28, 27, 24, 0.07), 0 1px 2px rgba(28, 27, 24, 0.04);
  --sh2: 0 4px 14px rgba(28, 27, 24, 0.09), 0 2px 4px rgba(28, 27, 24, 0.05);
  --sh3: 0 10px 36px rgba(28, 27, 24, 0.12), 0 4px 8px rgba(28, 27, 24, 0.06);
  --r: 10px;
  --r2: 7px;
  --r3: 16px;
  --font: "IRANSans", sans-serif;
}
[data-theme="dark"] {
  --bg: #141412;
  --bg2: #1c1b18;
  --bg3: #242320;
  --surf: #1e1d1a;
  --surf2: #252420;
  --line: #edebe3;
  --line2: rgba(237, 235, 227, 0.1);
  --line3: rgba(237, 235, 227, 0.05);
  --txt: #edebe3;
  --txt2: #aba99f;
  --txt3: #6a6860;
  --txt4: #3a3830;
  --acc: #c9a96e;
  --acc2: #b09060;
  --acc-bg: rgba(201, 169, 110, 0.15);
  --acc-dim: rgba(201, 169, 110, 0.25);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.1);
  --grn: #4ade80;
  --grn-bg: rgba(74, 222, 128, 0.1);
  --amb: #fcd34d;
  --amb-bg: rgba(252, 211, 77, 0.1);
  --sh1: 0 1px 3px rgba(0, 0, 0, 0.3);
  --sh2: 0 4px 14px rgba(0, 0, 0, 0.35);
  --sh3: 0 10px 36px rgba(0, 0, 0, 0.45);
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  height: 100%;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  direction: rtl;
  overflow: hidden;
  transition:
    background 0.25s,
    color 0.25s;
}
input,
select,
textarea,
button {
  font-family: var(--font);
  outline: none;
  border: none;
}
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}
::-webkit-scrollbar-thumb {
  background: var(--txt4);
  border-radius: 2px;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOADING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#ld {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
#ld.out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
.ld-mark {
  position: relative;
  margin-bottom: 28px;
}
.ld-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  position: relative;
}
.ld-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--acc);
  animation: ldpulse 1.8s ease-in-out infinite;
}
@keyframes ldpulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
.ld-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ld-icon img {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ld-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.ld-sub {
  font-size: 12px;
  color: var(--txt3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ld-track {
  width: 100px;
  height: 2px;
  background: var(--line3);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
}
.ld-prog {
  height: 100%;
  background: var(--acc);
  border-radius: 2px;
  animation: ldbar 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ldbar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INSTALL BANNER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#ib {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#ib.show {
  transform: translateY(0);
}
.ib-card {
  background: var(--surf);
  border: 1px solid var(--line2);
  border-radius: var(--r3);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--sh3);
}
.ib-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ib-logo img {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ib-txt {
  flex: 1;
  min-width: 0;
}
.ib-txt strong {
  font-size: 13px;
  font-weight: 700;
  display: block;
}
.ib-txt span {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 1px;
  display: block;
}
.ib-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}
.ib-yes {
  padding: 8px 14px;
  background: var(--acc);
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.ib-no {
  padding: 8px 10px;
  background: transparent;
  color: var(--txt3);
  border: 1px solid var(--line2);
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   APP + PAGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#app {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.page {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s;
}
.page.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateX(50px);
}
.page.back-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50px);
}
.p-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOPBAR  — accent stripe design
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surf);
  border-bottom: 1.5px solid var(--line2);
  position: relative;
}
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acc), #d4b896, var(--acc));
}
.tb-tit {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.2px;
}
.tb-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.tb-btn:active {
  background: var(--bg3);
}
.tb-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--txt);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ONBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#pob .p-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 22px;
  min-height: 100%;
  background: var(--bg);
}
.ob-hero {
  text-align: center;
  margin-bottom: 36px;
}
.ob-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acc-bg);
  border: 1px solid var(--acc-dim);
  border-radius: 30px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.ob-badge span {
  font-size: 11px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ob-badge img {
  width: 14px;
  height: 14px;
  stroke: var(--acc);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ob-h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.ob-h1 em {
  font-style: normal;
  color: var(--acc);
}
.ob-p {
  font-size: 13px;
  color: var(--txt3);
  line-height: 1.7;
}
.ob-card {
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: var(--r3);
  padding: 22px 18px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh2);
}
.ob-card-hd {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-card-hd::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--acc);
  border-radius: 2px;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.fg {
  margin-bottom: 14px;
}
.fg label {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fi {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg2);
  border: 1.5px solid var(--line2);
  border-radius: var(--r2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  transition:
    border-color 0.15s,
    background 0.15s;
  direction: rtl;
}
.fi:focus {
  border-color: var(--acc);
  background: var(--acc-bg);
}
.fi::placeholder {
  color: var(--txt4);
}
textarea.fi {
  resize: none;
  min-height: 64px;
  line-height: 1.6;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--r2);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  border: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-p {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 2px 10px var(--acc-dim);
}
.btn-p:hover {
  background: var(--acc2);
}
.btn-s {
  background: var(--bg2);
  color: var(--txt);
  border: 1.5px solid var(--line2);
}
.btn-g {
  background: transparent;
  color: var(--txt3);
  border: 1.5px solid var(--line2);
}
.btn-d {
  background: var(--red-bg);
  color: var(--red);
}
.btn-ok {
  background: var(--grn-bg);
  color: var(--grn);
}
.w100 {
  width: 100%;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-banner {
  background: var(--surf);
  border-bottom: 1.5px solid var(--line2);
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hm-l {
  min-width: 0;
}
.hm-greet {
  font-size: 11px;
  color: var(--txt3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hm-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pill-blue {
  background: var(--acc-bg);
  color: var(--acc);
  border: 1px solid var(--acc-dim);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* visits */
.sec-hd {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-hd-line {
  flex: 1;
  height: 1px;
  background: var(--line3);
}
.sec-hd-txt {
  font-size: 10px;
  font-weight: 800;
  color: var(--txt4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-list {
  display: flex;
  flex-direction: column;
}
.v-row {
  background: var(--surf);
  border-bottom: 1px solid var(--line3);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.v-row:active {
  background: var(--bg2);
}
.v-row::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--acc);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.v-row:active::after {
  opacity: 1;
}
.v-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--acc-bg);
  border: 1px solid var(--acc-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v-ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--acc);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-inf {
  flex: 1;
  min-width: 0;
}
.v-nm {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.v-mt {
  font-size: 11px;
  color: var(--txt3);
}
.v-ct {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  background: var(--bg2);
  border: 1px solid var(--line2);
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  font-family: var(--font);
}
.v-del-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: var(--red-bg);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s;
}
.v-del-btn:active {
  background: var(--red);
  color: #fff;
}
.v-del-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-arr {
  width: 18px;
  height: 18px;
  stroke: var(--txt4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.empty-s {
  padding: 60px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-s .ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1.5px dashed var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.empty-s .ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--txt4);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-s p {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt2);
}
.empty-s small {
  font-size: 12px;
  color: var(--txt3);
  line-height: 1.6;
}
.fab {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--acc);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 6px 24px var(--acc-dim),
    0 2px 8px rgba(176, 144, 96, 0.3);
  z-index: 30;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -0.1px;
}
.fab:active {
  transform: translateX(-50%) scale(0.94);
}
.fab svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ITEMS — TABLE  (redesigned)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.it-wrap {
  padding: 12px 12px 80px;
}
/* location header card */
.loc-card {
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: var(--r3);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh1);
}
.loc-icon {
  width: 36px;
  height: 36px;
  background: var(--acc);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loc-name-inp {
  flex: 1;
  background: transparent;
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  min-width: 0;
}
.loc-name-inp::placeholder {
  color: var(--txt4);
  font-weight: 400;
}
.loc-name-inp:focus {
  outline: none;
  color: var(--acc);
}
.loc-date {
  font-size: 11px;
  color: var(--txt3);
  font-family: var(--font);
  background: var(--bg2);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* table card */
.tbl-card {
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow: var(--sh1);
  margin-bottom: 10px;
}
.tbl-head {
  background: var(--acc);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr 52px 56px 38px;
  gap: 6px;
  align-items: center;
}
.tbl-head span {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tbl-head span:nth-child(3),
.tbl-head span:nth-child(4) {
  text-align: center;
}
.tbl-head span:last-child {
  text-align: center;
}
/* rows */
.it-row {
  display: grid;
  grid-template-columns: 28px 1fr 52px 56px 38px;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line3);
  padding: 2px 6px;
  transition: background 0.1s;
  position: relative;
}
.it-row:last-child {
  border-bottom: none;
}
.it-row.dragging {
  background: var(--acc-bg);
  opacity: 0.7;
  box-shadow: var(--sh2);
  z-index: 10;
}
.it-row.drag-over {
  background: var(--acc-bg);
  border-top: 2px solid var(--acc);
}
.row-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt4);
  text-align: center;
  font-family: var(--font);
  padding: 8px 0;
}
/* drag handle */
.drag-h {
  width: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  padding: 8px 0;
  touch-action: none;
}
.drag-h:active {
  cursor: grabbing;
}
.drag-h svg {
  width: 14px;
  height: 14px;
  stroke: var(--txt4);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* cell inputs */
.c-sel {
  width: 100%;
  padding: 9px 6px 9px 8px;
  background: transparent;
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  direction: rtl;
  appearance: none;
  cursor: pointer;
  min-width: 0;
}
.c-sel:focus {
  background: var(--acc-bg);
  outline: 2px solid var(--acc);
  outline-offset: -2px;
  border-radius: 4px;
}
.c-inp {
  width: 100%;
  padding: 9px 4px;
  background: transparent;
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  text-align: center;
}
.c-inp:focus {
  background: var(--acc-bg);
  outline: 2px solid var(--acc);
  outline-offset: -2px;
  border-radius: 4px;
}
.c-unit {
  width: 100%;
  padding: 9px 4px;
  background: transparent;
  color: var(--txt3);
  font-family: var(--font);
  font-size: 12px;
  text-align: center;
  cursor: default;
}
.del-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--red-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: auto;
  transition: background 0.1s;
  border: none;
}
.del-btn:active {
  background: var(--red);
  color: #fff;
}
.del-btn svg {
  width: 13px;
  height: 13px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* custom name row */
.c-custom-inp {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg2);
  border: 1px solid var(--acc-dim);
  border-radius: 5px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
}
.c-custom-inp:focus {
  background: var(--acc-bg);
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}
/* add row */
.add-row {
  display: grid;
  grid-template-columns: 28px 1fr 52px 56px 38px;
  gap: 6px;
  align-items: center;
  padding: 6px 6px;
  background: var(--bg2);
  border-top: 1.5px dashed var(--line2);
}
.add-sel {
  width: 100%;
  padding: 8px 6px;
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: 6px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  direction: rtl;
  appearance: none;
  cursor: pointer;
}
.add-sel:focus {
  border-color: var(--acc);
  background: var(--acc-bg);
  outline: none;
}
.add-num {
  width: 100%;
  padding: 8px 4px;
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: 6px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  text-align: center;
}
.add-num:focus {
  border-color: var(--acc);
  background: var(--acc-bg);
  outline: none;
}
.add-unit-disp {
  font-size: 11px;
  color: var(--txt3);
  font-family: var(--font);
  text-align: center;
  padding: 4px;
}
.add-btn {
  width: 30px;
  height: 30px;
  background: var(--acc);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: auto;
  box-shadow: 0 2px 8px var(--acc-dim);
}
.add-btn:active {
  transform: scale(0.88);
}
.add-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* tbl footer */
.tbl-foot {
  padding: 10px 16px;
  background: var(--bg2);
  border-top: 1.5px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tbl-foot-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tbl-foot-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--acc);
  font-family: var(--font);
}
/* note card */
.note-card {
  background: var(--surf);
  border: 1.5px solid var(--line2);
  border-radius: var(--r3);
  padding: 14px;
  box-shadow: var(--sh1);
}
.note-card label {
  font-size: 10px;
  font-weight: 800;
  color: var(--txt3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.note-card label svg {
  width: 13px;
  height: 13px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACTION BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.abar {
  flex-shrink: 0;
  background: var(--surf);
  border-top: 1.5px solid var(--line2);
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 8px;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROFILE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.prof-hero {
  padding: 28px 16px 20px;
  border-bottom: 1.5px solid var(--line2);
  background: var(--surf);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.av {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 16px var(--acc-dim);
  letter-spacing: -0.5px;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DRAWER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ov {
  position: fixed;
  inset: 0;
  background: rgba(55, 54, 56, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  backdrop-filter: blur(3px);
}
.ov.on {
  opacity: 1;
  pointer-events: all;
}
.drw {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 270px;
  max-width: 85vw;
  background: var(--surf);
  z-index: 90;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1.5px solid var(--line2);
}
.drw.on {
  transform: translateX(0);
}
.drw-top {
  padding: 52px 18px 14px;
  border-bottom: 1px solid var(--line2);
}
.drw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.drw-logo-box {
  width: 36px;
  height: 36px;
  background: var(--acc);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drw-logo-box svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drw-brand {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.drw-sub {
  font-size: 11px;
  color: var(--txt3);
}
.drw-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.dr-it {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: var(--r2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt2);
  transition: background 0.1s;
}
.dr-it:active {
  background: var(--bg2);
}
.dr-it svg {
  width: 18px;
  height: 18px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.dr-sep {
  height: 1px;
  background: var(--line3);
  margin: 4px 0;
}
.drw-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line2);
  font-size: 10px;
  color: var(--txt4);
  font-family: var(--font);
  letter-spacing: 0.04em;
}
.drw-x {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.drw-x svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOTTOM SHEET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sh-ov {
  position: fixed;
  inset: 0;
  background: rgba(55, 54, 56, 0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(3px);
}
.sh-ov.on {
  opacity: 1;
  pointer-events: all;
}
.sh {
  background: var(--surf);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1.5px solid var(--line2);
}
.sh-ov.on .sh {
  transform: translateY(0);
}
.sh-handle {
  width: 36px;
  height: 4px;
  background: var(--line2);
  border-radius: 4px;
  margin: 0 auto 18px;
}
.sh-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-title::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--acc);
  border-radius: 2px;
  flex-shrink: 0;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOAST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tst {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: var(--txt);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  z-index: 500;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s;
  opacity: 0;
  pointer-events: none;
  letter-spacing: 0.01em;
  box-shadow: var(--sh3);
}
.tst.on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
[data-theme="dark"] .tst {
  background: var(--surf);
  color: var(--txt);
  border: 1px solid var(--line2);
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 380px) {
  .tbl-head {
    grid-template-columns: 22px 1fr 46px 48px 32px;
    gap: 4px;
  }
  .it-row,
  .add-row {
    grid-template-columns: 22px 1fr 46px 48px 32px;
    gap: 4px;
  }
  .c-sel,
  .c-inp,
  .c-unit {
    font-size: 12px;
  }
}
@media (min-width: 700px) {
  .it-wrap,
  .ob-card {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
  .fab {
    padding: 14px 32px;
    font-size: 15px;
  }
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       ADVANCED (COLUMNAR) MODE
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hidden {
  display: none !important;
}
/* mode segmented control */
.mode-seg {
  display: flex;
  gap: 4px;
  background: var(--surf2);
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 10px;
}
.mode-seg-btn {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: var(--txt3);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.mode-seg-btn.on {
  background: var(--acc);
  color: #fff;
  box-shadow: var(--sh1);
}
/* advanced table */
.adv-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.adv-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
}
.adv-tbl thead tr {
  background: var(--acc);
}
.adv-tbl th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 6px;
  white-space: nowrap;
  text-align: center;
}
.adv-tbl th.adv-name-h {
  text-align: right;
  min-width: 120px;
}
.adv-tbl td {
  border-bottom: 1px solid var(--line3);
  padding: 2px 4px;
  vertical-align: middle;
  text-align: center;
}
.adv-tbl tbody tr:last-child td {
  border-bottom: none;
}
.adv-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt4);
  font-family: var(--font);
  width: 30px;
}
.adv-name {
  text-align: right !important;
  min-width: 120px;
}
.adv-sel {
  min-width: 110px;
}
.adv-custom {
  margin-top: 4px;
}
.adv-qin {
  width: 46px;
  padding: 8px 2px;
  background: transparent;
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--line2);
  border-radius: 6px;
}
.adv-qin:focus {
  background: var(--acc-bg);
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}
.adv-sum {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 900;
  color: var(--acc);
  min-width: 44px;
}
.adv-unit {
  font-size: 11px;
  color: var(--txt3);
  white-space: nowrap;
}
.adv-del {
  width: 34px;
}
.adv-empty {
  padding: 20px !important;
  color: var(--txt4);
  font-size: 12px;
  font-style: italic;
}
/* editable floor header */
.adv-fh {
  min-width: 60px;
}
.adv-fh-in {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}
.adv-fh-inp {
  width: 56px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 4px;
  text-align: center;
}
.adv-fh-inp::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.adv-fh-inp:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.28);
}
.adv-col-x {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
/* add-column button in header */
.adv-addcol-h {
  width: 34px;
  padding: 4px 3px !important;
}
.adv-addcol-btn {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.adv-addcol-btn:active {
  background: rgba(255, 255, 255, 0.35);
}
.adv-addcol-td {
  width: 34px;
}
.adv-additem {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--line3);
  background: var(--surf2);
}
.adv-additem .add-sel {
  flex: 1;
}
/* export option box */
.exp-opt {
  margin-bottom: 14px;
}
.exp-opt-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--txt3);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
