/* === Dana Font Force - Round 3 === */

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../font/dana/Dana-FaNum-UltraBold.ttf') format('truetype');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}


:root {
  --ui-bg: #faf9f6;
  --ui-surface: #fff;
  --ui-surface-soft: #fdfcf9;
  --ui-gold: #d19a00;
  --ui-gold-hover: #b98400;
  --ui-gold-dark: #8d6600;
  --ui-gold-soft: #fff8e7;
  --ui-gold-border: #e4c36a;
  --ui-text: #242424;
  --ui-text-secondary: #767676;
  --ui-text-muted: #999;
  --ui-border: #e9e5dc;
  --ui-success: #51963f;
  --ui-success-bg: #f0f8ec;
  --ui-warning: #bd8214;
  --ui-warning-bg: #fff6e2;
  --ui-danger: #c84b4b;
  --ui-danger-bg: #fff0f0;
  --ui-info: #4c78b8;
  --ui-info-bg: #eff5ff;
  --ui-neutral-bg: #f3f3f3;
  --ui-shadow: 0 4px 16px rgba(52, 39, 8, .05);
  --ui-shadow-lg: 0 18px 55px rgba(52, 39, 8, .12);
  --sidebar-width: 260px;
  --topbar-height: 76px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
  font-family: 'Dana';
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: "Dana", "Dana FaNum", "dana", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ui-text);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(209, 154, 0, .25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-left: 1px solid var(--ui-border);
  background: var(--ui-surface);
}

.brand {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ui-border);
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #e0ad1c, #b57c00);
  box-shadow: 0 7px 18px rgba(209, 154, 0, .2);
  color: #fff;
}

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

.brand > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.45;
}

.brand strong {
  font-size: 18px;
  font-weight: 700;
}

.brand small {
  color: var(--ui-text-muted);
  font-size: 11px;
}

.sidebar__close {
  display: none !important;
  margin-right: auto;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
}

.nav-section-label {
  display: block;
  padding: 0 10px 8px;
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #595959;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border var(--transition);
}

.nav-item:hover {
  background: #f8f7f3;
  color: var(--ui-text);
}

.nav-item.is-active {
  border-color: rgba(209, 154, 0, .3);
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-item__badge {
  min-width: 22px;
  margin-right: auto;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--ui-danger);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.sidebar__footer {
  padding: 13px 14px 16px;
  border-top: 1px solid var(--ui-border);
  background: #fff;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px 13px;
}

.mini-profile__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.55;
}

.mini-profile__meta strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-profile__meta small {
  color: var(--ui-text-muted);
  font-size: 11px;
}

.avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e9e7e1;
  box-shadow: 0 0 0 1px var(--ui-border);
  color: #5d5b56;
  font-size: 13px;
  font-weight: 700;
}

.avatar--gold,
.header-profile .avatar {
  background: #f6e8bd;
  color: var(--ui-gold-dark);
}

.avatar--green {
  background: #e0efdb;
  color: var(--ui-success);
}

.avatar--blue {
  background: #e1ecfb;
  color: var(--ui-info);
}

.avatar--rose {
  background: #f6e2e2;
  color: #a95151;
}

.logout-btn {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #efd1d1;
  border-radius: 10px;
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
  transition: var(--transition);
}

.logout-btn:hover {
  border-color: #e2aaaa;
  background: #ffe7e7;
}

.logout-btn svg {
  width: 18px;
}

.workspace {
  min-height: 100vh;
  margin-right: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

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

.topbar__title h1 {
  margin-bottom: 1px;
  font-size: 21px;
  line-height: 1.4;
}

.topbar__title p {
  margin: 0;
  color: var(--ui-text-secondary);
  font-size: 12px;
}

.topbar__menu {
  display: none !important;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fff;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: var(--ui-gold-border);
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: var(--ui-danger);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
}

.header-profile {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}

.header-profile__text {
  display: flex;
  min-width: 98px;
  flex-direction: column;
  text-align: right;
}

.header-profile__text strong {
  font-size: 12px;
}

.header-profile__text small {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.header-profile > svg {
  width: 15px;
}

.role-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
}

body[data-standalone="true"] .role-switcher {
  display: none;
}

.role-switcher__label {
  color: var(--ui-text-muted);
  font-size: 11px;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  min-width: 98px;
  height: 40px;
  padding: 0 13px 0 34px;
  appearance: none;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ui-text);
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.popover {
  position: absolute;
  z-index: 80;
  top: calc(100% - 6px);
  left: 86px;
  width: min(390px, calc(100vw - 30px));
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
}

.popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-border);
}

.text-btn {
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--ui-gold-dark);
  font-size: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #f1efe9;
}

.notification-item:last-child {
  border: 0;
}

.notification-item--new {
  background: #fffaf0;
}

.notification-item__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.notification-item__icon svg {
  width: 17px;
}

.notification-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.notification-item strong {
  font-size: 12px;
}

.notification-item small,
.notification-item time {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.main-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.section-gap {
  margin-top: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card,
.card {
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.stat-card {
  position: relative;
  display: grid;
  min-height: 128px;
  grid-template-columns: 1fr 50px;
  gap: 13px;
  align-items: start;
  padding: 19px;
  overflow: hidden;
}

.stat-card::after {
  position: absolute;
  right: -25px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(209, 154, 0, .035);
  content: "";
}

.stat-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ui-text-secondary);
  font-size: 12px;
}

.stat-card__value {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.stat-card__trend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--ui-success);
  font-size: 10px;
}

.stat-card__trend svg {
  width: 13px;
  height: 13px;
}

.stat-card__trend.is-neutral {
  color: var(--ui-text-muted);
}

.stat-card__trend.is-warning {
  color: var(--ui-warning);
}

.stat-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.stat-card__icon.is-green {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}

.stat-card__icon.is-blue {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}

.stat-card__icon.is-rose {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr);
  gap: 20px;
}

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

.content-aside-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr);
  gap: 20px;
}

.card__header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--ui-border);
}

.card__header h2,
.card__header h3 {
  margin: 0;
  font-size: 15px;
}

.card__header p {
  margin: 2px 0 0;
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.card__body {
  padding: 20px;
}

.card__body--flush {
  padding: 0;
}

.card__footer {
  padding: 13px 20px;
  border-top: 1px solid var(--ui-border);
}

.link-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-gold-dark);
  font-size: 11px;
}

.link-btn:hover {
  background: var(--ui-gold-soft);
}

.link-btn svg {
  width: 14px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  border-color: var(--ui-gold-border);
  color: var(--ui-gold-dark);
}

.btn svg {
  width: 17px;
}

.btn--primary {
  border-color: var(--ui-gold);
  background: var(--ui-gold);
  color: #fff;
}

.btn--primary:hover {
  border-color: var(--ui-gold-hover);
  background: var(--ui-gold-hover);
  color: #fff;
}

.btn--soft {
  border-color: #ead79f;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.btn--danger-soft {
  border-color: #f0cdcd;
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}

.btn--success-soft {
  border-color: #c9e0c1;
  background: var(--ui-success-bg);
  color: var(--ui-success);
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar .field {
  min-width: 160px;
  flex: 0 1 210px;
}

.search-box {
  position: relative;
  min-width: 230px;
  flex: 1;
}

.search-box svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 18px;
  color: var(--ui-text-muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 12px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
}

.search-box input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ui-gold);
  box-shadow: 0 0 0 3px rgba(209, 154, 0, .1);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ui-text);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field small {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.field.is-invalid input {
  border-color: var(--ui-danger);
}

.field.is-invalid small {
  color: var(--ui-danger);
}

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

.form-grid .field--wide {
  grid-column: 1 / -1;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: #f8f7f3;
}

.tab-btn {
  min-height: 35px;
  padding: 6px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-text-secondary);
  font-size: 12px;
}

.tab-btn.is-active {
  background: #fff;
  box-shadow: 0 2px 9px rgba(28, 23, 10, .07);
  color: var(--ui-gold-dark);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 30px;
  background: var(--ui-neutral-bg);
  color: #666;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge--success {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}

.badge--warning {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}

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

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

.badge--gold {
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.data-table th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--ui-border);
  background: #fbfaf7;
  color: var(--ui-text-secondary);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #f0eee9;
  font-size: 12px;
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: #fffdf8;
}

.person-cell {
  display: flex;
  min-width: 160px;
  align-items: center;
  gap: 9px;
}

.person-cell .avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 11px;
}

.person-cell > span:last-child {
  display: flex;
  flex-direction: column;
}

.person-cell strong {
  font-size: 12px;
}

.person-cell small {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.ltr {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.chart {
  position: relative;
  min-height: 260px;
}

.line-chart {
  display: flex;
  height: 255px;
  flex-direction: column;
}

.line-chart__legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--ui-text-muted);
  font-size: 10px;
}

.line-chart__legend::before {
  width: 18px;
  height: 3px;
  border-radius: 4px;
  background: var(--ui-gold);
  content: "";
}

