.t2t-front-shell {
  --t2t-primary: #B41E8E;
  --t2t-primary-hover: #9f187d;
  --t2t-primary-active: #861267;
  --t2t-primary-soft: #fff3fb;
  --t2t-primary-soft-2: #fde7f6;
  --t2t-card: #fffafd;
  --t2t-text: #352a34;
  --t2t-muted: #7b6877;
  --t2t-line: #f1d7e9;
  --t2t-radius: 24px;
  direction: rtl;
  font-family: var(--e-global-typography-text-font-family, IranYekan), Tahoma, sans-serif;
  color: var(--t2t-text);
  box-sizing: border-box;
}

.t2t-front-shell *,
.t2t-front-shell *::before,
.t2t-front-shell *::after {
  box-sizing: border-box;
  font-family: inherit;
}

.t2t-front-shell [hidden] {
  display: none !important;
}

.t2t-card {
  background: var(--t2t-card);
  border-radius: var(--t2t-radius);
  /*box-shadow: 0 18px 45px rgba(180, 30, 142, .08);*/
  border: 1px solid rgba(180, 30, 142, .08);
}

.t2t-list-card {
  padding: 26px 28px;
  min-height: 520px;
  overflow: hidden;
}

.t2t-card-toolbar {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.t2t-card-toolbar h2 {
  text-align: center;
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--t2t-text);
}

.t2t-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--t2t-text);
  display: grid;
  justify-content: center;
  place-items: center;
  cursor: pointer;
  border-radius: 14px;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.t2t-icon-btn:hover {
  background: var(--t2t-primary-soft);
  color: var(--t2t-primary);
  border-color: rgba(180, 30, 142, .18);
}

.t2t-icon-btn:active {
  background: var(--t2t-primary-soft-2);
  color: var(--t2t-primary-active);
  transform: translateY(1px);
}

.t2t-icon-btn:focus-visible {
  border-color: var(--t2t-primary);
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .14);
}

.t2t-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t2t-toolbar-new,
.t2t-front-btn-primary {
  border: 1px solid var(--t2t-primary);
  background: var(--t2t-primary);
  color: #fff;
  //box-shadow: 0 14px 26px rgba(180, 30, 142, .22);
}

.t2t-toolbar-new {
  justify-self: end;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.t2t-toolbar-new:hover,
.t2t-front-btn-primary:hover {
  background: var(--t2t-primary-hover);
  border-color: var(--t2t-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.t2t-toolbar-new:active,
.t2t-front-btn-primary:active {
  background: var(--t2t-primary-active);
  border-color: var(--t2t-primary-active);
  transform: translateY(1px);
}

.t2t-toolbar-new:focus-visible,
.t2t-front-btn-primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .18), 0 14px 26px rgba(180, 30, 142, .22);
}

.t2t-ticket-search {
  margin: 0 auto 26px;
  max-width: 560px;
  animation: t2tFade .18s ease;
}

.t2t-ticket-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--t2t-line);
  border-radius: 16px;
  background: #fff;
  color: var(--t2t-text);
  padding: 0 18px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.t2t-ticket-search input:hover {
  border-color: rgba(180, 30, 142, .28);
  background: #fffbfd;
}

.t2t-ticket-search input:focus {
  border-color: var(--t2t-primary);
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .12);
}

