:root {
  --mts-navy: #071521;
  --mts-navy-2: #0a2438;
  --mts-blue: #173e76;
  --mts-gold: #f4c243;
  --mts-gold-soft: #fff5d6;
  --mts-cyan: #5ff7f2;
  --mts-green: #18b965;
  --mts-red: #d94a4a;
  --mts-text: #17283d;
  --mts-muted: #66758b;
  --mts-border: #dfe6ef;
  --mts-surface: #ffffff;
  --mts-surface-soft: #f4f7fb;
  --mts-shadow-sm: 0 10px 28px rgba(15, 35, 59, .08);
  --mts-shadow-md: 0 18px 45px rgba(15, 35, 59, .14);
  --mts-radius: 18px;
}

/* Support desk UI system: compact controls, clear hierarchy, and responsive cards. */
.mts-support-content { position: relative; }
.mts-support-grid, .mts-support-list-panel { border: 1px solid rgba(20,55,88,.12); background: rgba(255,255,255,.96); }
.mts-support-field input, .mts-support-field select, .mts-support-field textarea { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.mts-support-field input:hover, .mts-support-field select:hover, .mts-support-field textarea:hover { border-color: #aebfd0; background: #fff; }
.mts-support-field input:focus, .mts-support-field select:focus, .mts-support-field textarea:focus { outline: 0; border-color: var(--mts-blue); box-shadow: 0 0 0 4px rgba(31,91,148,.12); background: #fff; }
.mts-support-uploader { position: relative; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.mts-support-uploader:hover, .mts-support-uploader.is-dragging { border-color: var(--mts-blue); background: linear-gradient(145deg,#f7fbff,#e6f0fa); transform: translateY(-1px); }
.mts-support-upload-meta { display: block; margin-top: 7px; color: var(--mts-muted); font-size: 10px; font-weight: 700; }
.mts-support-uploader.has-files .mts-support-upload-meta { color: var(--mts-blue); }
.mts-support-list-toolbar { flex-wrap: wrap; }
.mts-support-status-filter { min-height: 38px; padding: 7px 28px 7px 11px; border: 1px solid var(--mts-border); border-radius: 11px; color: var(--mts-text); background: #fff; font: inherit; font-size: 10px; font-weight: 800; }
.mts-support-status-filter:focus { outline: 0; border-color: var(--mts-blue); box-shadow: 0 0 0 4px rgba(31,91,148,.12); }
.mts-support-list tbody tr { transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.mts-support-list tbody tr:hover { background: #f5f9fd; box-shadow: inset 3px 0 0 var(--mts-gold); }
.mts-support-list .mts-support-subject { font-weight: 850; }
.mts-support-list .mts-support-subject:focus-visible, .mts-support-tabs a:focus-visible, .mts-support-button:focus-visible, .mts-support-operation-button:focus-visible { outline: 3px solid rgba(95,247,242,.55); outline-offset: 3px; }
.mts-support-detail-back { display: inline-flex; align-items: center; min-height: 34px; margin-inline-start: auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mts-support-detail-back:hover { color: #fff; background: rgba(255,255,255,.16); }
@media (max-width: 760px) {
  .mts-support-status-filter { width: 100%; }
  .mts-support-detail-back { margin-inline-start: 0; }
}

.mts-support-portal { width: min(1240px, calc(100% - 28px)); margin: 0 auto 42px; color: var(--mts-text); font-family: var(--mt-font, PeydaWeb, IRANSansX, Vazirmatn, Tahoma, sans-serif); line-height: 1.85; direction: rtl; }
.mts-support-portal #mts-support-app { min-height: 220px; contain: layout paint; }
.mts-support-portal #mts-support-app[aria-busy="true"] { min-height: 220px; }
.mts-support-portal *, .mts-support-portal *::before, .mts-support-portal *::after { box-sizing: border-box; }
.mts-support-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 214px; margin-inline: calc((100% - 100vw) / 2); padding: 42px max(28px, calc((100vw - 1184px) / 2)); overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 5%, rgba(244,194,67,.16), transparent 28%), linear-gradient(120deg, var(--mts-navy), var(--mts-blue)); }
.mts-support-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(90deg, transparent 49%, rgba(255,255,255,.18) 50%, transparent 51%), linear-gradient(0deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%); background-size: 92px 92px; }
.mts-support-hero-copy { max-width: 720px; }
.mts-support-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--mts-gold); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.mts-support-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 9px; background: var(--mts-gold); }
.mts-support-hero h1 { margin: 9px 0 4px; color: #fff; font-size: clamp(25px, 3vw, 38px); line-height: 1.35; font-weight: 900; }
.mts-support-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.mts-support-hero-icon { display: grid; place-items: center; width: 104px; height: 104px; flex: 0 0 104px; border: 1px solid rgba(244,194,67,.34); border-radius: 30px; color: var(--mts-gold); background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 35px rgba(0,0,0,.18); }
.mts-support-hero-icon svg { width: 58px; height: 58px; }
.mts-support-tabs { position: relative; z-index: 2; display: inline-flex; align-items: stretch; gap: 0; margin: -25px auto 30px; inset-inline-start: 50%; transform: translateX(-50%); overflow: hidden; border: 4px solid rgba(255,255,255,.9); border-radius: 999px; background: var(--mts-surface); box-shadow: var(--mts-shadow-md); }
.mts-support-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 174px; min-height: 52px; padding: 11px 26px; color: var(--mts-blue); text-decoration: none; font-size: 14px; font-weight: 900; transition: background .18s ease, color .18s ease; }
.mts-support-tabs a:hover { background: var(--mts-gold-soft); }
.mts-support-tabs a.is-active { color: #fff; background: linear-gradient(135deg, var(--mts-navy-2), var(--mts-blue)); }
.mts-support-content { width: min(980px, 100%); margin-inline: auto; }
.mts-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 auto; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(223,230,239,.9); border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #fbfdff 100%); box-shadow: var(--mts-shadow-sm); }
.mts-support-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mts-support-field.full { grid-column: 1 / -1; }
.mts-support-field > span { display: flex; align-items: center; gap: 5px; color: var(--mts-text); font-size: 14px; font-weight: 850; }
.mts-support-field > span .required, .mts-support-required { color: var(--mts-red); }
.mts-support-field input, .mts-support-field select, .mts-support-field textarea { width: 100%; border: 1px solid var(--mts-border); border-radius: var(--mts-radius); padding: 13px 16px; color: var(--mts-text); background: var(--mts-surface); font: inherit; line-height: 1.6; box-shadow: 0 2px 0 rgba(15,35,59,.015); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.mts-support-field input, .mts-support-field select { min-height: 52px; }
.mts-support-field input[type="file"] { padding: 9px 12px; color: var(--mts-muted); background: var(--mts-surface-soft); border-style: dashed; cursor: pointer; }
.mts-support-upload-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.mts-support-upload-card { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 10px; border: 1px solid var(--mts-border); border-radius: 10px; background: linear-gradient(135deg, #f8fbff, #eef4fb); color: var(--mts-navy); font-size: 12px; }
.mts-support-upload-card { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mts-support-upload-remove { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #bd3b4e; cursor: pointer; font: inherit; line-height: 20px; }
.mts-support-field select { appearance: none; padding-inline-end: 42px; background-image: linear-gradient(45deg, transparent 50%, var(--mts-blue) 50%), linear-gradient(135deg, var(--mts-blue) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .mts-support-field select { background-position: 20px 23px, 14px 23px; }
.mts-support-field textarea { min-height: 190px; resize: vertical; }
.mts-support-field input::placeholder, .mts-support-field textarea::placeholder { color: #8b98aa; }
.mts-support-field input:focus, .mts-support-field select:focus, .mts-support-field textarea:focus { outline: 0; border-color: var(--mts-cyan); box-shadow: 0 0 0 4px rgba(95,247,242,.16), var(--mts-shadow-sm); }
.mts-support-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; padding-top: 4px; }
.mts-support-grid > .mts-support-actions { margin-top: 4px; }
.mts-support-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 14px; padding: 11px 28px; color: #fff; background: linear-gradient(135deg, var(--mts-navy-2), var(--mts-blue)); font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; box-shadow: 0 12px 24px rgba(7,21,33,.18); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.mts-support-button:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(7,21,33,.24); filter: saturate(1.08); }
.mts-support-button:focus-visible, .mts-support-tabs a:focus-visible { outline: 3px solid var(--mts-gold); outline-offset: 3px; }
.mts-support-button.is-secondary { color: var(--mts-blue); border-color: var(--mts-border); background: var(--mts-surface); box-shadow: var(--mts-shadow-sm); }
.mts-support-list-wrap { overflow-x: auto; border-top: 1px solid var(--mts-border); border-bottom: 1px solid var(--mts-border); }
.mts-support-list { width: 100%; border-collapse: collapse; background: var(--mts-surface); }
.mts-support-list th, .mts-support-list td { padding: 15px 14px; text-align: right; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.mts-support-list th { color: var(--mts-muted); background: var(--mts-surface-soft); font-size: 12px; font-weight: 900; white-space: nowrap; }
.mts-support-list tbody tr { transition: background .18s ease; }
.mts-support-list tbody tr:hover { background: #fbfcfe; }
.mts-support-list a { color: var(--mts-blue); font-weight: 900; text-decoration: none; }
.mts-support-list a:hover { color: var(--mts-navy); text-decoration: underline; text-underline-offset: 3px; }
.mts-support-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; color: var(--mts-blue); background: #e9f2ff; font-size: 12px; font-weight: 800; }
.mts-support-status.is-closed { color:#64748b; background:#eef2f7; }
.mts-support-status.is-new { color:#1d4ed8; background:#e8f0ff; }
.mts-support-status.is-in_progress, .mts-support-status.is-waiting_support { color:#9a6700; background:#fff4d6; }
.mts-support-status.is-waiting_customer { color:#7c3aed; background:#f1eaff; }
.mts-support-status.is-resolved { color:#047857; background:#e4f8ef; }
.mts-support-priority { display:inline-flex; align-items:center; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:800; }
.mts-support-priority.is-low { color:#047857; background:#e6f7ef; }
.mts-support-priority.is-medium { color:#a16207; background:#fff5d8; }
.mts-support-priority.is-high { color:#c2410c; background:#ffeadf; }
.mts-support-priority.is-urgent { color:#b91c1c; background:#ffe4e6; }
.mts-support-operations { display:flex; align-items:center; gap:6px; }
.mts-support-operation-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; border:1px solid var(--mts-border); border-radius:10px; color:var(--mts-blue); background:#fff; text-decoration:none; cursor:pointer; font-size:16px; line-height:1; }
.mts-support-operation-button:hover, .mts-support-operation-button:focus-visible { color:#fff; background:var(--mts-blue); border-color:var(--mts-blue); }
.mts-support-operation-button:disabled { opacity:.55; cursor:wait; }
.mts-support-subject { display:inline-block; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.mts-support-detail-badges { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mts-support-attachment-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.mts-support-attachment { display:inline-flex; align-items:center; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:5px 9px; border:1px solid var(--mts-border); border-radius:8px; color:var(--mts-blue); background:#fff; font-size:11px; }
.mts-support-no-attachment { color:var(--mts-muted); }
.mts-support-auth { width: min(460px, calc(100% - 28px)); margin: 50px auto; padding: 32px; border: 1px solid var(--mts-border); border-radius: 24px; text-align: center; background: var(--mts-surface); box-shadow: var(--mts-shadow-md); }
.mts-support-auth h1 { margin: 0 0 8px; color: var(--mts-navy); font-size: 22px; }
.mts-support-auth p { margin: 0 0 20px; color: var(--mts-muted); }
.mts-support-error, .mts-support-success { margin: 16px 0; padding: 13px 16px; border-radius: 14px; font-weight: 750; }
.mts-support-error { color: #9f2d2d; border: 1px solid #f0bcbc; background: #fff3f3; }
.mts-support-success { color: #126a3d; border: 1px solid #a9e5c5; background: #effbf4; }
.mts-support-loading, .mts-support-empty { display: grid; place-items: center; min-height: 180px; padding: 28px; color: var(--mts-muted); text-align: center; }
.mts-support-loading::before { content: ""; width: 28px; height: 28px; margin-bottom: 12px; border: 3px solid #dce5f0; border-top-color: var(--mts-gold); border-radius: 50%; animation: mts-spin .75s linear infinite; }
.mts-support-loading { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .mts-support-list thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .mts-support-list, .mts-support-list tbody, .mts-support-list tr, .mts-support-list td { display:block; width:100%; }
  .mts-support-list tr { margin:0 0 12px; padding:10px 12px; border:1px solid var(--mts-border); border-radius:14px; background:#fff; }
  .mts-support-list td { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:0; text-align:left; }
  .mts-support-list td::before { content:attr(data-label); color:var(--mts-muted); font-size:11px; font-weight:800; }
  .mts-support-subject { max-width:180px; }
}

/* Modern upload zone and equal attachment cards */
.mts-support-uploader { position: relative; display: grid; place-items: center; gap: 3px; min-height: 118px; padding: 18px; overflow: hidden; border: 1px dashed #b8c9db; border-radius: 15px; color: var(--mts-navy); background: linear-gradient(145deg,#f8fbff,#eef5fb); text-align: center; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.mts-support-uploader:hover, .mts-support-uploader.is-dragging { border-color: var(--mts-blue); background: linear-gradient(145deg,#eef7ff,#e1effc); transform: translateY(-1px); }
.mts-support-uploader input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mts-support-uploader-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--mts-navy),var(--mts-blue)); font-size: 24px; line-height: 1; box-shadow: 0 8px 18px rgba(7,21,33,.18); }
.mts-support-uploader strong { font-size: 12px; font-weight: 950; }
.mts-support-uploader small { color: var(--mts-muted); font-size: 10px; font-weight: 700; }
.mts-support-upload-list { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 7px; }
.mts-support-upload-card { justify-content: space-between; width: 100%; min-height: 34px; padding: 6px 8px; border-radius: 10px; font-size: 10px; }
.mts-support-upload-card > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mts-support-submit { min-width: 158px; }
.mts-support-attachment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.mts-support-attachment { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 112px; min-width: 112px; height: 34px; padding: 6px 8px; border: 1px solid #d8e2ed; border-radius: 10px; color: var(--mts-blue); background: linear-gradient(145deg,#fff,#f1f5f9); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.mts-support-attachment span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mts-support-attachment:hover { border-color: var(--mts-blue); background: #eef5ff; }
.mts-support-attachment:disabled { opacity: .6; cursor: default; }

/* Conversation direction: customer on the right, support on the left. */
.mts-support-message.is-customer { align-self: unset; margin-left: auto; margin-right: 0; }
.mts-support-message.is-agent { align-self: unset; margin-left: 0; margin-right: auto; }

/* Keep selected files and message attachments in one horizontal row. */
.mts-support-upload-list, .mts-support-attachment-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; max-width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.mts-support-upload-card, .mts-support-attachment { flex: 0 0 112px; }
.mts-support-detail > .mts-support-actions .is-danger { color: #fff; border-color: #c93845; background: linear-gradient(135deg,#b91c2c,#e0525c); box-shadow: 0 8px 18px rgba(185,28,44,.18); }
.mts-support-detail > .mts-support-actions .is-danger:hover { background: linear-gradient(135deg,#991b2b,#c93845); }
.mts-support-attachment-dialog { width: min(760px, calc(100% - 30px)); max-width: 760px; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(7,21,33,.32); }
.mts-support-attachment-dialog::backdrop { background: rgba(7,21,33,.62); backdrop-filter: blur(3px); }
.mts-support-dialog-body { display: grid; place-items: center; min-height: 180px; max-height: 78vh; padding: 24px; background: #f6f9fc; }
.mts-support-dialog-body img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; }
.mts-support-dialog-file { display: grid; gap: 12px; place-items: center; color: var(--mts-muted); font-size: 12px; text-align: center; }
.mts-support-dialog-file a { color: var(--mts-blue); font-weight: 900; }
.mts-support-dialog-close { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: rgba(7,21,33,.82); font-size: 20px; cursor: pointer; }
@media (max-width: 760px) { .mts-support-uploader { min-height: 106px; } .mts-support-submit { width: 100%; min-width: 0; } .mts-support-attachment { width: 104px; min-width: 104px; } }

/* Account-page alignment correction: compact shell, stable RTL centering */
.mts-support-portal {
  width: min(1240px, calc(100% - 34px));
  margin: 0 auto 36px;
}
.mts-support-hero {
  min-height: 164px;
  padding: 28px max(22px, calc((100vw - 1180px) / 2)) 34px;
}
.mts-support-hero h1 { margin-top: 6px; font-size: clamp(24px, 3vw, 34px); }
.mts-support-hero p { margin-top: 4px; font-size: 13px; }
.mts-support-hero-meta { gap: 8px 15px; margin-top: 12px; font-size: 10px; }
.mts-support-hero-meta i { width: 17px; height: 17px; }
.mts-support-hero-icon { width: 82px; height: 82px; flex-basis: 82px; border-radius: 24px; }
.mts-support-hero-icon svg { width: 47px; height: 47px; }
.mts-support-tabs {
  position: relative;
  inset-inline-start: auto;
  transform: none;
  display: flex;
  width: min(620px, calc(100% - 34px));
  margin: -18px auto 18px;
  border-width: 4px;
  border-radius: 17px;
}
.mts-support-tabs a {
  min-height: 58px;
  padding: 9px 16px;
  border-radius: 12px;
}
.mts-support-tabs a span:not(.mts-support-tab-icon) { font-size: 12px; }
.mts-support-tabs a small { font-size: 9px; }
.mts-support-tab-icon { width: 29px; height: 29px; border-radius: 9px; font-size: 19px; }
.mts-support-content { width: 100%; }
.mts-support-grid, .mts-support-list-panel {
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
}
.mts-support-grid::before { margin: -2px 0 0; font-size: 18px; }
.mts-support-grid::after { margin: -12px 0 2px; font-size: 10px; }
.mts-support-field { gap: 5px; }
.mts-support-field > span { font-size: 11px; }
.mts-support-field input, .mts-support-field select { min-height: 43px; padding: 8px 11px; border-radius: 11px; font-size: 11px; }
.mts-support-field textarea { min-height: 112px; padding: 10px 11px; border-radius: 11px; font-size: 11px; }
.mts-support-field input[type=file] { min-height: 56px; padding: 14px 11px; }
.mts-support-grid > .mts-support-actions { margin-top: 4px; padding-top: 10px; }
.mts-support-button { min-height: 43px; padding: 9px 17px; border-radius: 12px; font-size: 11px; }
.mts-support-button-compact { min-height: 37px; padding: 7px 13px; font-size: 10px; }
.mts-support-list-panel { padding-top: 22px; }
.mts-support-section-head { margin-bottom: 15px; }
.mts-support-section-head h2 { font-size: 19px; }
.mts-support-section-head p { font-size: 10px; }
.mts-support-summary { gap: 8px; margin-bottom: 15px; }
.mts-support-summary > div { padding: 11px 13px; border-radius: 12px; }
.mts-support-summary strong { font-size: 19px; }
.mts-support-list-toolbar { margin-bottom: 9px; }
.mts-support-search input { min-height: 38px; font-size: 10px; }
.mts-support-list th, .mts-support-list td { padding: 10px 11px; font-size: 10px; }
@media (max-width: 760px) {
  .mts-support-portal { width: calc(100% - 20px); margin-bottom: 26px; }
  .mts-support-hero { min-height: 174px; margin-inline: -10px; padding: 25px 20px 34px; }
  .mts-support-hero-copy { padding-inline-end: 65px; }
  .mts-support-hero h1 { font-size: 24px; }
  .mts-support-hero p { font-size: 11px; line-height: 1.8; }
  .mts-support-hero-meta { display: none; }
  .mts-support-hero-icon { inset-inline-end: 19px; top: 25px; width: 55px; height: 55px; flex-basis: 55px; border-radius: 16px; }
  .mts-support-hero-icon svg { width: 33px; height: 33px; }
  .mts-support-tabs { width: calc(100% - 4px); margin: -17px auto 15px; }
  .mts-support-tabs a { min-height: 54px; padding: 8px 9px; }
  .mts-support-tabs a span:not(.mts-support-tab-icon) { font-size: 10px; }
  .mts-support-tabs a small { font-size: 8px; }
  .mts-support-tab-icon { width: 26px; height: 26px; font-size: 17px; }
  .mts-support-grid, .mts-support-list-panel { padding: 16px 13px; }
  .mts-support-grid { grid-template-columns: 1fr; }
  .mts-support-field.full { grid-column: auto; }
  .mts-support-summary > div { padding: 10px 8px; }
  .mts-support-summary strong { font-size: 17px; }
  .mts-support-summary span { font-size: 8px; }
}

/* Mobile list becomes a readable stack while preserving table semantics for desktop. */
@media (max-width: 620px) {
  .mts-support-list-wrap { border: 0; overflow: visible; }
  .mts-support-list, .mts-support-list thead, .mts-support-list tbody, .mts-support-list tr, .mts-support-list td { display: block; width: 100%; }
  .mts-support-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mts-support-list tbody { display: grid; gap: 9px; }
  .mts-support-list tbody tr { padding: 10px 12px; border: 1px solid var(--mts-border); border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(15,35,59,.05); }
  .mts-support-list tbody tr:hover { box-shadow: 0 6px 16px rgba(15,35,59,.09), inset 3px 0 0 var(--mts-gold); }
  .mts-support-list td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .mts-support-list td::before { flex: 0 0 auto; color: var(--mts-muted); content: attr(data-label); font-size: 9px; font-weight: 800; }
  .mts-support-list td[data-label="موضوع"] { display: block; padding-bottom: 8px; border-bottom: 1px solid #edf1f6; }
  .mts-support-list td[data-label="موضوع"]::before { display: block; margin-bottom: 3px; }
  .mts-support-list td[data-label="عملیات"] { justify-content: flex-start; padding-top: 8px; }
  .mts-support-list td[data-label="عملیات"]::before { margin-inline-end: auto; }
}

/* Final support desk overrides must remain after the legacy density rules. */
.mts-support-hero { min-height: 238px; padding-block: 34px 42px; }
.mts-support-hero-copy { position: relative; z-index: 1; max-width: min(690px, 70%); }
.mts-support-hero-icon { position: relative; z-index: 1; width: 214px; height: 214px; flex: 0 0 214px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mts-support-hero-icon img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.3)); }
.mts-support-hero-icon svg { display: none; }
.mts-support-message { width: min(74%, 680px); border-radius: 16px; }
.mts-support-messages { gap: 14px; padding: 22px; }
.mts-support-reply { padding: 18px 22px 12px; }
@media (max-width: 760px) { .mts-support-hero { min-height: 220px; padding: 25px 18px 30px; } .mts-support-hero-copy { max-width: 72%; } .mts-support-hero-icon { width: 142px; height: 142px; flex-basis: 142px; } .mts-support-message { width: 88%; } }

/* Final support desk visual overrides. */
.mts-support-hero { min-height: 238px; padding-block: 34px 42px; }
.mts-support-hero-copy { position: relative; z-index: 1; max-width: min(690px, 70%); }
.mts-support-hero-icon { position: relative; z-index: 1; width: 214px; height: 214px; flex: 0 0 214px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mts-support-hero-icon img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.3)); }
.mts-support-hero-icon svg { display: none; }
.mts-support-message { width: min(74%, 680px); border-radius: 16px; }
.mts-support-messages { gap: 14px; padding: 22px; }
.mts-support-reply { padding: 18px 22px 12px; }
@media (max-width: 760px) { .mts-support-hero { min-height: 220px; padding: 25px 18px 30px; } .mts-support-hero-copy { max-width: 72%; } .mts-support-hero-icon { width: 142px; height: 142px; flex-basis: 142px; } .mts-support-message { width: 88%; } }

/* Support desk refresh: compact hero, supplied headset artwork and clearer hierarchy. */
.mts-support-hero { min-height: 238px; padding-block: 34px 42px; background: radial-gradient(circle at 8% 18%, rgba(244,194,67,.22), transparent 25%), radial-gradient(circle at 78% 115%, rgba(95,247,242,.14), transparent 32%), linear-gradient(125deg,#06121d 0%,#0b2943 58%,#173e76 100%); }
.mts-support-hero-copy { position: relative; z-index: 1; max-width: min(690px, 70%); }
.mts-support-hero h1 { margin-top: 8px; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; }
.mts-support-hero p { max-width: 610px; margin-top: 8px; font-size: 14px; line-height: 1.9; }
.mts-support-hero-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 214px; height: 214px; flex: 0 0 214px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mts-support-hero-icon::before { content: ""; position: absolute; inset: 27px; border: 1px solid rgba(244,194,67,.35); border-radius: 50%; background: radial-gradient(circle,rgba(95,247,242,.12),transparent 68%); box-shadow: 0 0 0 12px rgba(244,194,67,.035), 0 22px 50px rgba(0,0,0,.25); }
.mts-support-hero-icon img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.3)); }
.mts-support-messages { gap: 14px; padding: 22px; background: linear-gradient(180deg,#f8fafc,#edf3f8); }
.mts-support-message { width: min(74%, 680px); border-radius: 16px; box-shadow: 0 8px 24px rgba(15,35,59,.07); }
.mts-support-message.is-customer { border-inline-end: 4px solid var(--mts-gold); }
.mts-support-message.is-agent { border-inline-start: 4px solid var(--mts-blue); }
.mts-support-message header { min-height: 42px; padding: 9px 14px; }
.mts-support-message > div { min-height: 72px; padding: 14px 16px; line-height: 1.95; }
.mts-support-message footer { padding: 9px 14px 11px; }
.mts-support-attachment { height: 32px; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(15,35,59,.04); }
.mts-support-reply { padding: 18px 22px 12px; background: linear-gradient(180deg,#fff,#f8fbfe); }
.mts-support-reply textarea { min-height: 118px; padding: 13px 15px; border-radius: 13px; background: #fff; }
.mts-support-reply .mts-support-uploader { min-height: 92px; margin-top: 10px; padding: 12px; border-radius: 13px; }
@media (max-width: 760px) { .mts-support-hero { min-height: 220px; padding: 25px 18px 30px; } .mts-support-hero-copy { max-width: 72%; } .mts-support-hero-icon { width: 142px; height: 142px; flex-basis: 142px; } .mts-support-hero-icon::before { inset: 18px; } .mts-support-hero h1 { font-size: 24px; } .mts-support-hero p { font-size: 12px; } .mts-support-messages { padding: 14px; } .mts-support-message { width: 88%; } }
@keyframes mts-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .mts-support-portal { width: calc(100% - 20px); } .mts-support-hero { min-height: 182px; margin-inline: -10px; padding: 30px 20px; } .mts-support-hero-icon { width: 74px; height: 74px; flex-basis: 74px; border-radius: 22px; } .mts-support-hero-icon svg { width: 43px; height: 43px; } .mts-support-hero p { font-size: 13px; } .mts-support-tabs { width: min(100%, 420px); margin-top: -22px; } .mts-support-tabs a { min-width: 0; width: 50%; padding-inline: 12px; font-size: 13px; } .mts-support-grid { grid-template-columns: 1fr; gap: 16px; } .mts-support-field.full { grid-column: auto; } .mts-support-list th, .mts-support-list td { padding: 12px 10px; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .mts-support-portal *, .mts-support-portal *::before, .mts-support-portal *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Support desk visual system — premium customer portal pass */
.mts-support-portal { --mts-radius: 16px; width: min(1260px, calc(100% - 32px)); margin-bottom: 56px; }
.mts-support-hero { min-height: 246px; padding-block: 48px 54px; background: radial-gradient(circle at 12% 18%, rgba(244,194,67,.2), transparent 26%), radial-gradient(circle at 82% 110%, rgba(95,247,242,.12), transparent 30%), linear-gradient(125deg, #06121d 0%, #0b2943 58%, #173e76 100%); }
.mts-support-hero::after { opacity: .12; background-size: 74px 74px; }
.mts-support-hero-copy { max-width: 760px; }
.mts-support-hero h1 { margin-top: 12px; font-size: clamp(27px, 3.5vw, 44px); letter-spacing: -.025em; }
.mts-support-hero p { max-width: 650px; margin-top: 9px; font-size: 16px; }
.mts-support-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; }
.mts-support-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.mts-support-hero-meta i { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(244,194,67,.55); border-radius: 50%; color: var(--mts-gold); font-style: normal; }
.mts-support-hero-icon { width: 116px; height: 116px; flex-basis: 116px; border-radius: 34px; }
.mts-support-tabs { display: flex; width: min(640px, calc(100% - 28px)); margin-top: -34px; border-width: 5px; border-radius: 22px; }
.mts-support-tabs a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-content: start; column-gap: 10px; min-width: 0; width: 50%; min-height: 72px; padding: 13px 22px; text-align: right; }
.mts-support-tabs a span:not(.mts-support-tab-icon) { align-self: end; font-size: 14px; }
.mts-support-tabs a small { grid-column: 2; color: var(--mts-muted); font-size: 11px; font-weight: 700; }
.mts-support-tabs a.is-active small { color: rgba(255,255,255,.7); }
.mts-support-tab-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: var(--mts-blue); background: var(--mts-gold-soft); font-size: 24px; line-height: 1; }
.mts-support-tabs a.is-active .mts-support-tab-icon { color: var(--mts-navy); background: var(--mts-gold); }
.mts-support-content { width: min(1080px, 100%); }
.mts-support-grid { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 34px; border-radius: 22px; box-shadow: 0 14px 36px rgba(15,35,59,.08); }
.mts-support-grid::before { content: "ثبت درخواست جدید"; grid-column: 1 / -1; display: block; margin: -7px 0 -4px; color: var(--mts-navy); font-size: 22px; font-weight: 900; }
.mts-support-grid::after { content: "برای دریافت پاسخ دقیق‌تر، عنوان و شرح مشکل را همراه با مدل دستگاه یا شماره سفارش وارد کنید."; grid-column: 1 / -1; display: block; margin: -17px 0 -5px; color: var(--mts-muted); font-size: 12px; }
.mts-support-field > span { font-size: 13px; }
.mts-support-field input, .mts-support-field select, .mts-support-field textarea { border-radius: 13px; background: #fcfdff; }
.mts-support-field textarea { min-height: 178px; }
.mts-support-field input[type=file] { min-height: 72px; padding: 20px 14px; background: linear-gradient(135deg,#f8fbff,#f1f6fb); }
.mts-support-actions { justify-content: flex-start; }
.mts-support-grid > .mts-support-actions { justify-content: flex-start; padding-top: 8px; border-top: 1px solid #edf1f6; }
.mts-support-button { min-height: 50px; border-radius: 13px; }
.mts-support-button-compact { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.mts-support-list-panel { padding: 28px; border: 1px solid rgba(223,230,239,.9); border-radius: 22px; background: linear-gradient(145deg,#fff,#fbfdff); box-shadow: var(--mts-shadow-sm); }
.mts-support-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.mts-support-section-kicker { color: var(--mts-blue); font-size: 11px; font-weight: 900; }
.mts-support-section-head h2 { margin: 3px 0 0; color: var(--mts-navy); font-size: 24px; }
.mts-support-section-head p { margin: 3px 0 0; color: var(--mts-muted); font-size: 12px; }
.mts-support-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.mts-support-summary > div { display: flex; flex-direction: column; gap: 2px; padding: 15px 17px; border: 1px solid #e6edf4; border-radius: 15px; background: #f8fbfe; }
.mts-support-summary strong { color: var(--mts-navy); font-size: 24px; line-height: 1.2; }
.mts-support-summary span { color: var(--mts-muted); font-size: 11px; font-weight: 800; }
.mts-support-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.mts-support-search { position: relative; display: flex; align-items: center; width: min(380px, 100%); }
.mts-support-search span { position: absolute; inset-inline-start: 13px; color: var(--mts-muted); font-size: 21px; }
.mts-support-search input { width: 100%; min-height: 42px; padding: 8px 40px 8px 14px; border: 1px solid var(--mts-border); border-radius: 12px; color: var(--mts-text); background: #fff; font: inherit; font-size: 12px; }
.mts-support-list-count { color: var(--mts-muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.mts-support-list-wrap { border: 1px solid #e8eef4; border-radius: 15px; overflow: hidden; }
.mts-support-list th, .mts-support-list td { padding: 14px 15px; }
.mts-support-list th { color: #738196; background: #f6f9fc; }
.mts-support-list tbody tr:last-child td { border-bottom: 0; }
.mts-support-list tbody tr[hidden] { display: none; }
.mts-support-ticket-number, .mts-support-date { direction: ltr; unicode-bidi: plaintext; color: var(--mts-muted); font-size: 12px; }
.mts-support-operation-button { width: 36px; height: 36px; border-radius: 11px; }
.mts-support-empty { border: 1px dashed #cfdae6; border-radius: 18px; background: #fbfdff; }
.mts-support-auth { margin: 42px auto 70px; padding: 42px 34px; }
.mts-support-auth::before { content: "🔐"; display: block; margin-bottom: 10px; font-size: 30px; }
@media (max-width: 760px) {
  .mts-support-portal { width: calc(100% - 20px); }
  .mts-support-hero { min-height: 270px; margin-inline: -10px; padding: 33px 20px 56px; }
  .mts-support-hero-icon { position: absolute; inset-inline-end: 20px; top: 28px; width: 68px; height: 68px; flex-basis: 68px; border-radius: 20px; }
  .mts-support-hero-icon svg { width: 40px; height: 40px; }
  .mts-support-hero-copy { padding-inline-end: 78px; }
  .mts-support-hero h1 { font-size: 26px; }
  .mts-support-hero p { font-size: 13px; }
  .mts-support-hero-meta { flex-direction: column; gap: 7px; }
  .mts-support-tabs { width: calc(100% - 4px); margin-top: -32px; }
  .mts-support-tabs a { padding: 11px 10px; column-gap: 7px; }
  .mts-support-tabs a span:not(.mts-support-tab-icon) { font-size: 12px; }
  .mts-support-tabs a small { font-size: 9px; }
  .mts-support-tab-icon { width: 29px; height: 29px; border-radius: 9px; font-size: 19px; }
  .mts-support-grid, .mts-support-list-panel { padding: 20px 16px; border-radius: 18px; }
  .mts-support-grid::before { font-size: 19px; }
  .mts-support-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mts-support-section-head h2 { font-size: 21px; }
  .mts-support-summary { gap: 8px; }
  .mts-support-summary > div { padding: 12px 9px; }
  .mts-support-summary strong { font-size: 19px; }
  .mts-support-summary span { font-size: 9px; }
  .mts-support-list-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .mts-support-search { width: 100%; }
.mts-support-list-count { align-self: flex-start; }
}

/* Final geometry overrides: follow the account page density and stay inside the RTL shell. */
.mts-support-portal { width: min(var(--mt-container, 1480px), calc(100% - 28px)); margin: -30px auto 28px; }
.mts-support-hero { width: min(980px, 100%); min-height: 148px; margin-inline: auto; padding: 20px 26px; border: 1px solid rgba(244,213,118,.22); border-radius: 27px; background: radial-gradient(circle at 8% 14%,rgba(244,213,118,.14),transparent 25%), linear-gradient(130deg,#0a2137,#071521 65%,#102a42); box-shadow: var(--mts-shadow-md, 0 18px 45px rgba(15,35,59,.14)); }
.mts-support-hero::after { opacity: .04; background-size: 74px 74px; }
.mts-support-hero-copy { position: relative; z-index: 1; max-width: 70%; }
.mts-support-hero h1 { margin-top: 5px; font-size: clamp(23px, 3vw, 34px); }
.mts-support-hero p { max-width: 650px; margin-top: 4px; font-size: 11px; line-height: 1.75; }
.mts-support-hero-meta { gap: 8px 15px; margin-top: 12px; font-size: 10px; }
.mts-support-hero-icon { position: relative; z-index: 1; width: 116px; height: 116px; flex-basis: 116px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mts-support-hero-icon::before { display: none; }
.mts-support-hero-icon img { position: relative; z-index: 1; display: block; width: 132px; height: 132px; object-fit: contain; transform: translateY(-7px); filter: drop-shadow(0 18px 16px rgba(0,0,0,.42)); }
.mts-support-tabs { margin: -16px auto 18px; border-width: 3px; box-shadow: 0 12px 26px rgba(15,35,59,.12); }
.mts-support-hero-icon svg { display: none; }
.mts-support-tabs { inset-inline-start: auto; transform: none; width: min(620px, calc(100% - 34px)); margin: -18px auto 18px; border-width: 4px; border-radius: 17px; }
.mts-support-tabs a { min-height: 58px; padding: 9px 16px; border-radius: 12px; }
.mts-support-tabs a span:not(.mts-support-tab-icon) { font-size: 12px; }
.mts-support-tabs a small { font-size: 9px; }
.mts-support-tab-icon { width: 29px; height: 29px; border-radius: 9px; font-size: 19px; }
.mts-support-content { width: 100%; }
.mts-support-grid, .mts-support-list-panel { gap: 14px; padding: 22px; border-radius: 18px; }
.mts-support-grid::before { margin: -2px 0 0; font-size: 18px; }
.mts-support-grid::after { margin: -12px 0 2px; font-size: 10px; }
.mts-support-field { gap: 5px; }
.mts-support-field > span { font-size: 11px; }
.mts-support-field input, .mts-support-field select { min-height: 43px; padding: 8px 11px; border-radius: 11px; font-size: 11px; }
.mts-support-field textarea { min-height: 112px; padding: 10px 11px; border-radius: 11px; font-size: 11px; }
.mts-support-field input[type=file] { min-height: 56px; padding: 14px 11px; }
.mts-support-grid > .mts-support-actions { margin-top: 4px; padding-top: 10px; }
.mts-support-button { min-height: 43px; padding: 9px 17px; border-radius: 12px; font-size: 11px; }
.mts-support-button-compact { min-height: 37px; padding: 7px 13px; font-size: 10px; }
.mts-support-list-panel { padding-top: 22px; }
.mts-support-section-head { margin-bottom: 15px; }
.mts-support-section-head h2 { font-size: 19px; }
.mts-support-section-head p { font-size: 10px; }
.mts-support-summary { gap: 8px; margin-bottom: 15px; }
.mts-support-summary > div { padding: 11px 13px; border-radius: 12px; }
.mts-support-summary strong { font-size: 19px; }
.mts-support-search input { min-height: 38px; font-size: 10px; }
.mts-support-list th, .mts-support-list td { padding: 10px 11px; font-size: 10px; }
@media (max-width: 760px) {
  .mts-support-portal { width: calc(100% - 20px); margin-bottom: 26px; }
  .mts-support-hero { min-height: 174px; margin-inline: -10px; padding: 25px 20px 34px; }
  .mts-support-hero-copy { padding-inline-end: 65px; }
  .mts-support-hero h1 { font-size: 24px; }
  .mts-support-hero p { font-size: 11px; line-height: 1.8; }
  .mts-support-hero-meta { display: none; }
  .mts-support-hero-icon { inset-inline-end: 19px; top: 25px; width: 55px; height: 55px; flex-basis: 55px; border-radius: 16px; }
  .mts-support-hero-icon svg { width: 33px; height: 33px; }
  .mts-support-tabs { width: calc(100% - 4px); margin: -17px auto 15px; }
  .mts-support-tabs a { min-height: 54px; padding: 8px 9px; }
  .mts-support-tabs a span:not(.mts-support-tab-icon) { font-size: 10px; }
  .mts-support-tabs a small { font-size: 8px; }
  .mts-support-tab-icon { width: 26px; height: 26px; font-size: 17px; }
  .mts-support-grid, .mts-support-list-panel { padding: 16px 13px; }
  .mts-support-grid { grid-template-columns: 1fr; }
  .mts-support-field.full { grid-column: auto; }
  .mts-support-summary > div { padding: 10px 8px; }
  .mts-support-summary strong { font-size: 17px; }
  .mts-support-summary span { font-size: 8px; }
}