.line-chart svg {
  width: 100%;
  height: 205px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #ece9e1;
  stroke-width: 1;
}

.chart-area {
  fill: url("#chartGradient");
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--ui-gold);
  stroke-width: 3;
}

.chart-dot {
  fill: #fff;
  stroke: var(--ui-gold);
  stroke-width: 2.5;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--ui-text-muted);
  font-size: 10px;
  text-align: center;
}

.donut-wrap {
  display: grid;
  min-height: 250px;
  place-items: center;
}

.donut {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(var(--ui-gold) 0 48%, var(--ui-success) 48% 76%, #e9e6df 76% 100%);
}

.donut::after {
  position: absolute;
  inset: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ui-text);
  content: "۱۲۸";
  font-size: 23px;
  font-weight: 700;
}

.donut::before {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 42px;
  color: var(--ui-text-muted);
  content: "گفتگو";
  font-size: 9px;
  transform: translateX(50%);
}

.legend-list {
  display: grid;
  width: 100%;
  gap: 9px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.legend-item::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--legend-color, var(--ui-gold));
  content: "";
}

.legend-item strong {
  margin-right: auto;
  color: var(--ui-text);
}

.appointment-list,
.activity-list,
.request-list {
  display: grid;
  gap: 10px;
}

.appointment-item,
.activity-item,
.request-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #eeeae2;
  border-radius: 12px;
  background: var(--ui-surface-soft);
}

.appointment-item__time {
  display: grid;
  width: 110px;
  min-height: 55px;
  place-items: center;
  border-radius: 11px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
  font-size: 12px;
  font-weight: 700;
}

.appointment-item__meta,
.activity-item__meta,
.request-item__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.appointment-item__meta strong,
.activity-item__meta strong,
.request-item__meta strong {
  font-size: 12px;
}

.appointment-item__meta small,
.activity-item__meta small,
.request-item__meta small {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.activity-item {
  border: 0;
  border-bottom: 1px solid #f0eee9;
  border-radius: 0;
  background: transparent;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.activity-item__icon svg {
  width: 17px;
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid #ead79f;
  border-radius: 18px;
  background: linear-gradient(115deg, #fffdf8 10%, #fff5d9 100%);
  box-shadow: var(--ui-shadow);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(209, 154, 0, .07);
  content: "";
}

.hero-card::before {
  top: -75px;
  left: -30px;
  width: 190px;
  height: 190px;
}

.hero-card::after {
  right: 44%;
  bottom: -65px;
  width: 130px;
  height: 130px;
}

.hero-card__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-card__content h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.hero-card__content p {
  max-width: 100%;
  margin-bottom: 17px;
  color: var(--ui-text-secondary);
}

.hero-card__art {
  position: relative;
  z-index: 2;
  display: grid;
  width: 150px;
  height: 130px;
  flex: 0 0 150px;
  place-items: center;
}

.hero-card__art span {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(143, 101, 0, .14);
  color: var(--ui-gold);
  transform: rotate(-7deg);
}

.hero-card__art svg {
  width: 48px;
  height: 48px;
  transform: rotate(7deg);
}

.progress {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 30px;
  background: #eceae4;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ui-gold);
}

.active-consultation {
  padding: 20px;
}

.active-consultation__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.active-consultation__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.active-consultation__meta small {
  color: var(--ui-text-muted);
}

.timer {
  display: inline-flex;
  min-height: 37px;
  direction: ltr;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ecd695;
  border-radius: 10px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
  font-weight: 700;
}

.timer svg {
  width: 16px;
}

.active-consultation__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0 17px;
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}

.plan-card:hover {
  border-color: var(--ui-gold-border);
  box-shadow: 0 13px 30px rgba(52, 39, 8, .08);
  transform: translateY(-3px);
}

.plan-card.is-featured {
  border-color: var(--ui-gold-border);
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.plan-card__popular {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
  font-size: 9px;
  font-weight: 600;
}

.plan-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 12px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.plan-card h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.plan-card__duration {
  color: var(--ui-text-muted);
  font-size: 11px;
}

.plan-card__price {
  margin: 15px 0;
  font-size: 24px;
  font-weight: 700;
}

.plan-card__price small {
  color: var(--ui-text-muted);
  font-size: 10px;
  font-weight: 400;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.feature-list svg {
  width: 15px;
  color: var(--ui-success);
}

.plan-card .btn {
  margin-top: auto;
}

.chat-layout {
  display: grid;
  height: calc(100vh - var(--topbar-height) - 49px);
  min-height: 620px;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}

.chat-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--ui-border);
}

.chat-list__head {
  padding: 15px;
  border-bottom: 1px solid var(--ui-border);
}

.chat-list__head h2 {
  margin-bottom: 11px;
  font-size: 15px;
}

.chat-list__items {
  overflow-y: auto;
}

.conversation {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #f0eee9;
  background: #fff;
  text-align: right;
}

.conversation:hover {
  background: #fbfaf7;
}

.conversation.is-active {
  background: var(--ui-gold-soft);
}

.conversation__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.conversation__meta strong,
.conversation__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation__meta strong {
  font-size: 12px;
}

.conversation__meta small {
  color: var(--ui-text-muted);
  font-size: 10px;
}

.conversation__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--ui-text-muted);
  font-size: 9px;
}

.unread {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 20px;
  background: var(--ui-gold);
  color: #fff;
}

.chat-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fbfaf8;
}

.chat-panel__head {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ui-border);
  background: #fff;
}

.chat-panel__person {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.chat-panel__person strong {
  font-size: 13px;
}

.chat-panel__person small {
  color: var(--ui-success);
  font-size: 10px;
}

.chat-back {
  display: none;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 22px;
  background-image: radial-gradient(rgba(209, 154, 0, .045) 1px, transparent 1px);
  background-size: 17px 17px;
}

.date-divider {
  align-self: center;
  padding: 4px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .85);
  color: var(--ui-text-muted);
  font-size: 9px;
}

.message {
  max-width: min(72%, 590px);
  padding: 8px 11px 5px;
  border: 1px solid var(--ui-border);
  border-radius: 13px 4px 13px 13px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(52, 39, 8, .04);
}

.message.is-mine {
  align-self: flex-start;
  border-color: #ead79f;
  border-radius: 5px;
  background: #fff8e7;
}

.message__reply {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-right: 3px solid var(--ui-gold);
  border-radius: 6px;
  background: rgba(209, 154, 0, .07);
  color: var(--ui-text-secondary);
  font-size: 10px;
}

.message p {
  margin-bottom: 3px;
  font-size: 12px;
}

.message__meta {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--ui-text-muted);
  font-size: 8px;
}

.message__meta svg {
  width: 13px;
  color: var(--ui-info);
}

.voice-message {
  display: flex;
  min-width: 220px;
  direction: ltr;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
}

.voice-message button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ui-gold);
  color: #fff;
}

.voice-wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
}

.voice-wave i {
  display: block;
  width: 2px;
  height: var(--wave-height, 12px);
  border-radius: 3px;
  background: #d5bd74;
}

.chat-composer {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 8px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ui-border);
  background: #fff;
}

.chat-composer input {
  min-width: 0;
  height: 44px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  outline: none;
  background: #fbfaf7;
}

.chat-composer input:focus {
  border-color: var(--ui-gold);
}

.chat-send {
  border-color: var(--ui-gold);
  background: var(--ui-gold);
  color: #fff;
}

.chat-send:hover {
  background: var(--ui-gold-hover);
  color: #fff;
}

.mobile-card-list {
  display: none;
}

.weekly-schedule {
  display: grid;
  grid-template-columns: 76px repeat(5, minmax(120px, 1fr));
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
}

.schedule-cell {
  min-height: 60px;
  padding: 9px;
  border-left: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  background: #fff;
  font-size: 10px;
}

.schedule-cell:nth-child(6n) {
  border-left: 0;
}

.schedule-cell.is-head {
  min-height: 44px;
  background: #fbfaf7;
  color: var(--ui-text-secondary);
  font-weight: 600;
  text-align: center;
}

.schedule-cell.is-time {
  background: #fbfaf7;
  color: var(--ui-text-muted);
  text-align: center;
}

.slot {
  display: block;
  padding: 5px;
  border-radius: 7px;
  background: var(--ui-success-bg);
  color: var(--ui-success);
}