.t2t-status-tabs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.t2t-status-tabs button {
  border: 1px solid transparent;
  background: transparent;
  position: relative;
  cursor: pointer;
  color: var(--t2t-text);
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 148px;
  min-width: 116px;
  padding: 10px 8px;
  border-radius: 18px;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.t2t-status-tabs button:hover {
  background: #fff;
  border-color: #b41e8e;
  color: var(--t2t-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #FFD7F5;
}

.t2t-status-tabs button:active {
  background: #fff;
  border-color: #b41e8e;
  color: var(--t2t-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #FFD7F5;
}

.t2t-status-tabs button:focus-visible {
  border-color: var(--t2t-primary);
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .14);
}

.t2t-status-tabs button.is-active {
  background: #fff;
  border-color: #b41e8e;
  color: var(--t2t-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #FFD7F5;
}

.t2t-status-icon,
.t2t-dept-icon {
  width: 62px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--t2t-primary);
}

.t2t-status-icon svg,
.t2t-status-icon img,
.t2t-dept-icon svg,
.t2t-dept-icon img,
.t2t-view-link svg,
.t2t-view-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.t2t-status-icon svg,
.t2t-dept-icon svg,
.t2t-view-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t2t-status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: rtl;
}

.t2t-status-label b {
  font-size: 15px;
  font-weight: 900;
  color: inherit;
}

.t2t-status-label em {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fde7f6;
  color: var(--t2t-primary);
  font-style: normal;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.t2t-ticket-list-wrap {
  min-height: 250px;
  position: relative;
  transition: opacity .25s ease, filter .25s ease;
}

.t2t-ticket-list-wrap.is-loading {
  opacity: .55;
  filter: blur(.5px);
  pointer-events: none;
}

.t2t-ticket-head,
.t2t-ticket-row {
  display: grid;
  grid-template-columns: 1.6fr .7fr .7fr .7fr;
  align-items: center;
  gap: 18px;
}

.t2t-ticket-head {
  padding: 14px 18px;
  color: var(--t2t-muted);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid var(--t2t-line);
}

.t2t-ticket-row {
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--t2t-line);
  transition: background .18s ease, box-shadow .18s ease;
}


.t2t-ticket-title strong {
  font-size: 15px;
  color: var(--t2t-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t2t-ticket-title small {
  color: var(--t2t-muted);
  font-size: 10px;
  margin-top: 2px;
}

.t2t-ticket-number-wrap {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.t2t-ticket-number {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 6px;
  color: #6f5368;
  font-size: 14px;
  direction: ltr;
  text-align: right;
  cursor: pointer;
  border-radius: 8px;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.t2t-ticket-number:hover {
  color: var(--t2t-primary);
  background: var(--t2t-primary-soft);
}

.t2t-ticket-number:active {
  color: var(--t2t-primary-active);
  background: var(--t2t-primary-soft-2);
}

.t2t-ticket-number:focus-visible {
  border-color: var(--t2t-primary);
  box-shadow: 0 0 0 3px rgba(180, 30, 142, .14);
}

.t2t-copy-feedback {
  font-size: 11px;
  color: var(--t2t-primary);
  font-weight: 900;
}

.t2t-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 900;
  font-size: 12px;
  background: #fff3fb;
  color: var(--t2t-primary);
  border: 1px dashed rgba(180, 30, 142, .14);
}

.t2t-status-pill.status-pending { background: #fff7fc; color: #8f176f; }
.t2t-status-pill.status-answered { background: #f7e2f0; color: #861267; }
.t2t-status-pill.status-closed { background: #f4eef2; color: #6f5368; }

.t2t-view-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--t2t-primary);
  border-radius: 10px;
  background: #fff !important;
  color: var(--t2t-primary);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.t2t-view-link svg,
.t2t-view-link img {
  width: 16px;
  height: 16px;
}

.t2t-view-link:hover {
  background: var(--t2t-primary);
  border-color: var(--t2t-primary);
  color: #fff;
  transform: translateY(-1px);
}

.t2t-view-link:active {
  background: var(--t2t-primary-active);
  border-color: var(--t2t-primary-active);
  transform: translateY(1px);
}

.t2t-view-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .14);
}

.t2t-empty-state {
  text-align: center;
  padding: 70px 20px 40px;
  display: grid;
  justify-items: center;
}

.t2t-empty-icon {
  width: 96px;
  height: 96px;
  color: var(--t2t-primary);
  margin-bottom: 16px;
}

.t2t-empty-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t2t-empty-state h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  color: var(--t2t-primary);
}

.t2t-empty-state p {
  margin: 0 0 26px;
  color: var(--t2t-muted);
  font-size: 14px;
}

.t2t-front-btn {
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.t2t-front-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.t2t-front-btn-soft {
  border: 1px solid var(--t2t-primary) !important;
  background: #fff !important;
  color: var(--t2t-primary) !important;
  box-shadow: none !important;
}

.t2t-front-btn-soft:hover {
  background: var(--t2t-primary-soft) !important;
  color: var(--t2t-primary-hover) !important;
}

.t2t-front-btn-soft:active {
  background: var(--t2t-primary-soft-2) !important;
  color: var(--t2t-primary-active) !important;
}

.t2t-front-btn-soft:focus-visible {
  box-shadow: 0 0 0 4px rgba(180, 30, 142, .14) !important;
}

.t2t-center-view {
  display: none;
}

.t2t-center-view.is-active {
  display: block;
  animation: t2tFade .22s ease;
}

.t2t-front-alert,
.t2t-front-notice {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
}

.t2t-front-alert,
.t2t-front-notice.is-error {
  background: #fff1f8;
  color: #a31771;
  border: 1px solid #f4c8e4;
}

.t2t-front-notice.is-success {
  background: #fff3fb;
  color: var(--t2t-primary);
  border: 1px solid rgba(180, 30, 142, .2);
}

.t2t-front-notice.is-info {
  background: #fff7fc;
  color: #8f176f;
  border: 1px solid rgba(180, 30, 142, .16);
}

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

.t2t-ticket-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.t2t-ticket-title strong,
.t2t-ticket-title small {
  display: block;
}

@media (max-width: 767px) {
  .t2t-list-card { padding: 20px 14px; border-radius: 20px; }
  .t2t-card-toolbar { grid-template-columns: 42px 1fr 42px; }
  .t2t-toolbar-new { width: 42px; height: 42px; border-radius: 14px; padding: 0; font-size: 0; justify-content: center; }
  .t2t-toolbar-new span { font-size: 20px; }
  .t2t-status-tabs { gap: 14px; justify-content: space-between; }
  .t2t-status-tabs button { min-width: 70px; }
  .t2t-status-label { gap: 5px; }
  .t2t-status-label b { font-size: 12px; }
  .t2t-status-label em { min-width: 22px; height: 22px; font-size: 11px; }
  .t2t-ticket-head { display: none; }
  .t2t-ticket-row { grid-template-columns: 1fr; gap: 10px; background: rgba(255, 243, 251, .7); border-radius: 16px; margin-bottom: 12px; }
  .t2t-ticket-number-wrap { justify-items: start; }
  .t2t-card-toolbar h2 { font-size: 18px; }
}