.slot.is-booked {
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.slot.is-disabled {
  background: var(--ui-neutral-bg);
  color: var(--ui-text-muted);
}

.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-pill {
  display: flex;
  min-width: 65px;
  min-height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: #fff;
  color: var(--ui-text-secondary);
}

.day-pill strong {
  font-size: 16px;
}

.day-pill small {
  font-size: 9px;
}

.day-pill.is-active {
  border-color: var(--ui-gold);
  background: var(--ui-gold);
  color: #fff;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.time-slot {
  min-height: 46px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
}

.time-slot:hover:not(:disabled),
.time-slot.is-selected {
  border-color: var(--ui-gold);
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.time-slot:disabled {
  cursor: not-allowed;
  background: #f3f2ef;
  color: #aaa;
  text-decoration: line-through;
}

.wallet-balance {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(120deg, #9b7000, #d19a00);
  box-shadow: 0 15px 32px rgba(143, 101, 0, .18);
  color: #fff;
}

.wallet-balance small {
  color: rgba(255, 255, 255, .78);
}

.wallet-balance strong {
  display: block;
  margin: 4px 0;
  font-size: 27px;
}

.wallet-balance .btn {
  border-color: rgba(255, 255, 255, .4);
  background: #fff;
  color: var(--ui-gold-dark);
}

.availability-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  border: 1px solid #cfe1c8;
  border-radius: 13px;
  background: var(--ui-success-bg);
}

.availability-switch > span:first-child {
  display: flex;
  flex-direction: column;
}

.availability-switch strong {
  color: #3f7e31;
}

.availability-switch small {
  color: #6f8b67;
  font-size: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #c8c8c8;
  transition: var(--transition);
}

.switch span::before {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  content: "";
  transition: var(--transition);
}

.switch input:checked + span {
  background: var(--ui-success);
}

.switch input:checked + span::before {
  transform: translateX(-20px);
}

.performance-bars {
  display: flex;
  height: 220px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 25px;
  border-bottom: 1px solid var(--ui-border);
}

.performance-bar {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--ui-text-muted);
  font-size: 9px;
}

.performance-bar i {
  width: min(28px, 65%);
  height: var(--bar-height, 50%);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #e2b839, var(--ui-gold));
}

.empty-state {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.empty-state__inner {
  max-width: 360px;
}

.empty-state__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 19px;
  background: var(--ui-gold-soft);
  color: var(--ui-gold-dark);
}

.empty-state__icon svg {
  width: 29px;
  height: 29px;
}

.empty-state h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.empty-state p {
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ui-border);
}

.profile-head .avatar {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 22px;
}

.profile-head h2 {
  margin-bottom: 1px;
  font-size: 20px;
}

.profile-head p {
  margin-bottom: 8px;
  color: var(--ui-text-secondary);
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 22, 14, .44);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--ui-border);
}

.modal__header h2 {
  margin-bottom: 1px;
  font-size: 17px;
}

.modal__header p {
  margin: 0;
  color: var(--ui-text-secondary);
  font-size: 11px;
}

.modal__body {
  padding: 20px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 20px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--ui-border);
  background: #fbfaf7;
}

.toast-stack {
  position: fixed;
  z-index: 140;
  bottom: 20px;
  left: 20px;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 9px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #cae0c2;
  border-radius: 11px;
  background: var(--ui-success-bg);
  box-shadow: var(--ui-shadow-lg);
  color: #3e7c31;
  animation: toast-in .25s ease both;
}

.toast svg {
  width: 18px;
}

.toast span {
  flex: 1;
  font-size: 11px;
}

.page-loading {
  display: grid;
  gap: 20px;
}

.skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, #efede8 25%, #f7f6f2 40%, #efede8 65%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton--title {
  width: 180px;
  height: 30px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skeleton--card {
  height: 128px;
}

.drawer-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(25, 22, 14, .42);
  backdrop-filter: blur(2px);
}

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

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
  :root {
    --sidebar-width: 230px;
  }

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

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

  .dashboard-grid,
  .content-aside-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-layout {
    grid-template-columns: 285px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: min(290px, 86vw);
    box-shadow: var(--ui-shadow-lg);
    transform: translateX(105%);
    transition: transform var(--transition);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar__close,
  .topbar__menu {
    display: inline-grid !important;
  }

  .workspace {
    margin-right: 0;
  }

  .main-content {
    padding: 20px 18px 34px;
  }

  .topbar {
    padding: 10px 18px;
  }

  .role-switcher__label,
  .header-profile__text,
  .header-profile > svg {
    display: none;
  }

  .header-profile {
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
  }

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

  .chat-layout {
    height: calc(100dvh - var(--topbar-height) - 38px);
  }
}

@media (max-width: 700px) {
  :root {
    --topbar-height: 68px;
  }

  .topbar {
    min-height: var(--topbar-height);
    padding: 8px 14px;
  }

  .topbar__title {
    gap: 8px;
  }

  .topbar__title h1 {
    font-size: 16px;
  }

  .topbar__title p {
    display: none;
  }

  .topbar__actions {
    gap: 5px;
  }

  .topbar .icon-btn,
  .header-profile .avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .role-switcher {
    display: none;
  }

  .popover {
    top: calc(100% - 2px);
    left: 10px;
  }

  .main-content {
    padding: 16px 14px 28px;
  }

  .stats-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card {
    min-height: 118px;
    grid-template-columns: 1fr 40px;
    gap: 7px;
    padding: 14px;
  }

  .stat-card__icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }

  .stat-card__icon svg {
    width: 18px;
  }

  .stat-card__value {
    font-size: 15px;
  }

  .stat-card__trend {
    font-size: 9px;
  }

  .section-gap {
    margin-top: 15px;
  }

  .card__header {
    min-height: 59px;
    padding: 13px 15px;
  }

  .card__body {
    padding: 15px;
  }

  .hero-card {
    min-height: 230px;
    align-items: flex-start;
    padding: 20px;
  }

  .hero-card__content h2 {
    font-size: 19px;
  }

  .hero-card__art {
    position: absolute;
    left: -5px;
    bottom: -8px;
    width: 115px;
    height: 110px;
    opacity: .65;
  }

  .hero-card__art span {
    width: 72px;
    height: 72px;
  }

  .hero-card__art svg {
    width: 36px;
    height: 36px;
  }

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

  .plan-card {
    min-height: auto;
  }

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

  .form-grid .field--wide {
    grid-column: auto;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar .field,
  .search-box {
    min-width: 100%;
    flex-basis: 100%;
  }

  .desktop-table {
    display: none;
  }

  .mobile-card-list {
    display: grid;
    gap: 10px;
    padding: 13px;
  }

  .mobile-data-card {
    padding: 13px;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: #fff;
  }

  .mobile-data-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-data-card__row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
    color: var(--ui-text-secondary);
    font-size: 10px;
  }

  .mobile-data-card__row strong {
    color: var(--ui-text);
    font-weight: 500;
  }

  .weekly-schedule {
    display: none;
  }

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

  .wallet-balance {
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .chat-layout {
    display: block;
    height: calc(100dvh - var(--topbar-height) - 28px);
    min-height: 530px;
  }

  .chat-list {
    height: 100%;
    border: 0;
  }

  .chat-panel {
    display: none;
    height: 100%;
  }

  .chat-layout.is-chat-open .chat-list {
    display: none;
  }

  .chat-layout.is-chat-open .chat-panel {
    display: flex;
  }

  .chat-back {
    display: inline-grid;
  }

  .chat-panel__head {
    min-height: 64px;
    padding: 8px 10px;
  }

  .chat-panel__head .timer {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .chat-panel__head > .icon-btn:last-child {
    display: none;
  }

  .chat-messages {
    padding: 14px 11px;
  }

  .message {
    max-width: 86%;
  }

  .chat-composer {
    min-height: 65px;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
  }

  .chat-composer .icon-btn:first-child {
    display: none;
  }

  .voice-message {
    min-width: 190px;
  }

  .performance-bars {
    height: 190px;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal__panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }

  .toast-stack {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-card {
    min-height: 106px;
  }

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

  .tabs {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding-inline: 8px;
  }

  .header-profile {
    display: none;
  }
}

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


/* === Simorgh PHP integration additions for exact Moshaverino pages === */
body.app-body{background:var(--ui-bg)!important;color:var(--ui-text)!important;font-family:"dana",Tahoma,Arial,sans-serif!important;}
.avatar{overflow:hidden}.avatar img,img.avatar{width:42px;height:42px;object-fit:cover;border-radius:inherit;padding:0}.header-profile .avatar,.mini-profile .avatar{flex:0 0 38px}.header-profile img.avatar,.mini-profile img.avatar{width:38px;height:38px}
.nav-item span:not(.nav-item__badge){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-item__badge{display:inline-grid;place-items:center;font-size:11px;font-weight:700;line-height:20px}
.main-content > .app-toast-seed{display:none}.btn svg,.icon-btn svg,.link-btn svg{flex:0 0 auto}.btn--block{width:100%}.dir-ltr,.ltr,[dir="ltr"]{direction:ltr;unicode-bidi:plaintext}.desktop-table .data-table td,.desktop-table .data-table th{vertical-align:middle}.table-wrap{overflow:visible}.card__body--flush .table-wrap{border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.mosh-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mobile-data-card .mosh-actions{margin-top:12px}.empty-state{min-height:220px;display:grid;place-items:center;text-align:center;color:var(--ui-text-secondary)}.empty-state__icon svg{width:42px;height:42px;color:var(--ui-gold)}
.app-shell .badge.text-bg-success,.app-shell .badge.bg-success{background:var(--ui-success-bg)!important;color:var(--ui-success)!important}.app-shell .badge.text-bg-warning,.app-shell .badge.bg-warning{background:var(--ui-warning-bg)!important;color:var(--ui-warning)!important}.app-shell .badge.text-bg-danger,.app-shell .badge.bg-danger{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important}.app-shell .badge.text-bg-secondary,.app-shell .badge.bg-secondary{background:var(--ui-neutral-bg)!important;color:var(--ui-text-secondary)!important}
.form-card-clean{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--radius-lg);box-shadow:var(--ui-shadow);padding:20px}.form-card-clean .row{row-gap:14px}.form-card-clean label{font-weight:600}.form-card-clean .form-control,.form-card-clean .form-select,.card .form-control,.card .form-select{border-radius:var(--radius-md);border-color:var(--ui-border);min-height:42px}.form-card-clean .form-control:focus,.form-card-clean .form-select:focus,.card .form-control:focus,.card .form-select:focus{border-color:var(--ui-gold-border);box-shadow:0 0 0 3px rgba(209,154,0,.12)}
.chat-form-hidden{display:none!important}.chat-layout .chat-composer input[type=file]{display:none}.chat-list__items a.conversation{text-align:right}.conversation__side{margin-right:auto}.message.system{align-self:center;background:var(--ui-neutral-bg);color:var(--ui-text-secondary);max-width:min(80%,520px);text-align:center}.message .file-link{color:var(--ui-gold-dark);font-weight:700}.message__meta svg{width:15px;height:15px}.chat-page-full .chat-layout{height:calc(100dvh - var(--topbar-height) - 48px)}
#typingIndicator{height:28px;text-align:center;color:var(--ui-text-secondary);font-size:12px;font-weight:600}.d-none{display:none!important}.page-inline-form{margin-bottom:20px}.admin-system-link{margin-inline-start:auto}.admin-sms-settings-card pre{direction:ltr;text-align:left;white-space:pre-wrap}.wallet-balance .btn{flex:0 0 auto}.request-item form{display:inline}.request-item .button-row form{display:inline-flex}.action-form-inline{display:inline-flex;margin:0}.slot.is-disabled{background:var(--ui-danger-bg);color:var(--ui-danger);border-color:rgba(200,75,75,.25)}.slot.is-booked{background:var(--ui-warning-bg);color:var(--ui-warning);border-color:rgba(189,130,20,.25)}.time-slot[disabled]{opacity:.45;cursor:not-allowed}.profile-head img.avatar{width:80px;height:80px}.profile-upload-card{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--ui-border);border-radius:var(--radius-lg);background:var(--ui-surface-soft)}.profile-upload-card .avatar{width:78px;height:78px;flex:0 0 78px}
@media(max-width:768px){.page-inline-form{padding:16px}.filter-bar{align-items:stretch}.filter-bar .field,.filter-bar .search-box,.filter-bar .btn{width:100%}.chat-page-full .chat-layout{height:calc(100dvh - 90px)}.profile-upload-card{align-items:flex-start}.admin-system-link{margin-inline-start:0;width:100%}}
/* Chat exact template fix */
.chat-layout svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-list__items a.conversation{text-decoration:none;color:inherit}.chat-composer .emoji-panel button{font-family:inherit}.chat-composer input[type=file]{display:none}.message .voice-player{width:260px;max-width:100%}.chat-room-notices{padding:10px 14px;background:#fff;border-bottom:1px solid var(--ui-border)}

/* === Chat compact review/continue fix 2026-07-27 === */
.chat-layout{
  min-height:0;
  overflow:hidden;
}
.chat-panel{
  min-height:0;
  overflow:hidden;
}
.chat-messages,
#chatbox{
  min-height:0;
}
.chat-room-notices{
  flex:0 0 auto;
}
#endedChoicePanel.ended-choice-panel,
#continuePanel.continue-panel{
  flex:0 0 auto;
  margin:8px 12px 12px;
  padding:10px;
  border:1px solid var(--ui-border);
  border-radius:16px;
  background:var(--ui-surface);
  box-shadow:0 8px 24px rgba(52,39,8,.06);
  max-height:210px;
  overflow:auto;
}
#endedChoicePanel .end-choice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
#endedChoicePanel .end-choice-head h5,
#continuePanel h5{
  margin:0;
  font-size:13px;
  font-weight:800;
}
#endedChoicePanel .end-choice-head p,
#continuePanel p{
  display:none;
}
#endedChoicePanel .mini-badge,
#continuePanel .mini-badge{
  margin:0!important;
  padding:4px 8px;
  font-size:10px;
}
#endedChoicePanel .end-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
#endedChoicePanel .end-choice-card{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:start;
  gap:8px;
  padding:9px;
  border:1px solid var(--ui-border);
  border-radius:14px;
  background:var(--ui-surface-soft);
  min-height:auto;
}
#endedChoicePanel .choice-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--ui-gold-soft);
  font-size:15px;
}
#endedChoicePanel .end-choice-card h6{
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
}
#endedChoicePanel .end-choice-card p{
  margin:0;
  font-size:11px;
  line-height:1.6;
  color:var(--ui-text-secondary);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
#endedChoicePanel .end-choice-card .btn,
#endedChoicePanel .review-form-box .btn,
#continuePanel .btn{
  min-height:32px;
  padding:5px 10px;
  font-size:11px;
  border-radius:10px;
}
#endedChoicePanel .continue-choice-card .btn{
  grid-column:1 / -1;
  width:100%;
  margin-top:2px;
}
#endedChoicePanel .review-form-box{
  grid-column:1 / -1;
  display:grid;
  gap:6px;
  margin-top:4px;
}
#endedChoicePanel .review-stars{
  display:flex;
  justify-content:center;
  gap:3px;
}
#endedChoicePanel .star-btn{
  width:24px;
  height:24px;
  border:0;
  background:transparent;
  color:var(--ui-gold);
  font-size:17px;
  line-height:1;
  padding:0;
}
#endedChoicePanel .review-rating-hint{
  font-size:10px;
  text-align:center;
  color:var(--ui-text-secondary);
}
#endedChoicePanel textarea{
  min-height:44px!important;
  max-height:62px!important;
  font-size:11px;
  padding:7px 9px;
}
#continuePanel > .d-flex{
  margin-bottom:8px!important;
}
#continuePanel #continuePlans{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px!important;
}
#continuePanel #continuePlans > [class*="col-"]{
  width:auto;
  max-width:none;
  padding:0;
}
#continuePanel .continue-plan-card{
  padding:9px;
  border:1px solid var(--ui-border);
  border-radius:14px;
  background:var(--ui-surface-soft);
}
#continuePanel .plan-icon,
#continuePanel .continue-minutes{
  display:none;
}
#continuePanel h6{
  font-size:12px;
  margin-bottom:4px!important;
}
#continuePanel .plan-price{
  font-size:12px;
  font-weight:800;
  margin-top:0!important;
}
#continuePanel .d-grid{
  gap:5px!important;
  margin-top:6px!important;
}
@media(max-width:768px){
  #endedChoicePanel.ended-choice-panel,
  #continuePanel.continue-panel{
    max-height:42dvh;
    margin:6px 8px 8px;
    padding:8px;
  }
  #endedChoicePanel .end-choice-grid,
  #continuePanel #continuePlans{
    grid-template-columns:1fr;
  }
  #endedChoicePanel .end-choice-card{
    grid-template-columns:28px minmax(0,1fr);
  }
}

/* === Bugfix: Dana font, chat bubbles, modal end flow, inperson UI === */




body,button,input,select,textarea{font-family:"Dana",Tahoma,Arial,sans-serif!important}
.chat-messages,#chatbox{direction:ltr;align-items:stretch}.message{direction:rtl;display:flex;align-items:flex-end;gap:8px;width:max-content;max-width:min(78%,660px);padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.message:not(.is-mine){align-self:flex-start;flex-direction:row}.message.is-mine{align-self:flex-end!important;flex-direction:row-reverse}.message.system{align-self:center!important;display:block;width:auto;padding:7px 12px!important;/* border:1px solid var(--ui-border)!important; *//* background:var(--ui-neutral-bg)!important; */}.message__bubble{padding:9px 12px 6px;border:1px solid var(--ui-border);border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 3px 12px rgba(52,39,8,.05)}.message.is-mine .message__bubble{border-color:#ead79f;border-radius:16px 16px 5px 16px;background:#fff8e7}.msg-avatar{width:32px!important;height:32px!important;min-width:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:var(--ui-gold-soft);color:var(--ui-gold-dark);border:1px solid var(--ui-gold-border);overflow:hidden}.msg-avatar img{width:100%;height:100%;object-fit:cover}.message__meta{direction:ltr}.chat-live-state{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;padding:5px 10px;border-radius:999px;background:var(--ui-gold-soft);border:1px solid rgba(228,195,106,.6);color:var(--ui-gold-dark);font-size:11px;font-weight:800;white-space:nowrap}.chat-live-state .dot{width:7px;height:7px;border-radius:50%;background:var(--ui-gold)}.chat-live-state.online{background:var(--ui-success-bg);color:var(--ui-success);border-color:rgba(81,150,63,.25)}.chat-live-state.online .dot{background:var(--ui-success)}.chat-live-state.offline{background:var(--ui-neutral-bg);color:var(--ui-text-secondary)}.chat-live-state.connecting .dot{animation:chatPulse 1s ease-in-out infinite}@keyframes chatPulse{50%{opacity:.35;transform:scale(.75)}}
#endedChoicePanel.ended-choice-panel:not(.d-none),#continuePanel.continue-panel:not(.d-none){position:fixed;inset:0;z-index:6000;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;background:rgba(36,36,36,.34);backdrop-filter:blur(8px);max-height:none!important;margin:0!important;overflow:auto!important;border:0!important;box-shadow:none!important}#endedChoicePanel .end-choice-head,#endedChoicePanel .end-choice-grid,#continuePanel .continue-modal-head,#continuePanel #continuePlans{width:min(620px,100%);background:#fff;border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-lg)}#endedChoicePanel .end-choice-head,#continuePanel .continue-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:18px 18px 0 0}#endedChoicePanel .end-choice-grid,#continuePanel #continuePlans{margin-top:-10px;padding:14px;border-radius:0 0 18px 18px;display:grid;grid-template-columns:1fr 1fr;gap:12px!important}#endedChoicePanel.review-only .continue-choice-card{display:none!important}#endedChoicePanel.review-only .review-choice-card{grid-column:1/-1}.end-choice-actions{display:flex;align-items:center;gap:8px}.end-choice-actions .icon-btn{width:34px;height:34px;min-width:34px;border:1px solid var(--ui-border);border-radius:12px;background:#fff;color:var(--ui-text-secondary);font-size:18px}.end-choice-card{min-height:auto!important}.review-form-box textarea{min-height:72px!important;max-height:110px!important}#continuePanel #continuePlans>[class*="col-"]{width:auto;max-width:none;padding:0}.continue-plan-card{height:100%;padding:14px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface-soft)}
.appointment-shell{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}.appointment-summary{grid-column:1;grid-row:1;position:sticky;top:calc(var(--topbar-height) + 18px);padding:18px}.appointment-main{grid-column:2;grid-row:1;min-width:0}.appointment-filter{margin-bottom:14px}.appointment-card{padding:18px}.ajax-time-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}.ajax-time-slots.is-loading{opacity:.55;pointer-events:none}.time-slot{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:54px}.time-slot small{font-size:10px;color:var(--ui-text-muted)}.time-slot.is-free{background:#fff;color:var(--ui-text);border-color:var(--ui-border)}.time-slot.is-selected{background:var(--ui-gold)!important;color:#fff!important;border-color:var(--ui-gold)!important}.time-slot.is-selected small{color:#fff}.summary-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--ui-border)}.summary-line span{color:var(--ui-text-secondary)}.summary-alert{margin:14px 0;padding:10px 12px;border-radius:12px;background:var(--ui-gold-soft);color:var(--ui-gold-dark);font-size:12px}.schedule-scroll{overflow:auto;max-height:68vh;border:1px solid var(--ui-border);border-radius:16px}.real-weekly-schedule{display:grid;grid-template-columns:72px repeat(var(--day-count),minmax(118px,1fr));min-width:980px}.real-weekly-schedule .schedule-cell{min-height:58px;padding:8px;border-bottom:1px solid var(--ui-border);border-inline-end:1px solid var(--ui-border);background:#fff}.real-weekly-schedule .schedule-cell.is-head{position:sticky;top:0;z-index:2;background:var(--ui-surface-soft);font-weight:800}.real-weekly-schedule .schedule-cell.is-head small{display:block;color:var(--ui-text-muted);font-size:10px}.real-weekly-schedule .slot{display:flex;flex-direction:column;gap:2px;align-items:flex-start;padding:7px 8px;border-radius:12px;border:1px solid var(--ui-border);font-size:11px}.real-weekly-schedule .slot small{font-size:10px;color:inherit;opacity:.8}.real-weekly-schedule .slot.is-free{background:var(--ui-success-bg);color:var(--ui-success);border-color:rgba(81,150,63,.25)}.real-weekly-schedule .slot.is-booked{background:var(--ui-warning-bg);color:var(--ui-warning);border-color:rgba(189,130,20,.25)}.real-weekly-schedule .slot.is-disabled{background:var(--ui-danger-bg);color:var(--ui-danger);border-color:rgba(200,75,75,.25)}
@media(max-width:900px){.appointment-shell{grid-template-columns:1fr}.appointment-summary,.appointment-main{grid-column:auto;grid-row:auto;position:static}.chat-live-state{order:9;width:100%;justify-content:center;margin:4px 0 0}.message{max-width:92%}#endedChoicePanel .end-choice-grid,#continuePanel #continuePlans{grid-template-columns:1fr}}

/* === Moshaverino bugfix round 2: force Dana globally === */




html,body,body.app-body,body.public-body,.app-shell,.workspace,.sidebar,.topbar,.card,.modal,.chat-layout,.chat-panel,.chat-list,.auth-page,.auth-shell,.auth-card,
button,input,select,textarea,.btn,.badge,.data-table,.table,.form-control,.form-select{font-family:"Dana",Tahoma,Arial,sans-serif!important}

/* Chat round 2: no message avatars, closed composer notice, cleaner modals */
.chat-messages,#chatbox{direction:ltr;display:flex;flex-direction:column;gap:10px;align-items:stretch}
.message{direction:rtl;display:flex!important;gap:0!important;width:max-content;max-width:min(78%,660px);padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.message:not(.is-mine){align-self:flex-start!important;flex-direction:row!important}
.message.is-mine{align-self:flex-end!important;flex-direction:row!important}
.message .msg-avatar{display:none!important}
.message__bubble{padding: 8px;border:1px solid var(--ui-border);border-radius: 5px;background:#fff;box-shadow:0 3px 12px rgba(52,39,8,.05)}
.message.is-mine .message__bubble{border-color:#ead79f;border-radius: 5px;background:#fff8e7}
.message.system{width: 100% !important;align-self:center!important;display:block!important;width:auto;max-width: 100% !important;padding: 2px 0px!important;/* border:1px solid var(--ui-border)!important; *//* background:var(--ui-neutral-bg)!important; */color:var(--ui-text-secondary)!important;text-align:center!important}
.chat-closed-composer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 14px;background:#fff;border-top:1px solid var(--ui-border);box-shadow:0 -8px 24px rgba(52,39,8,.045);position:relative;z-index:20}
.chat-closed-composer.d-none{display:none!important}
.chat-closed-composer__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.chat-closed-composer__text strong{font-size:13px;color:var(--ui-danger);font-weight:800}
.chat-closed-composer__text span{font-size:12px;color:var(--ui-text-secondary);line-height:1.7}
.chat-closed-composer__actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.chat-closed-composer .btn{min-height:36px;padding:0 12px;font-size:12px}
#endedChoicePanel.ended-choice-panel:not(.d-none),#continuePanel.continue-panel:not(.d-none){position:fixed;inset:0;z-index:7000;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;background:rgba(36,36,36,.34);backdrop-filter:blur(8px);max-height:none!important;margin:0!important;overflow:auto!important;border:0!important;box-shadow:none!important}
#endedChoicePanel .end-choice-head,#endedChoicePanel .end-choice-grid,#continuePanel .continue-modal-head,#continuePanel #continuePlans{width:min(620px,100%);background:#fff;border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-lg,0 22px 70px rgba(52,39,8,.14))}
#endedChoicePanel .end-choice-head,#continuePanel .continue-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:18px 18px 0 0}
#endedChoicePanel .end-choice-grid,#continuePanel #continuePlans{margin-top:-10px;padding:14px;border-radius:0 0 18px 18px;display:grid;grid-template-columns:1fr;gap:12px!important}
#endedChoicePanel.review-only .continue-choice-card{display:none!important}.review-form-box textarea{min-height:72px!important;max-height:110px!important}
.jdp-container,.jalali-datepicker,.jdp-calendar{z-index:99999!important;font-family:"Dana",Tahoma,Arial,sans-serif!important}
.appointment-date-input{cursor:pointer;background:#fff!important}
.time-slots.is-loading{opacity:.55;pointer-events:none}
@media(max-width:900px){.chat-closed-composer{align-items:stretch;flex-direction:column}.chat-closed-composer__actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.message{max-width:92%;}}


/* === Round 3 Global Font + Chart.js Fixes === */
html, body, button, input, select, textarea, .app-shell, .sidebar, .topbar, .main-content,
.card, .btn, .badge, .tab-btn, .modal, .toast, .data-table, .mobile-data-card,
.jdp-container, .jdp-container *, .jalali-datepicker, .jalali-datepicker * {
  font-family: "Dana", "Dana FaNum", "dana", Tahoma, Arial, sans-serif !important;
}
.chartjs-card,
.chart-canvas-wrap {
  position: relative;
  width: 100%;
}
.chart-canvas-wrap {
  min-height: 285px;
  height: 285px;
}
.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.admin-dashboard-chart-grid .card__body {
  min-height: 320px;
}
@media (max-width: 768px) {
  .chart-canvas-wrap { height: 245px; min-height: 245px; }
}



/* === Round 4: booking success, chat media preview, admin notifications === */
.appointment-summary-stack{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:16px;position:sticky;top:calc(var(--topbar-height) + 18px)}
.appointment-summary-stack .appointment-summary{position:static;grid-column:auto;grid-row:auto}
.user-bookings-card{padding:16px}
.booking-history-list{display:flex;flex-direction:column;gap:10px;max-height:360px;overflow:auto;padding-inline-end:2px}
.booking-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface-soft)}
.booking-history-item time{display:flex;flex-direction:column;gap:2px;font-style:normal}.booking-history-item time strong{font-size:12px}.booking-history-item time small{font-size:11px;color:var(--ui-text-muted)}
.summary-alert.is-error{background:var(--ui-danger-bg);color:var(--ui-danger)}
.booking-success-modal{position:fixed;inset:0;z-index:90000;display:grid;place-items:center;padding:18px}.booking-success-backdrop{position:absolute;inset:0;background:rgba(35,31,22,.38);backdrop-filter:blur(8px)}.booking-success-panel{position:relative;width:min(440px,100%);padding:26px 22px 22px;border-radius:26px;background:#fff;border:1px solid var(--ui-border);box-shadow:var(--ui-shadow-lg,0 24px 80px rgba(52,39,8,.16));text-align:center}.booking-success-panel>.icon-btn{position:absolute;left:14px;top:14px}.success-mark{width:58px;height:58px;margin:0 auto 12px;border-radius:22px;display:grid;place-items:center;background:var(--ui-success-bg);color:var(--ui-success)}.success-mark svg{width:28px;height:28px}.booking-success-panel h3{font-size:18px;margin:0 0 8px;font-weight:900}.booking-success-panel p{margin:0 0 18px;color:var(--ui-text-secondary);font-size:13px;line-height:1.9}
.chat-start-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(228,195,106,.55);background:linear-gradient(135deg,#fffaf0,#fff);border-radius:16px}.chat-start-confirm strong{display:block;font-size:13px;color:var(--ui-text);font-weight:900}.chat-start-confirm span{display:block;font-size:12px;color:var(--ui-text-secondary);line-height:1.7}.chat-start-confirm .btn{white-space:nowrap}
.chat-file-preview{position:absolute;left:14px;right:14px;bottom:calc(100% + 8px);z-index:8;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--ui-border);border-radius:16px;background:#fff;box-shadow:var(--ui-shadow)}.chat-file-preview.d-none{display:none!important}.chat-file-preview__thumb{width:56px;height:56px;min-width:56px;border-radius:14px;display:grid;place-items:center;background:var(--ui-surface-soft);border:1px solid var(--ui-border);overflow:hidden}.chat-file-preview__thumb img{width:100%;height:100%;object-fit:cover}.chat-file-preview__thumb span{font-size:22px}.chat-file-preview__meta{min-width:0;display:flex;flex-direction:column;gap:2px}.chat-file-preview__meta strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.chat-file-preview__meta small{font-size:11px;color:var(--ui-text-muted)}
.chat-image-link{display:block;max-width:min(310px,72vw);border-radius:16px;overflow:hidden;border:1px solid var(--ui-border);background:#fff}.chat-image-link img{display:block;width:100%;max-height:320px;object-fit:cover}.message.is-mine .chat-image-link{border-color:#ead79f}.chat-lightbox{position:fixed;inset:0;z-index:90001;display:grid;place-items:center;padding:22px;background:rgba(18,15,10,.78);backdrop-filter:blur(8px)}.chat-lightbox.d-none{display:none!important}.chat-lightbox img{max-width:min(96vw,1100px);max-height:88dvh;border-radius:18px;box-shadow:0 26px 90px rgba(0,0,0,.34);background:#fff}.chat-lightbox__close{position:fixed;left:22px;top:22px;width:42px;height:42px;border-radius:16px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.16);color:#fff;font-size:26px;line-height:1}
.floating-chat-widget--compact .chat-fab-preview{display:none!important}.floating-chat-widget--compact{width:54px!important;min-width:54px!important;height:54px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:20px!important}.floating-chat-widget--compact .chat-fab-icon{font-size:0!important;display:grid;place-items:center}.floating-chat-widget--compact .chat-fab-icon svg{width:22px;height:22px}.floating-chat-widget--compact .chat-fab-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--ui-danger);color:#fff;font-size:10px;font-weight:900;border:2px solid #fff}
@media(max-width:900px){.appointment-summary-stack{position:static;grid-column:auto;grid-row:auto}.chat-start-confirm{align-items:stretch;flex-direction:column;}.chat-start-confirm .btn{width:100%}.chat-file-preview{left:8px;right:8px}.chat-image-link{max-width:82vw}}

/* === Moshaverino Round5: Mobile app viewport / no zoom === */
:root {
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-right: env(safe-area-inset-right, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-left: env(safe-area-inset-left, 0px);
}
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video, canvas { max-width: 100%; }
input, textarea, select, button { font-family: inherit; }
@media (max-width: 768px) {
  *, *::before, *::after { box-sizing: border-box; }
  body,
  .app-body,
  .auth-body,
  .auth-page,
  .app-shell,
  .app-layout,
  .app-main,
  .app-content,
  .workspace,
  .workspace-main,
  .workspace-content,
  .page-shell,
  .content-shell,
  .dashboard-shell,
  .chat-layout,
  .chat-panel,
  .chat-list,
  .auth-shell,
  .auth-card {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  input,
  textarea,
  select,
  .form-control,
  .form-select,
  .otp-input,
  .auth-input,
  .chat-input,
  .message-input {
    font-size: 16px !important;
  }
  .app-shell,
  .app-layout,
  .workspace,
  .auth-shell {
    min-height: 100dvh;
  }
  .app-topbar,
  .mobile-topbar,
  .auth-header,
  .chat-header {
    padding-top: max(var(--app-safe-top), 0px);
  }
  .chat-composer,
  .mobile-bottom-bar,
  .fixed-bottom,
  .auth-footer {
    padding-bottom: max(var(--app-safe-bottom), 0px);
  }
  table, .table, .table-responsive {
    max-width: 100%;
  }
  .modal,
  .modal-dialog,
  .offcanvas,
  .dropdown-menu {
    max-width: 100vw;
  }
}

/* === Moshaverino Round9: chat desktop/mobile, clickable badges, charts === */
body[data-page="chat"] .main-content,
body[data-page="chat_php"] .main-content{
  overflow:hidden!important;
}
.chat-panel{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;}
.chat-list{min-height:0!important;}
.chat-messages,#chatbox{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;}
.chat-composer,#messageForm{flex:0 0 auto!important;position:relative!important;z-index:40!important;bottom:auto!important;margin-top:auto!important;background:#fff!important;border-top:1px solid var(--ui-border)!important;box-shadow:0 -8px 22px rgba(52,39,8,.045)!important;}
.chat-live-state{display:none!important;}
.notification-item[data-chat-notification-item],.notification-popover a.notification-item{cursor:pointer;text-decoration:none!important;color:inherit!important;}
.nav-item__badge{margin-inline-start:auto;min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center;border-radius:999px;background:var(--ui-danger,#c84b4b);color:#fff;font-size:10px;font-weight:900;line-height:1;}
.nav-item__badge.d-none{display:none!important}
.chart-canvas-wrap{position:relative!important;min-height:300px!important;height:300px!important;width:100%!important;}
.chart-canvas-wrap canvas{display:block!important;width:100%!important;height:100%!important;max-height:300px!important;}
.chart-fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:var(--ui-text-secondary);font-size:13px;padding:16px;}
.chart-fallback.d-none{display:none!important}
@media (min-width:769px){.chat-layout{height:calc(100dvh - var(--topbar-height) - 24px)!important;min-height:0!important;max-height:calc(100dvh - var(--topbar-height) - 24px)!important;overflow:hidden!important;}.chat-panel__head{flex:0 0 auto!important;}.chat-room-notices{flex:0 0 auto!important;max-height:96px;overflow:auto;}}
@media (max-width:768px){.chat-layout{height:calc(100dvh - 72px)!important;min-height:0!important;max-height:calc(100dvh - 72px)!important;overflow:hidden!important;}.chat-panel__head{display:flex!important;grid-template-columns:36px 38px minmax(0,1fr) auto 36px!important;align-items:center!important;gap:7px!important;min-height:58px!important;padding:8px 9px!important;}.chat-panel__head .chat-back{grid-column:1!important;display:grid!important}.chat-panel__head .avatar{grid-column:2!important;width:38px!important;height:38px!important;min-width:38px!important}.chat-panel__person{grid-column:3!important;min-width:0!important;overflow:hidden!important}.chat-panel__person strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:13px!important}.chat-panel__person small{display:none!important}.chat-panel__head .timer{grid-column:4!important;margin:0!important;min-width:72px!important;height:34px!important;justify-content:center!important;padding:0 8px!important;font-size:12px!important;white-space:nowrap!important}.chat-panel__head .timer svg{width:16px!important;height:16px!important}.chat-panel__head .chat-end{grid-column:5!important;width:34px!important;height:34px!important}.chat-panel__head [data-action="chat-info"]{display:none!important}.chat-room-notices{max-height: 100%;overflow:auto;padding:6px 8px!important}.chat-composer,#messageForm{padding-bottom:max(env(safe-area-inset-bottom,0px),8px)!important}.chart-canvas-wrap{height:250px!important;min-height:250px!important}}

/* === Simorgh Edalat Round10: visible dashboard charts === */
.chart-canvas-wrap,
.chart-canvas-wrap--line,
.chart-canvas-wrap--donut{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-height:320px!important;
  height:320px!important;
  overflow:visible!important;
  direction:ltr!important;
}
.chart-canvas-wrap canvas{
  display:block!important;
  width:100%!important;
  height:320px!important;
  min-height:320px!important;
  opacity:1!important;
  visibility:visible!important;
}
.card:has(.chart-canvas-wrap),
.ui-card:has(.chart-canvas-wrap){
  overflow:visible!important;
}
.chart-legend-list{direction:rtl!important;margin-top:10px!important}
@media(max-width:768px){
  .chart-canvas-wrap,.chart-canvas-wrap canvas{height:280px!important;min-height:280px!important}
  .appointment-item, .activity-item, .request-item {
  display: grid;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #eeeae2;
  border-radius: 12px;
  background: var(--ui-surface-soft);
}
}

/* === Simorgh Round11 Dana definitive local font fix === */


html,body,button,input,select,textarea,.app-shell,.auth-shell,.auth-card,.chat-layout,.data-table,.btn{
  font-family:'Dana','Dana FaNum','dana',Tahoma,Arial,sans-serif!important;
}
.chart-canvas-wrap,.chart-canvas-wrap--line,.chart-canvas-wrap--donut{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-height:320px!important;
  height:320px!important;
  overflow:visible!important;
  direction:ltr!important;
}
.chart-canvas-wrap canvas{
  display:block!important;
  width:100%!important;
  height:320px!important;
  min-height:320px!important;
  opacity:1!important;
  visibility:visible!important;
}
.card:has(.chart-canvas-wrap),.ui-card:has(.chart-canvas-wrap){overflow:visible!important;}
.chart-fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#8a7b63;background:rgba(255,255,255,.72);border-radius:22px;z-index:2;}
.chart-fallback.d-none{display:none!important;}
@media(max-width:768px){.chart-canvas-wrap,.chart-canvas-wrap canvas{height:280px!important;min-height:280px!important}}

/* === Simorgh Round12 Font Sanitizer Fix ===
   Dana font files currently served from /assets/font/dana are rejected by browser sanitizers.
   This override prevents slow failed font downloads and keeps a clean Persian system stack.
   To use Dana again, replace the font files with valid webfont files, then add @font-face back. */
:root{
  --simorgh-font-ui: dana, "dana", "Segoe UI", Arial, sans-serif;
}
html, body,
button, input, textarea, select, option,
.app-shell, .app-layout, .app-sidebar, .workspace, .main-content,
.auth-page, .auth-shell, .auth-card,
.card, .btn, .form-control, .form-select, .dropdown-menu,
table, th, td, .modal, .toast, .badge,
.chat-layout, .chat-panel, .message, .message-bubble{
  font-family: var(--simorgh-font-ui) !important;
}
/* Simorgh round13 default image avatar */
.default-avatar{
  overflow:hidden!important;
  background:#fff7e3!important;
  border:1px solid rgba(201,155,59,.20)!important;
}
.default-avatar img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
}


.btn-con {
  font-size: 13px;
}
/* === Simorgh Round15: chat UX, SweetAlert, plans copy, reviews === */
.swal2-container{z-index:99999!important;font-family:var(--simorgh-font-ui, Tahoma, Arial, sans-serif)!important;direction:rtl!important}
.simorgh-swal-popup{border-radius:28px!important;padding:28px!important;box-shadow:0 28px 90px rgba(52,39,8,.18)!important;border:1px solid rgba(201,155,59,.18)!important}
.simorgh-swal-popup .swal2-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--ui-text, #2f2b24) !important;
}
.simorgh-swal-popup .swal2-html-container{font-size:14px!important;line-height:2!important;color:var(--ui-text-secondary,#665d4f)!important;text-align:right!important}
.simorgh-swal-toast{border-radius:18px!important;box-shadow:0 16px 50px rgba(52,39,8,.13)!important;font-size:13px!important;font-weight:700!important}
.simorgh-swal-zoom-in{animation:simorghZoomIn .24s cubic-bezier(.2,.9,.2,1.08)!important}
.simorgh-swal-zoom-out{animation:simorghZoomOut .18s ease-in forwards!important}
@keyframes simorghZoomIn{from{opacity:0;transform:scale(.86) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes simorghZoomOut{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.88)}}
.swal-text-rtl{text-align:right;direction:rtl}.swal-phone-line{margin:14px 0 6px!important;padding:10px 12px;border-radius:14px;background:#fff8e8;border:1px solid rgba(201,155,59,.18)}.swal-small-link{display:inline-flex;margin-top:4px;font-size:12px;color:var(--ui-gold-dark,#9c741d)!important;text-decoration:none!important;font-weight:800}
.plans-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;padding:22px 24px;border-radius:28px;background:linear-gradient(135deg,#fff,#fff8ea);border:1px solid rgba(201,155,59,.17);box-shadow:0 18px 54px rgba(52,39,8,.055)}
.plans-hero h2{margin:8px 0 6px;font-size:26px;font-weight:950;color:var(--ui-text,#2f2b24)}.plans-hero p{margin:0;color:var(--ui-text-secondary,#706858)}.wallet-credit-card{padding:12px 16px;border-radius:18px;background:#fff;border:1px solid rgba(201,155,59,.18);box-shadow:0 10px 30px rgba(52,39,8,.045);white-space:nowrap}.wallet-credit-card b{color:var(--ui-gold-dark,#9c741d)}.plans-tabs{margin-bottom:16px}.plans-helper{border-radius:18px!important;border-color:rgba(201,155,59,.22)!important;background:#fff9ed!important;color:#6c5330!important}.plan-card__subtitle{margin:0 0 8px;color:var(--ui-text-secondary,#706858);font-weight:700}.plan-card .feature-list li{align-items:flex-start!important;line-height:1.9!important}.plan-card .btn svg{width:18px;height:18px}
body[data-page="chat"] .main-content{padding-bottom:0!important}.chat-layout{border-radius:26px!important}.chat-panel{height:100%!important}.chat-panel__head{position:sticky!important;top:0!important;z-index:30!important;background:#fff!important}.chat-messages{padding-bottom:18px!important}.chat-composer{position:sticky!important;bottom:0!important;border-radius:0 0 24px 24px!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important}.chat-composer input#message{min-height:44px!important}.chat-room-notices{flex:0 0 auto!important}.message__meta .edit-btn{border:0;background:transparent;color:var(--ui-gold-dark,#9c741d);font-size:11px;font-weight:800;padding:0 4px;cursor:pointer}.message__meta .edited-label{font-size:10px;color:var(--ui-text-muted,#998b74);font-weight:700}.message__meta{gap:7px!important;flex-wrap:wrap}.quick-replies{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;grid-column:1/-1;width:100%;padding:0 2px 5px;margin-top:-2px}.quick-replies::-webkit-scrollbar{display:none}.quick-replies button{border:1px solid rgba(201,155,59,.22);background:#fffaf0;color:#74582a;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap}.quick-replies button:hover{background:#f7e6bd}.voice-preview{box-shadow:0 14px 40px rgba(52,39,8,.12)!important}.icon-btn.recording{background:#c84b4b!important;color:#fff!important;animation:voicePulse 1s ease-in-out infinite}@keyframes voicePulse{50%{transform:scale(1.04);box-shadow:0 0 0 8px rgba(200,75,75,.14)}}
#typingIndicator{margin:8px auto 10px!important;width:fit-content;max-width:82%;padding:8px 14px!important;border-radius:999px!important;background:#fff7e8!important;border:1px solid rgba(201,155,59,.18)!important;color:#7b5b26!important;box-shadow:0 8px 24px rgba(52,39,8,.055)!important}.review-tag-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.review-tag-options.d-none{display:none!important}.review-tag-options label{cursor:pointer}.review-tag-options input{display:none}.review-tag-options span{display:inline-flex;padding:8px 11px;border-radius:999px;border:1px solid rgba(201,155,59,.18);background:#fff;color:#7b6c55;font-size:12px;font-weight:800}.review-tag-options input:checked + span{background:#fff2d2;border-color:#c99b3b;color:#7c5a14}.review-comment-label{display:block;margin:12px 0 7px;font-size:12px;font-weight:900;color:var(--ui-text,#2f2b24)}
@media(max-width:768px){.plans-hero{display:block;padding:18px}.wallet-credit-card{margin-top:14px;white-space:normal}.chat-layout{height:calc(100dvh - 68px)!important;border-radius:0!important}.chat-panel__head{border-radius:0!important}.chat-composer{border-radius:18px 18px 0 0!important}.quick-replies{padding-bottom:7px}.quick-replies button{font-size:10px;padding:7px 10px}.simorgh-swal-popup{width:calc(100vw - 26px)!important;padding:22px 18px!important;border-radius:24px!important}}


/* === Round 17: compact quick replies, booking modal, wallet copy === */
.chat-composer{display:grid!important;grid-template-columns:auto auto auto minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;}
.chat-composer .quick-reply-tools{position:relative!important;grid-column:auto!important;order:-1;display:inline-flex;align-items:center;z-index:55;}
.quick-reply-toggle{height:42px;border:1px solid rgba(201,155,59,.24);background:#fffaf0;color:#6f5428;border-radius:14px;padding:6px 10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;font-size:11px;font-weight:900;white-space:nowrap;box-shadow:0 8px 22px rgba(52,39,8,.04)}
.quick-reply-toggle small{font-size:9px;color:#9b875d;font-weight:700}.quick-reply-menu{position:absolute;right:0;bottom:calc(100% + 10px);width:min(390px,calc(100vw - 28px));max-height:360px;overflow:hidden;border:1px solid var(--ui-border);border-radius:18px;background:#fff;box-shadow:0 22px 60px rgba(52,39,8,.14);padding:10px;z-index:9999}.quick-reply-menu__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 10px;border-bottom:1px solid var(--ui-border);margin-bottom:8px}.quick-reply-menu__head strong{font-size:13px}.quick-reply-add{border:0;border-radius:999px;background:var(--ui-gold,#c99b3b);color:#fff;padding:7px 10px;font-size:11px;font-weight:900}.quick-replies-list{display:grid;gap:7px;max-height:285px;overflow:auto;padding-inline-end:2px}.quick-reply-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid rgba(201,155,59,.14);background:#fffdf8;border-radius:14px;padding:6px}.quick-reply-use{border:0;background:transparent;text-align:right;color:var(--ui-text,#2f2b24);font-size:12px;line-height:1.8;font-weight:750;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer}.quick-reply-actions{display:inline-flex;gap:5px}.quick-reply-actions button{border:0;border-radius:10px;padding:6px 8px;font-size:10px;font-weight:900;cursor:pointer}.quick-reply-edit{background:#f7edda;color:#805d1f}.quick-reply-delete{background:#fff0f0;color:#c84b4b}.quick-reply-empty{padding:14px;text-align:center;color:var(--ui-text-secondary);font-size:12px}.chat-composer .emoji-panel{z-index:10000!important}.chat-composer input#message{grid-column:auto!important;width:100%!important;min-width:0!important}.chat-composer .chat-file-preview,.chat-composer .reply-compose,.chat-composer .voice-preview{grid-column:1/-1!important;}
.booking-success-panel--rich{text-align:right!important}.booking-success-panel--rich .success-mark{margin-inline:auto!important}.booking-success-panel--rich h3{font-size:18px!important;line-height:1.8!important;text-align:center!important}.booking-success-intro{text-align:center!important;margin-bottom:12px!important}.booking-success-time{display:grid;gap:6px;text-align:center;border:1px solid rgba(33,150,83,.16);background:#f0fff7;border-radius:18px;padding:12px;margin:10px 0 14px;color:#166534}.booking-success-time strong{font-size:15px;font-weight:950}.booking-success-time b{font-size:18px;font-weight:950;direction:ltr}.booking-success-details{display:grid;gap:8px;margin:14px 0}.booking-success-details div{border:1px solid var(--ui-border);border-radius:14px;padding:10px 12px;background:#fffdf8}.booking-success-details span{display:block;font-size:11px;color:var(--ui-text-secondary);margin-bottom:5px}.booking-success-details b{font-size:13px;line-height:1.8;color:var(--ui-text)}.form-card-title{font-size:18px;font-weight:950;margin:0 0 14px;color:var(--ui-text)}.wallet-quick-amounts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.wallet-quick-amounts button{border:1px solid rgba(201,155,59,.24);background:#fffaf0;color:#6f5428;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}.wallet-quick-amounts button:hover{background:#f7e6bd}
@media(max-width:768px){.chat-composer{grid-template-columns:auto auto auto minmax(0,1fr) auto!important;gap:6px!important}.quick-reply-toggle{height:38px;border-radius:12px;padding-inline:8px}.quick-reply-toggle small{display:none}.quick-reply-menu{right:auto;left:0;width:calc(100vw - 24px);max-height:330px}.quick-reply-row{grid-template-columns:minmax(0,1fr);}.quick-reply-actions{justify-content:flex-end}.quick-reply-use{font-size:11.5px}.chat-composer input#message{font-size:16px!important}}


/* === Simorgh round18: chat composer, quick replies, wallet/profile polish === */
.floating-chat-widget,
.floating-chat-widget--compact,
.user-chat-widget,
.admin-chat-widget,
.advisor-chat-widget{
  display:none!important;
}
body[data-page="chat"] .chat-panel{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
body[data-page="chat"] .chat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}
body[data-page="chat"] .chat-composer,
body[data-page="chat"] #messageForm{
  display:grid!important;
  /*! grid-template-columns:auto auto auto auto minmax(180px,1fr) auto!important; */
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important;
  background:#fff!important;
  border-top:1px solid var(--ui-border)!important;
  box-shadow:0 -8px 22px rgba(52,39,8,.045)!important;
}
body[data-page="chat"] .chat-composer input#message{
  grid-column:auto!important;
  width:100%!important;
  min-width:180px!important;
  height:46px!important;
  border-radius:16px!important;
}
body[data-page="chat"] .chat-send{
  grid-column:auto!important;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  display:inline-grid!important;
  place-items:center!important;
}
body[data-page="chat"] .quick-reply-tools{
  position:relative!important;
  grid-column:auto!important;
  order:0!important;
  display:inline-grid!important;
  place-items:center!important;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  z-index:60!important;
}
body[data-page="chat"] .quick-reply-toggle.icon-btn{
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  padding:0!important;
  border-radius:15px!important;
  border:1px solid var(--ui-border)!important;
  background:#fff!important;
  color:var(--ui-gold-dark,#9c741d)!important;
  box-shadow:none!important;
  display:inline-grid!important;
  place-items:center!important;
}
body[data-page="chat"] .quick-reply-toggle.icon-btn svg,
body[data-page="chat"] .icon-btn svg{
  width:20px!important;
  height:20px!important;
}
body[data-page="chat"] .quick-reply-menu{
  position:absolute!important;
  right:0!important;
  bottom:calc(100% + 12px)!important;
  width:min(390px,calc(100vw - 28px))!important;
  max-height:360px!important;
  overflow:hidden!important;
  border:1px solid var(--ui-border)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(52,39,8,.14)!important;
  padding:10px!important;
  z-index:9999!important;
}
body[data-page="chat"] .chat-file-preview,
body[data-page="chat"] .reply-compose,
body[data-page="chat"] .voice-preview{
  grid-column:1/-1!important;
}
body[data-page="chat"] .emoji-panel{
  bottom:calc(100% + 12px)!important;
  left:14px!important;
  right:auto!important;
  width:min(300px,calc(100vw - 28px))!important;
  z-index:10000!important;
}
.verified-mobile-box{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.verified-mobile-box input{
  flex:1 1 auto!important;
  background:#f8faf7!important;
  color:var(--ui-text-secondary)!important;
}
@media(max-width:768px){
  body[data-page="chat"] .chat-composer,
  body[data-page="chat"] #messageForm{
    grid-template-columns:auto auto auto minmax(0,1fr) auto !important;
    gap:6px!important;
    padding-inline:10px!important;
  }
  body[data-page="chat"] .quick-reply-tools,
  body[data-page="chat"] .quick-reply-toggle.icon-btn,
  body[data-page="chat"] .chat-send{
    width:42px!important;min-width:42px!important;height:42px!important;border-radius:14px!important;
  }
  body[data-page="chat"] .chat-composer input#message{min-width:0!important;height:42px!important;font-size:12px !important;}
  body[data-page="chat"] .quick-reply-menu{right:auto!important;left:0!important;width:calc(100vw - 22px)!important;}
}


button.swal2-confirm.swal2-styled {
    border-color: var(--ui-gold);
    background: var(--ui-gold);
    color: #fff;
}

button.swal2-deny.swal2-styled {
    border-color: #ead79f;
    background: var(--ui-gold-soft);
    color: var(--ui-gold-dark);
    border: 1px solid;
}