/* =====================================================================
   Mizban client area — design system + layout
   Look: warm paper, ink text, logo blue/mint, sun-yellow highlight,
   capsule buttons with a hard bottom edge (same language as mizban.com)
   Change colours ONLY through the tokens in :root.
   ===================================================================== */

/* ------------------------------ Fonts ------------------------------ */
@font-face { font-family: "Estedad"; font-weight: 400; font-display: swap;
  src: url("../fonts/estedad-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Estedad"; font-weight: 600; font-display: swap;
  src: url("../fonts/estedad-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Estedad"; font-weight: 700 900; font-display: swap;
  src: url("../fonts/estedad-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Estedad"; font-weight: 400 600; font-display: swap;
  src: url("../fonts/estedad-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Estedad"; font-weight: 700 900; font-display: swap;
  src: url("../fonts/estedad-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ------------------------------ Tokens ------------------------------ */
:root {
  --bg: #f3f0e8;
  --surface: #fbf9f4;
  --surface-2: #e9e5d9;
  --surface-3: #f7f4ec;
  --fg: #0d1226;
  --muted: #565c78;
  --line: rgba(13, 18, 38, .14);
  --line-soft: rgba(13, 18, 38, .08);
  --line-strong: rgba(13, 18, 38, .85);
  --brand: #3f8aff;
  --brand-ink: #1b57d6;
  --brand-soft: #e3edff;
  --mint: #29d2d2;
  --mint-ink: #06757a;
  --mint-soft: #d9f6f4;
  --sun: #ffc53d;
  --sun-soft: #fff1c9;
  --ok: #17b35a;
  --ok-ink: #0d7a3c;
  --ok-soft: #dcf5e6;
  --danger: #d6341f;
  --danger-ink: #a8220f;
  --danger-soft: #fbe2dd;
  --edge: #0d1226;
  --radius: 1.25rem;
  --radius-sm: .85rem;
  --radius-xs: .6rem;
  --side-w: 17rem;
  --top-h: 4.25rem;
  --font: "Shabnam", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-pop: 0 18px 40px -18px rgba(13, 18, 38, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ------------------------------ Base ------------------------------ */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body.mz {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mz input, .mz button, .mz select, .mz textarea, .mz .tooltip, .mz .popover { font-family: var(--font); }
.mz h1, .mz h2, .mz h3, .mz h4, .mz h5, .mz h6,
.mz .h1, .mz .h2, .mz .h3, .mz .h4, .mz .h5, .mz .h6 { font-family: var(--font); font-weight: 800; line-height: 1.45; color: var(--fg); letter-spacing: -.005em; }
.mz h1, .mz .h1 { font-size: 1.6rem; }
.mz h2, .mz .h2 { font-size: 1.35rem; }
.mz h3, .mz .h3 { font-size: 1.12rem; }
.mz h4, .mz .h4 { font-size: 1rem; }
.mz h5, .mz .h5, .mz h6, .mz .h6 { font-size: .95rem; }
.mz a { color: var(--brand-ink); text-decoration: none; }
.mz a:hover { color: var(--fg); text-decoration: none; }
.mz p { margin-bottom: 1rem; }
.mz small, .mz .small { font-size: .82rem; }
.mz .text-muted { color: var(--muted) !important; }
.mz hr { border-top: 1px dashed var(--line); }
.mz ::selection { background: var(--sun); color: #0d1226; }
.mz :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.mz :focus:not(:focus-visible) { outline: 0; }
.mz code, .mz kbd, .mz pre, .mz .mono { font-family: var(--mono); }
.mz code { color: var(--brand-ink); background: var(--brand-soft); padding: .05rem .4rem; border-radius: .35rem; font-size: .85em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mz .mz-text-danger, .mz a.mz-text-danger { color: var(--danger) !important; }
.mz .w-hidden { display: none; }
.mz-wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: 1.25rem; }
.mz-skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 2000; background: var(--sun); color: var(--fg) !important; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--edge); font-weight: 800; }
.mz-skip:focus { top: 1rem; }
.mz-marker { background: linear-gradient(transparent 45%, var(--sun) 45% 85%, transparent 85%); padding-inline: .15em; }

/* ------------------------------ Buttons ------------------------------ */
/* Capsule key: thick ink border + hard bottom edge that sinks on press */
.mz .btn, .mz-btn {
  --b-bg: var(--surface);
  --b-fg: var(--fg);
  --b-edge: var(--edge);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--b-edge);
  background: var(--b-bg);
  color: var(--b-fg) !important;
  font-family: var(--font);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 3px 0 0 var(--b-edge);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}
.mz .btn:hover, .mz-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--b-edge); background: var(--b-bg); }
.mz .btn:active, .mz-btn:active, .mz .btn.active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--b-edge) !important; }
.mz .btn:focus, .mz .btn.focus { box-shadow: 0 3px 0 0 var(--b-edge), 0 0 0 4px rgba(63, 138, 255, .35); }
.mz .btn.disabled, .mz .btn:disabled, .mz-btn[disabled], .mz-btn.is-disabled { opacity: .5; pointer-events: none; box-shadow: none; transform: none; }
.mz .btn i, .mz-btn i { font-size: .95em; }
.mz .btn-primary, .mz-btn--brand { --b-bg: var(--brand); --b-fg: #0d1226; }
.mz .btn-primary:not(:disabled):not(.disabled):active, .mz .btn-primary:hover, .mz .btn-primary:focus { background: var(--brand); color: #0d1226 !important; border-color: var(--edge); }
.mz .btn-success, .mz-btn--mint { --b-bg: var(--mint); --b-fg: #0d1226; }
.mz .btn-success:hover, .mz .btn-success:focus, .mz .btn-success:not(:disabled):not(.disabled):active { background: var(--mint); color: #0d1226 !important; border-color: var(--edge); }
.mz .btn-warning, .mz-btn--sun { --b-bg: var(--sun); --b-fg: #0d1226; }
.mz .btn-warning:hover, .mz .btn-warning:focus { background: var(--sun); border-color: var(--edge); }
.mz .btn-danger, .mz-btn--danger { --b-bg: #fff; --b-fg: var(--danger); --b-edge: var(--danger); }
.mz .btn-danger:hover, .mz .btn-danger:focus, .mz .btn-danger:not(:disabled):not(.disabled):active { background: var(--danger-soft); color: var(--danger-ink) !important; border-color: var(--danger); }
.mz .btn-info, .mz-btn--ink { --b-bg: var(--fg); --b-fg: var(--bg); }
.mz .btn-info:hover, .mz .btn-info:focus { background: var(--fg); color: var(--bg) !important; border-color: var(--edge); }
.mz .btn-default, .mz .btn-secondary, .mz .btn-light, .mz .btn-outline-primary, .mz .btn-outline-secondary { --b-bg: var(--surface); --b-fg: var(--fg); }
.mz .btn-default:hover, .mz .btn-secondary:hover, .mz .btn-light:hover, .mz .btn-outline-primary:hover, .mz .btn-outline-secondary:hover { background: #fff; color: var(--fg) !important; border-color: var(--edge); }
.mz .btn-link, .mz-btn--quiet {
  --b-bg: transparent; --b-edge: var(--line);
  box-shadow: none;
}
.mz .btn-link:hover, .mz-btn--quiet:hover { box-shadow: none; transform: none; border-color: var(--fg); background: var(--surface); }
.mz .btn-link { border-color: transparent; color: var(--brand-ink) !important; }
.mz .btn-sm, .mz .btn-group-sm > .btn, .mz-btn--sm { min-height: 2.25rem; padding: .25rem 1rem; font-size: .82rem; box-shadow: 0 2px 0 0 var(--b-edge); }
.mz .btn-xs { min-height: 1.9rem; padding: .1rem .8rem; font-size: .76rem; box-shadow: 0 2px 0 0 var(--b-edge); border-width: 1.5px; }
.mz .btn-lg, .mz-btn--lg { min-height: 3.25rem; padding: .6rem 1.8rem; font-size: 1rem; }
.mz .btn-block, .mz-btn--block { display: flex; width: 100%; }
.mz .btn-group, .mz .btn-group-vertical { gap: .4rem; flex-wrap: wrap; }
.mz .btn-group > .btn, .mz .btn-group > .btn-group > .btn { border-radius: 999px !important; margin: 0 !important; }
.mz .btn-group > .btn:not(:first-child), .mz .btn-group > .btn-group:not(:first-child) { margin-inline-start: 0 !important; }
.mz .btn-group-toggle > .btn.active { background: var(--fg); color: var(--bg) !important; }
.mz .btn .badge { background: var(--fg); color: var(--bg); border-radius: 999px; }
.mz-linkbtn { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; }
.mz-linkbtn:hover { color: var(--fg); }

.mz-iconbtn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg) !important;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.mz-iconbtn:hover { border-color: var(--fg); background: #fff; }
.mz-iconbtn:active { transform: scale(.96); }
.mz-dot-count {
  position: absolute; top: -.25rem; inset-inline-start: -.25rem;
  min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  display: inline-grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 1;
}
.mz-dot-count.is-alert { background: var(--danger); }
.mz-dot-count.is-empty { display: none; }

/* ------------------------------ Chips & status ------------------------------ */
.mz-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .1rem .7rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: .76rem; font-weight: 600; line-height: 1.8;
  white-space: nowrap;
}
.mz-chip--soft { border-color: transparent; background: var(--surface-2); color: var(--fg); }
.mz-status {
  --s-bg: var(--surface-2); --s-fg: var(--muted);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .12rem .7rem .12rem .75rem;
  border-radius: 999px;
  background: var(--s-bg); color: var(--s-fg);
  font-size: .76rem; font-weight: 800; line-height: 1.8;
  white-space: nowrap;
}
.mz-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.mz-status--active, .mz-status--paid, .mz-status--completed, .mz-status--answered, .mz-status--accepted, .mz-status--delivered { --s-bg: var(--ok-soft); --s-fg: var(--ok-ink); }
.mz-status--pending, .mz-status--unpaid, .mz-status--pendingtransfer, .mz-status--grace, .mz-status--paymentpending, .mz-status--draft, .mz-status--customerreply, .mz-status--pendingregistration { --s-bg: var(--sun-soft); --s-fg: #8a5a00; }
.mz-status--suspended, .mz-status--overdue, .mz-status--expired, .mz-status--fraud, .mz-status--collections, .mz-status--redemption, .mz-status--dead { --s-bg: var(--danger-soft); --s-fg: var(--danger-ink); }
.mz-status--open, .mz-status--inprogress { --s-bg: var(--brand-soft); --s-fg: var(--brand-ink); }
.mz-status--onhold { --s-bg: var(--mint-soft); --s-fg: var(--mint-ink); }
.mz-status--cancelled, .mz-status--terminated, .mz-status--closed, .mz-status--refunded, .mz-status--transferredaway, .mz-status--expiredsoon { --s-bg: var(--surface-2); --s-fg: var(--muted); }
.mz-status--custom { --s-bg: var(--surface-2); --s-fg: var(--fg); }

/* WHMCS status labels used on pages we didn't rebuild */
.mz .label, .mz .badge { border-radius: 999px; font-weight: 800; font-size: .74rem; padding: .2rem .65rem; }
.mz .label.status, .mz span.status { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .74rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.mz .status-active, .mz .status-paid, .mz .status-completed, .mz .status-answered, .mz .status-accepted { background: var(--ok-soft) !important; color: var(--ok-ink) !important; }
.mz .status-pending, .mz .status-unpaid, .mz .status-pending-transfer, .mz .status-draft, .mz .status-customer-reply, .mz .status-delivered { background: var(--sun-soft) !important; color: #8a5a00 !important; }
.mz .status-suspended, .mz .status-overdue, .mz .status-expired, .mz .status-fraud, .mz .status-collections, .mz .status-dead { background: var(--danger-soft) !important; color: var(--danger-ink) !important; }
.mz .status-open, .mz .status-in-progress { background: var(--brand-soft) !important; color: var(--brand-ink) !important; }
.mz .status-cancelled, .mz .status-terminated, .mz .status-closed, .mz .status-refunded, .mz .status-transferred-away, .mz .status-expired-soon, .mz .status-on-hold { background: var(--surface-2) !important; color: var(--muted) !important; }
.mz .badge-info, .mz .badge-primary { background: var(--brand); color: #fff; }
.mz .badge-success { background: var(--ok); color: #fff; }
.mz .badge-danger { background: var(--danger); color: #fff; }
.mz .badge-warning { background: var(--sun); color: var(--fg); }
.mz .badge-secondary, .mz .badge-default, .mz .badge-light { background: var(--surface-2); color: var(--fg); }

/* ------------------------------ Cards & surfaces ------------------------------ */
.mz-card, .mz .card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 1.25rem;
}
.mz .card { overflow: hidden; }
.mz .card-header {
  background: transparent;
  border-bottom: 1.5px dashed var(--line);
  padding: 1rem 1.25rem;
}
.mz .card-header .card-title, .mz .card-title { font-size: 1.02rem; font-weight: 800; margin-bottom: .5rem; }
.mz .card-header .card-title { margin: 0; }
.mz .card-body { padding: 1.25rem; }
.mz .card-footer { background: var(--surface-3); border-top: 1.5px dashed var(--line); padding: .85rem 1.25rem; }
.mz .card-footer:empty { display: none; }
.mz .card .list-group-item { background: transparent; }
.mz .card[class*="card-accent-"] { border-top-width: 1.5px; }
.mz .bg-white, .mz .bg-default, .mz .bg-light { background: var(--surface) !important; }
.mz .extra-padding { padding: 1.75rem !important; }
.mz .jumbotron { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.mz .well { background: var(--surface-3); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 1rem; }

/* ------------------------------ Forms ------------------------------ */
.mz .form-control, .mz .custom-select, .mz select.form-control, .mz .field, .mz input[type="text"].form-control {
  min-height: 2.9rem;
  padding: .55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background-color: #fffdf8;
  color: var(--fg);
  font-family: var(--font);
  font-size: .93rem;
  box-shadow: none;
  transition: box-shadow .15s, border-color .15s;
}
.mz textarea.form-control { min-height: 8rem; line-height: 1.85; resize: vertical; }
.mz .form-control-sm, .mz .custom-select-sm, .mz .input-sm { min-height: 2.3rem; padding: .25rem .8rem; font-size: .85rem; }
.mz .form-control:focus, .mz .custom-select:focus, .mz .field:focus {
  outline: 0; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 138, 255, .28);
}
.mz .form-control::placeholder { color: var(--muted); opacity: .75; }
.mz .form-control:disabled, .mz .form-control[readonly] { background: var(--surface-2); border-color: var(--line); opacity: 1; }
.mz .custom-select { background-position: left .9rem center; padding-left: 2.2rem; padding-right: 1rem; }
.mz label, .mz .col-form-label, .mz .control-label { font-weight: 600; font-size: .86rem; color: var(--fg); }
.mz .form-group { margin-bottom: 1.15rem; }
.mz .form-text, .mz .help-block { color: var(--muted); font-size: .8rem; }
.mz .input-group { flex-wrap: nowrap; }
.mz .input-group > .form-control:not(:last-child), .mz .input-group > .custom-select:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.mz .input-group > .form-control:not(:first-child), .mz .input-group > .custom-select:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.mz .input-group-text { background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-size: .85rem; }
.mz .input-group-append .btn, .mz .input-group-prepend .btn { box-shadow: none; min-height: 2.9rem; transform: none; }
.mz .input-group-append > .btn, .mz .input-group-append > .input-group-text { border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 999px; border-end-end-radius: 999px; }
.mz .input-group-prepend > .btn, .mz .input-group-prepend > .input-group-text { border-start-end-radius: 0; border-end-end-radius: 0; border-start-start-radius: 999px; border-end-start-radius: 999px; }
.mz .custom-file-label { min-height: 2.9rem; padding: .6rem 1rem; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-strong); background: #fffdf8; font-size: .88rem; }
.mz .custom-file-label::after { height: auto; top: 0; bottom: 0; display: flex; align-items: center; background: var(--surface-2); border-inline-start: 1.5px solid var(--line-strong); font-family: var(--font); }
.mz .custom-control-label::before { border: 1.5px solid var(--line-strong); background: #fffdf8; }
.mz .custom-control-input:checked ~ .custom-control-label::before { background: var(--fg); border-color: var(--fg); }
.mz input[type="checkbox"], .mz input[type="radio"] { accent-color: var(--fg); width: 1.05rem; height: 1.05rem; vertical-align: middle; }
.mz .form-check { padding-inline-start: 1.6rem; }
.mz .is-invalid, .mz .has-error .form-control { border-color: var(--danger) !important; }
.mz .invalid-feedback { color: var(--danger); }
.mz .field-icon { color: var(--muted); }
.mz .bootstrap-switch { border-radius: 999px; border: 1.5px solid var(--line-strong); }
.mz .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success { background: var(--mint); color: var(--fg); }
.mz .iti, .mz .intl-tel-input { width: 100%; }
.mz .password-strength-meter .progress { height: .45rem; border-radius: 999px; background: var(--surface-2); }

/* ------------------------------ Tables ------------------------------ */
.mz .table { color: var(--fg); margin-bottom: 0; }
.mz .table th, .mz .table thead td {
  font-size: .76rem; font-weight: 800; color: var(--muted);
  border-top: 0; border-bottom: 1.5px solid var(--line) !important;
  background: transparent; white-space: nowrap; padding: .8rem 1rem;
}
.mz .table td { border-top: 1px dashed var(--line); padding: .85rem 1rem; vertical-align: middle; font-size: .9rem; }
.mz .table-striped tbody tr:nth-of-type(odd) { background: var(--surface-3); }
.mz .table-hover tbody tr:hover, .mz .table-list tbody tr:hover { background: #fff; }
.mz .table-list > tbody > tr { cursor: pointer; }
.mz .table-container { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .5rem; overflow: hidden; }
.mz .dataTables_wrapper .listtable { overflow-x: auto; }
.mz .dataTables_wrapper .dataTables_filter { float: none; margin: .4rem .4rem .8rem; text-align: start; }
.mz .dataTables_wrapper .dataTables_filter label { width: 100%; max-width: 22rem; margin: 0; }
.mz .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin: 0 !important; min-height: 2.6rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565c78' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 1rem center / 1rem; padding-inline: 2.6rem 1rem !important; }
.mz .dataTables_wrapper .dataTables_info { font-size: .8rem; color: var(--muted); padding: .8rem; float: none; }
.mz .dataTables_wrapper .dataTables_paginate { padding: .5rem; }
.mz .dataTables_wrapper .dataTables_length { padding: .5rem; font-size: .8rem; }
.mz .dataTables_wrapper .dataTables_length select { min-height: 2.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fffdf8; padding: 0 .8rem; }
.mz table.dataTable thead .sorting::after, .mz table.dataTable thead .sorting_asc::after, .mz table.dataTable thead .sorting_desc::after { opacity: .35; }

/* ------------------------------ Pagination ------------------------------ */
.mz .pagination { gap: .3rem; flex-wrap: wrap; }
.mz .page-link { border-radius: 999px !important; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); min-width: 2.3rem; text-align: center; font-weight: 600; font-size: .85rem; margin: 0 !important; }
.mz .page-item.active .page-link { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mz .page-item.disabled .page-link { opacity: .45; background: transparent; }

/* ------------------------------ Alerts ------------------------------ */
.mz .alert {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  border-inline-start-width: 6px;
}
.mz .alert-success { border-color: var(--ok); background: var(--ok-soft); }
.mz .alert-info { border-color: var(--brand); background: var(--brand-soft); }
.mz .alert-warning { border-color: var(--sun); background: var(--sun-soft); }
.mz .alert-danger, .mz .alert-error { border-color: var(--danger); background: var(--danger-soft); }
.mz .alert a:not(.btn), .mz .alert .alert-link { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.mz .alert ul { margin: .4rem 0 0; padding-inline-start: 1.2rem; }
.mz .alert .close { opacity: .6; }

/* ------------------------------ Tabs / pills / list group ------------------------------ */
.mz .nav-tabs { border-bottom: 0; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mz .nav-tabs .nav-link, .mz .nav-pills .nav-link {
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--fg); font-weight: 600; font-size: .86rem; padding: .4rem 1rem; margin: 0;
}
.mz .nav-tabs .nav-link:hover, .mz .nav-pills .nav-link:hover { border-color: var(--fg); }
.mz .nav-tabs .nav-link.active, .mz .nav-tabs .nav-item.show .nav-link, .mz .nav-pills .nav-link.active {
  background: var(--fg); border-color: var(--fg); color: var(--bg);
}
.mz .responsive-tabs-sm-connector { display: none; }
.mz .tab-content.bg-white, .mz .product-details-tab-container { background: var(--surface) !important; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.mz .list-group-item { border-color: var(--line); background: var(--surface); color: var(--fg); padding: .8rem 1rem; }
.mz .list-group-item-action:hover { background: #fff; }
.mz .list-group-item.active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ------------------------------ Dropdown / modal / tooltip ------------------------------ */
.mz .dropdown-menu {
  border: 1.5px solid var(--fg); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-pop);
  padding: .4rem; text-align: right; font-size: .9rem;
}
.mz .dropdown-item { border-radius: .55rem; padding: .5rem .8rem; color: var(--fg); display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.mz .dropdown-item:hover, .mz .dropdown-item:focus { background: var(--surface-2); color: var(--fg); }
.mz .dropdown-item.active, .mz .dropdown-item:active { background: var(--fg); color: var(--bg); }
.mz .dropdown-divider { border-top: 1px dashed var(--line); margin: .35rem 0; }
.mz .modal-content { border: 2px solid var(--fg); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 0 0 var(--fg); }
.mz .modal-header { border-bottom: 1.5px dashed var(--line); padding: 1rem 1.25rem; }
.mz .modal-header .close { margin: -1rem auto -1rem -1rem; }
.mz .modal-footer { border-top: 1.5px dashed var(--line); gap: .5rem; padding: .9rem 1.25rem; }
.mz .modal-footer > * { margin: 0; }
.mz .modal-backdrop.show { opacity: .45; background: #0d1226; }
.mz .modal-localisation .item-selector .item { display: block; padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; margin-bottom: .5rem; color: var(--fg); text-align: center; }
.mz .modal-localisation .item-selector .item.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mz .modal-localisation .modal-content { background: var(--surface); }
.mz .modal-localisation .modal-content .close { color: var(--fg) !important; }
.mz .tooltip-inner { background: var(--fg); border-radius: .55rem; font-size: .78rem; padding: .35rem .7rem; }
.mz .popover { border: 1.5px solid var(--fg); border-radius: var(--radius-sm); font-family: var(--font); }
.mz .progress { background: var(--surface-2); border-radius: 999px; height: .6rem; }
.mz .progress-bar { background: var(--brand); border-radius: 999px; }
.mz #fullpage-overlay { background: rgba(243, 240, 232, .82); }

/* =====================================================================
   APP SHELL (signed in)
   ===================================================================== */
.mz-shell { min-height: 100vh; }
.mz-side {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: var(--side-w);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-inline-end: 1.5px solid var(--line);
  z-index: 1040;
}
.mz-side__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.1rem .6rem; }
.mz-side__close { display: none; }
.mz-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--fg) !important; min-width: 0; }
.mz-brand__mark { width: 2.5rem; height: 2.5rem; border-radius: .8rem; flex: none; }
.mz-brand__img { max-height: 2.6rem; max-width: 11rem; width: auto; }
.mz-brand__name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-brand--center { justify-content: center; width: 100%; margin-bottom: 1.25rem; }
.mz-side__cta { padding: .4rem 1.1rem 1rem; }
.mz-nav { flex: 1; overflow-y: auto; padding: 0 .75rem 1rem; scrollbar-width: thin; }
.mz-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mz-nav__heading { margin: 1.1rem .7rem .4rem; font-size: .72rem; font-weight: 800; color: var(--muted); }
.mz-nav__link {
  width: 100%;
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem;
  border-radius: .85rem;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--fg) !important;
  font-weight: 600; font-size: .92rem; line-height: 1.6;
  text-align: right;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.mz-nav__link:hover { background: var(--surface-2); }
.mz-nav__icon {
  width: 2rem; height: 2rem; flex: none;
  display: grid; place-items: center;
  border-radius: .65rem;
  background: var(--surface-2); color: var(--fg);
  font-size: .85rem;
  transition: background .15s, color .15s;
}
.mz-nav__label { flex: 1; min-width: 0; }
.mz-nav__caret { font-size: .7rem; color: var(--muted); transition: transform .2s var(--ease); }
.mz-nav__group.is-open > .mz-nav__toggle .mz-nav__caret { transform: rotate(180deg); }
.mz-nav__badge { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--sun); color: var(--fg); font-size: .7rem; font-weight: 800; text-align: center; line-height: 1.6; }
.mz-nav__sub { list-style: none; margin: .1rem 0 .35rem; padding: 0 2.6rem 0 0; display: none; position: relative; }
.mz-nav__sub::before { content: ""; position: absolute; inset-inline-start: 1.75rem; top: .3rem; bottom: .3rem; border-inline-start: 2px dotted var(--line); }
.mz-nav__group.is-open > .mz-nav__sub { display: block; }
.mz-nav__sublink { display: flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: .6rem; color: var(--muted) !important; font-size: .86rem; font-weight: 600; }
.mz-nav__sublink:hover { color: var(--fg) !important; background: var(--surface-2); }
.mz-nav__sublink > span:first-child { flex: 1; }
.mz-nav__ext { font-size: .65rem; opacity: .5; }
.mz-nav__divider { height: 0; border-top: 1px dashed var(--line); margin: .3rem .7rem; }
.mz-nav__link.is-active { background: var(--fg); color: var(--bg) !important; }
.mz-nav__link.is-active .mz-nav__icon { background: var(--sun); color: var(--fg); }
.mz-nav__link.is-active .mz-nav__caret { color: var(--bg); }
.mz-nav__sublink.is-active { color: var(--fg) !important; background: var(--sun-soft); }
.mz-nav__sublink.is-active::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--fg); }
.mz-side__foot { padding: .85rem 1rem 1.1rem; border-top: 1.5px dashed var(--line); }
.mz-side__help { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--fg) !important; border: 1.5px solid transparent; }
.mz-side__help:hover { border-color: var(--mint-ink); }
.mz-side__help-icon { width: 2.2rem; height: 2.2rem; border-radius: 999px; display: grid; place-items: center; background: var(--mint); border: 2px solid var(--edge); flex: none; }
.mz-side__help strong { display: block; font-size: .86rem; }
.mz-side__help small { color: var(--muted); font-size: .74rem; }

.mz-main { margin-inline-start: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.mz-top {
  position: sticky; top: 0; z-index: 1030;
  height: var(--top-h);
  display: flex; align-items: center; gap: .8rem;
  padding: 0 1.75rem;
  background: rgba(243, 240, 232, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1.5px solid var(--line-soft);
}
.mz-top__menu, .mz-top__brand { display: none; }
.mz-top__brand img { width: 2.1rem; height: 2.1rem; border-radius: .65rem; }
.mz-search { position: relative; flex: 1; max-width: 30rem; margin: 0; }
.mz-search > i { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.mz-search__input {
  width: 100%; height: 2.6rem;
  padding: 0 2.6rem 0 2.6rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg);
  font-size: .88rem; transition: border-color .15s, box-shadow .15s;
}
.mz-search__input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(63, 138, 255, .25); background: #fff; }
.mz-search__kbd { position: absolute; inset-inline-end: .8rem; top: 50%; transform: translateY(-50%); font-size: .72rem; padding: 0 .45rem; border-radius: .35rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); }
.mz-top__actions { margin-inline-start: auto; display: flex; align-items: center; gap: .55rem; }
.mz-account {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 2.6rem; padding: 0 .35rem 0 .9rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg);
  font-weight: 600; font-size: .86rem; cursor: pointer;
}
.mz-account:hover { border-color: var(--fg); }
.mz-account__name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-account__caret { font-size: .65rem; color: var(--muted); }
.mz-avatar {
  width: 2rem; height: 2rem; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  border: 2px solid var(--edge);
  font-weight: 800; font-size: .85rem; line-height: 1;
}
.mz-avatar--lg { width: 2.6rem; height: 2.6rem; font-size: 1rem; background: var(--sun); color: var(--fg); }
.mz-pop__panel { width: 22rem; max-width: calc(100vw - 1.5rem); padding: .5rem; margin-top: .55rem !important; }
.mz-pop__panel--menu { width: 17rem; }
.mz-pop__head { display: flex; align-items: center; justify-content: space-between; padding: .45rem .6rem .7rem; }
.mz-pop__who { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem .8rem; margin-bottom: .3rem; border-bottom: 1px dashed var(--line); }
.mz-pop__who strong { display: block; font-size: .92rem; line-height: 1.5; }
.mz-pop__who small { display: block; color: var(--muted); font-size: .74rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.mz-alerts { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; display: grid; gap: .3rem; }
.mz-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: .75rem; color: var(--fg) !important; font-size: .85rem; line-height: 1.7; }
.mz-alert:hover { background: var(--surface-2); }
.mz-alert i { margin-top: .2rem; }
.mz-alert--danger i { color: var(--danger); }
.mz-alert--warning i { color: #c98a00; }
.mz-alert--info i { color: var(--brand); }
.mz-alert--success i { color: var(--ok); }
.mz-alerts__none { padding: 1.6rem .5rem; text-align: center; color: var(--muted); font-size: .85rem; }
.mz-alerts__none i { display: block; font-size: 1.4rem; margin-bottom: .4rem; }

.mz-content { flex: 1; width: 100%; max-width: 86rem; margin-inline: auto; padding: 1.75rem 1.75rem 2.5rem; }
.mz-pagehead { margin-bottom: 1.4rem; }
.mz-pagehead__title { font-size: 1.55rem; margin: 0; }
.mz-pagehead__tag { color: var(--muted); margin: .25rem 0 0; font-size: .92rem; }
.mz-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .35rem; padding: 0; font-size: .8rem; color: var(--muted); }
.mz-crumbs li + li::before { content: "\f104"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: .65rem; margin-inline-end: .35rem; opacity: .6; }
.mz-crumbs a { color: var(--muted); }
.mz-crumbs a:hover { color: var(--fg); }

/* Context menus (from WHMCS sidebars) drawn as pill rows */
.mz-ctx { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; min-width: 0; }
.mz-ctx__label { flex: none; font-size: .76rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.mz-ctx__label i { margin-inline-end: .25rem; }
.mz-ctx__chips.list-group {
  flex-direction: row; flex-wrap: nowrap; gap: .4rem;
  overflow-x: auto; padding: .2rem .1rem .45rem;
  scrollbar-width: thin; border-radius: 0;
  -webkit-mask-image: linear-gradient(to left, #000 92%, transparent);
  mask-image: linear-gradient(to left, #000 92%, transparent);
}
.mz .mz-ctx__chips > .list-group-item {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  width: auto; margin: 0 !important;
  padding: .32rem .95rem;
  border: 1.5px solid var(--line) !important;
  border-radius: 999px !important;
  background: var(--surface);
  color: var(--fg); font-size: .84rem; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
}
.mz .mz-ctx__chips > .list-group-item:hover { border-color: var(--fg) !important; background: #fff; }
.mz .mz-ctx__chips > .list-group-item.active { background: var(--fg); border-color: var(--fg) !important; color: var(--bg); }
.mz .mz-ctx__chips > .list-group-item.disabled { opacity: .45; }
.mz .mz-ctx__chips > .list-group-item .badge { background: var(--sun); color: var(--fg); padding: .05rem .45rem; }
.mz .mz-ctx__chips > .list-group-item i { font-size: .8rem; color: var(--muted); }
.mz .mz-ctx__chips > .list-group-item.active i { color: var(--sun); }
.mz-ctx__extra { flex: none; display: inline-flex; align-items: center; }
.mz-ctx__extra .btn { min-height: 2.15rem; padding: .2rem .9rem; font-size: .8rem; box-shadow: 0 2px 0 0 var(--edge); }

.mz-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mz-layout.has-aside { grid-template-columns: minmax(0, 1fr) 19rem; }
.mz-layout__aside { position: sticky; top: calc(var(--top-h) + 1rem); display: grid; gap: 1rem; }
.mz-layout__aside:empty { display: none; }
.mz-infocard { margin: 0; padding: 0; overflow: hidden; }
.mz-infocard__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1.5px dashed var(--line); }
.mz-infocard__head h3 { margin: 0; font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.mz-infocard__head h3 i { color: var(--muted); font-size: .85rem; }
.mz-infocard__body { padding: .9rem 1.1rem; font-size: .88rem; }
.mz-infocard__body > :last-child { margin-bottom: 0; }
.mz-infocard__rows { list-style: none; margin: 0; padding: .35rem 0; }
.mz-infocard__rows > li { display: flex; align-items: center; gap: .55rem; padding: .45rem 1.1rem; font-size: .86rem; line-height: 1.7; }
.mz-infocard__rows > li + li { border-top: 1px dashed var(--line-soft); }
.mz-infocard__rows > li > a { display: flex; align-items: center; gap: .55rem; width: 100%; color: var(--fg); }
.mz-infocard__rows > li > a:hover { color: var(--brand-ink); }
.mz-infocard__rows i { color: var(--muted); }
.mz-infocard__rows .badge { margin-inline-start: auto; background: var(--surface-2); color: var(--fg); }
.mz-infocard__rows .ticket-details-children, .mz-infocard__rows .truncate { overflow: hidden; text-overflow: ellipsis; }
.mz-infocard__foot { padding: .8rem 1.1rem; border-top: 1.5px dashed var(--line); background: var(--surface-3); }
.mz-infocard__foot .btn { width: 100%; }
.mz-infocard__foot > .col-6, .mz-infocard__foot .col-xs-6 { padding: 0; }

.mz-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.75rem 1.6rem; color: var(--muted); font-size: .8rem; border-top: 1.5px dashed var(--line); }
.mz-foot__links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.mz-foot__links a, .mz-foot__links .mz-linkbtn { color: var(--muted); font-size: .8rem; }
.mz-foot__links a:hover, .mz-foot__links .mz-linkbtn:hover { color: var(--fg); }
.mz-foot--guest { padding-inline: 0; }
.mz-foot__in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }

.mz-tabbar { display: none; }
.mz-scrim { position: fixed; inset: 0; background: rgba(13, 18, 38, .45); z-index: 1035; opacity: 0; transition: opacity .2s; }
.mz-scrim.is-on { opacity: 1; }

/* Network issue / verify email banners */
.mz .verification-banner, .mz .network-issues-notifications, .mz-main > .alert {
  margin: 1rem 1.75rem 0; border-radius: var(--radius-sm);
}
.mz .verification-banner { background: var(--sun-soft); border: 1.5px solid var(--sun); color: var(--fg); padding: .6rem 0; }
.mz .verification-banner .container { max-width: none; padding-inline: 1rem; }
.mz .verification-banner .btn { min-height: 2.1rem; padding: .2rem .9rem; font-size: .8rem; }
.mz .verification-banner .text { color: var(--fg); font-size: .86rem; }
.mz .verification-banner i.fas { color: #c98a00; }
.mz .verification-banner button.close { color: var(--fg); }
.mz .btn-return-to-admin { position: fixed; bottom: 5.5rem; inset-inline-end: 1rem; z-index: 1050; }

/* =====================================================================
   GUEST (visitors) + AUTH CARD
   ===================================================================== */
.mz-guestbar { position: sticky; top: 0; z-index: 1030; background: rgba(243, 240, 232, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1.5px solid var(--line-soft); }
.mz-guestbar__in { display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; flex-wrap: wrap; }
.mz-guestbar__toggle { display: none; margin-inline-start: auto; }
.mz-guestbar__nav { display: flex !important; flex: 1; align-items: center; gap: 1rem; }
.mz-guestnav { flex-direction: row; gap: .2rem; flex-wrap: wrap; }
.mz-guestnav > li > a { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .85rem !important; border-radius: 999px; color: var(--fg) !important; font-weight: 600; font-size: .9rem; }
.mz-guestnav > li > a:hover { background: var(--surface-2); }
.mz-guestnav .collapsable-dropdown { display: none !important; }
.mz-guestbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.mz-guestmain { padding: 2rem 0 3rem; min-height: 60vh; }
.mz-guestmain .mz-layout.has-aside { grid-template-columns: minmax(0, 1fr) 18rem; }

.mz-authcard { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.mz-authcard__box { width: 100%; max-width: 30rem; background: var(--surface); border: 2px solid var(--edge); border-radius: 1.6rem; box-shadow: 0 8px 0 0 var(--edge); padding: 2rem 1.75rem; }
.mz-authcard__box .card { border: 0; background: transparent; margin: 0; }
.mz-authcard__box .card-body { padding: 0; }
.mz-authcard__foot { margin-top: 1.5rem; color: var(--muted); font-size: .78rem; }

/* =====================================================================
   Shared page pieces
   ===================================================================== */
.mz-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .85rem; }
.mz-section-title h2 { margin: 0; font-size: 1.08rem; }
.mz-section-title a { font-size: .84rem; font-weight: 600; }
.mz-empty { text-align: center; padding: 2.6rem 1.25rem; color: var(--muted); }
.mz-empty__icon { width: 3.6rem; height: 3.6rem; margin: 0 auto .9rem; border-radius: 1.1rem; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); font-size: 1.3rem; transform: rotate(-6deg); }
.mz-empty h3 { color: var(--fg); font-size: 1rem; margin-bottom: .3rem; }
.mz-empty p { font-size: .88rem; margin-bottom: 1.1rem; }
.mz-spec { display: flex; align-items: baseline; gap: .6rem; font-size: .9rem; padding: .3rem 0; }
.mz-spec::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.28em); min-width: 1rem; }
.mz-spec > dt, .mz-spec > :first-child { order: 1; color: var(--muted); font-weight: 400; margin: 0; }
.mz-spec > dd, .mz-spec > :last-child { order: 3; font-weight: 600; margin: 0; text-align: left; }
.mz-copy { border: 0; background: transparent; color: var(--muted); padding: 0 .3rem; cursor: pointer; font-size: .8rem; }
.mz-copy:hover { color: var(--fg); }
.mz-copy.is-done { color: var(--ok); }

/* ------------------------------ Dashboard ------------------------------ */
.mz-hello {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1.6rem;
  background: var(--fg); color: var(--bg);
  margin-bottom: 1.5rem;
}
.mz-hello::after {
  content: ""; position: absolute; inset-inline-end: -4rem; top: -4rem;
  width: 16rem; height: 16rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 210, 210, .35), transparent 65%);
  pointer-events: none;
}
.mz-hello h1 { color: var(--bg); font-size: 1.55rem; margin: 0 0 .35rem; }
.mz-hello p { color: #a4abc8; margin: 0 0 1.25rem; font-size: .92rem; }
.mz-hello__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.mz-hello .mz-btn--quiet { --b-edge: rgba(243, 240, 232, .3); color: var(--bg) !important; }
.mz-hello .mz-btn--quiet:hover { background: rgba(243, 240, 232, .08); border-color: var(--bg); }
.mz-wallet {
  position: relative; z-index: 1;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.2rem;
  background: var(--sun); color: var(--fg);
  border: 2px solid var(--bg);
}
.mz-wallet__label { font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.mz-wallet__value { font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.mz-wallet .mz-btn { --b-bg: var(--fg); --b-fg: var(--bg); align-self: flex-start; }

.mz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mz-stat {
  position: relative;
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--fg) !important;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.mz-stat:hover { border-color: var(--fg); transform: translateY(-3px); box-shadow: 0 5px 0 0 var(--fg); }
.mz-stat__icon { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; margin-bottom: .5rem; font-size: .95rem; background: var(--brand-soft); color: var(--brand-ink); }
.mz-stat--mint .mz-stat__icon { background: var(--mint-soft); color: var(--mint-ink); }
.mz-stat--sun .mz-stat__icon { background: var(--sun-soft); color: #8a5a00; }
.mz-stat--danger .mz-stat__icon { background: var(--danger-soft); color: var(--danger-ink); }
.mz-stat__num { font-size: 1.85rem; font-weight: 800; line-height: 1.2; font-feature-settings: "tnum"; }
.mz-stat__label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.mz-stat__note { font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.mz-stat__note strong { color: var(--danger-ink); }
.mz-stat__go { position: absolute; inset-inline-end: 1rem; top: 1.1rem; color: var(--muted); font-size: .8rem; transition: transform .2s; }
.mz-stat:hover .mz-stat__go { transform: translateX(-3px); color: var(--fg); }

.mz-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.75rem; }
.mz-quick__item {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
  padding: .95rem .5rem .8rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line);
  color: var(--fg) !important; font-size: .8rem; font-weight: 600; line-height: 1.5;
  transition: background .15s, border-color .15s;
}
.mz-quick__item:hover { background: var(--surface); border-style: solid; border-color: var(--fg); }
.mz-quick__item i { width: 2.4rem; height: 2.4rem; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); font-size: .9rem; }

.mz-due {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  border-radius: var(--radius); border: 2px solid var(--danger);
  background: var(--danger-soft);
}
.mz-due__icon { width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center; background: var(--danger); color: #fff; flex: none; }
.mz-due__text { flex: 1 1 16rem; font-size: .9rem; line-height: 1.8; }
.mz-due__text strong { display: block; font-size: 1rem; }

.mz-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.mz-dash > .is-wide { grid-column: 1 / -1; }
.mz-panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mz-panel__head { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.2rem; border-bottom: 1.5px dashed var(--line); }
.mz-panel__head h3 { margin: 0; font-size: .98rem; flex: 1; display: flex; align-items: center; gap: .55rem; }
.mz-panel__head h3 i { width: 1.9rem; height: 1.9rem; border-radius: .6rem; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; }
.mz-panel__head .badge { background: var(--sun); color: var(--fg); }
.mz-panel__head .btn { min-height: 2rem; padding: .1rem .85rem; font-size: .78rem; box-shadow: 0 2px 0 0 var(--edge); }
.mz-panel__body { padding: 1rem 1.2rem; font-size: .9rem; }
.mz-panel__body > :last-child { margin-bottom: 0; }
.mz-panel .list-group { border-radius: 0; }
.mz-panel .list-group-item { border-inline: 0; border-color: var(--line-soft); border-style: dashed; padding: .75rem 1.2rem; font-size: .88rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mz-panel .list-group-item:first-child { border-top: 0; }
.mz-panel .list-group-item:last-child { border-bottom: 0; }
.mz-panel .list-group-item .badge, .mz-panel .list-group-item .label { margin-inline-start: auto; }
.mz-panel .list-group-item .text-domain, .mz-panel .list-group-item small { color: var(--muted); }
.mz-panel__foot { padding: .75rem 1.2rem; border-top: 1.5px dashed var(--line); background: var(--surface-3); font-size: .86rem; }
.mz-panel__foot:empty { display: none; }
.mz-panel__foot .btn { min-height: 2.25rem; font-size: .8rem; }
.mz-panel--red .mz-panel__head h3 i { background: var(--danger-soft); color: var(--danger-ink); }
.mz-panel--gold .mz-panel__head h3 i, .mz-panel--orange .mz-panel__head h3 i { background: var(--sun-soft); color: #8a5a00; }
.mz-panel--blue .mz-panel__head h3 i { background: var(--brand-soft); color: var(--brand-ink); }
.mz-panel--green .mz-panel__head h3 i, .mz-panel--emerald .mz-panel__head h3 i { background: var(--ok-soft); color: var(--ok-ink); }
.mz-panel--purple .mz-panel__head h3 i, .mz-panel--teal .mz-panel__head h3 i, .mz-panel--pomegranate .mz-panel__head h3 i, .mz-panel--midnight-blue .mz-panel__head h3 i, .mz-panel--asbestos .mz-panel__head h3 i, .mz-panel--silver .mz-panel__head h3 i { background: var(--mint-soft); color: var(--mint-ink); }
.mz-panel .div-service-item, .mz-panel .div-service-status { display: flex; align-items: center; gap: .6rem; }
.mz-panel .div-service-name { flex: 1; min-width: 0; }
.mz-panel .div-service-name .text-domain { display: block; font-size: .8rem; }
.mz-panel .div-service-buttons { display: flex; gap: .3rem; flex-wrap: wrap; }
.mz-panel .div-service-buttons .btn { min-height: 1.9rem; padding: .05rem .7rem; font-size: .74rem; box-shadow: 0 2px 0 0 var(--edge); }
.mz-panel .div-service-buttons .btn-view-details { display: inline-flex; }
.mz-panel .home-domain-search .input-group { flex-wrap: nowrap; }
.mz-panel input[type="text"], .mz-panel .form-control { min-height: 2.6rem; }
.mz-addons > div { margin-bottom: 1.25rem; }

/* ------------------------------ List pages ------------------------------ */
.mz-listbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.mz-listbar__search { position: relative; flex: 1 1 15rem; max-width: 24rem; }
.mz-listbar__search i { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .82rem; pointer-events: none; }
.mz-listbar__search input { width: 100%; height: 2.7rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 2.6rem 0 1rem; font-size: .88rem; color: var(--fg); }
.mz-listbar__search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(63, 138, 255, .25); background: #fff; }
.mz .mz-listbar__sort { width: auto; flex: 0 0 auto; min-width: 11rem; height: 2.7rem; border-radius: 999px; border: 1.5px solid var(--line); background-color: var(--surface); padding: 0 1rem 0 2.2rem; font-size: .84rem; color: var(--fg); }
.mz-listbar__end { margin-inline-start: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.mz-filters { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem .05rem .55rem; margin-bottom: .5rem; scrollbar-width: thin; }
.mz-filter {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .95rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg);
  font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mz-filter:hover { border-color: var(--fg); }
.mz-filter.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mz-filter__n { min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: .7rem; font-weight: 800; text-align: center; line-height: 1.6; }
.mz-filter.is-active .mz-filter__n { background: var(--sun); }

.mz-list { display: grid; gap: .65rem; }
.mz-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 1rem;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg) !important;
  transition: border-color .18s, box-shadow .18s var(--ease), transform .18s var(--ease);
}
.mz-row:hover { border-color: var(--fg); box-shadow: 0 4px 0 0 var(--fg); transform: translateY(-2px); }
.mz-row[hidden] { display: none; }
.mz-row--check { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.mz-row__icon { width: 2.9rem; height: 2.9rem; border-radius: .95rem; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.05rem; flex: none; }
.mz-row__icon img { width: 1.6rem; height: 1.6rem; }
.mz-row__main { min-width: 0; }
.mz-row__title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 800; font-size: .98rem; line-height: 1.6; }
.mz-row__title a { color: var(--fg); }
.mz-row__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mz-row__sub { color: var(--muted); font-size: .84rem; line-height: 1.6; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-row__meta { display: flex; align-items: center; gap: 1.5rem; }
.mz-row__cell { display: flex; flex-direction: column; align-items: flex-end; text-align: left; line-height: 1.5; min-width: 6.5rem; }
.mz-row__cell small { color: var(--muted); font-size: .72rem; }
.mz-row__cell strong { font-size: .9rem; font-weight: 600; }
.mz-row__cell .mz-status { margin-top: .1rem; }
.mz-row__actions { position: relative; z-index: 2; display: flex; gap: .4rem; }
.mz-row__actions .btn { min-height: 2.1rem; padding: .1rem .9rem; font-size: .78rem; box-shadow: 0 2px 0 0 var(--edge); }
.mz-row__check { position: relative; z-index: 2; display: grid; place-items: center; width: 1.6rem; }
.mz-row.is-selected { border-color: var(--brand); background: #f5f9ff; }
.mz-row--danger .mz-row__icon { background: var(--danger-soft); color: var(--danger-ink); }
.mz-row--sun .mz-row__icon { background: var(--sun-soft); color: #8a5a00; }
.mz-row--muted .mz-row__icon { background: var(--surface-2); color: var(--muted); }
.mz-row--mint .mz-row__icon { background: var(--mint-soft); color: var(--mint-ink); }
.mz-row--ok .mz-row__icon { background: var(--ok-soft); color: var(--ok-ink); }
.mz-row__unread { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); display: inline-block; }
.mz-listfoot { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; margin-top: 1.1rem; color: var(--muted); font-size: .8rem; }
.mz-list-empty[hidden] { display: none; }
.mz-bulkbar {
  position: sticky; bottom: 1rem; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-top: 1rem; padding: .7rem .9rem;
  border-radius: 999px; border: 2px solid var(--edge);
  background: var(--fg); color: var(--bg);
  box-shadow: var(--shadow-pop);
}
.mz-bulkbar[hidden] { display: none; }
.mz-bulkbar__count { font-weight: 800; padding-inline: .6rem; font-size: .88rem; }
.mz-bulkbar .btn { min-height: 2.1rem; padding: .1rem .9rem; font-size: .8rem; box-shadow: none; border-color: rgba(243, 240, 232, .35); --b-bg: transparent; color: var(--bg) !important; }
.mz-bulkbar .btn:hover { background: rgba(243, 240, 232, .1); border-color: var(--bg); }
.mz-bulkbar .btn.mz-btn--sun { --b-bg: var(--sun); color: var(--fg) !important; border-color: var(--sun); }
.mz-bulkbar .dropdown-menu { color: var(--fg); }

/* ------------------------------ Service details ------------------------------ */
.mz-svc { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; margin-bottom: 1.25rem; }
.mz-svc__hero { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 1.5rem; background: var(--fg); color: var(--bg); display: flex; flex-direction: column; gap: 1.1rem; }
.mz-svc__hero::after { content: ""; position: absolute; inset-inline-end: -3rem; bottom: -5rem; width: 14rem; height: 14rem; border-radius: 50%; border: 28px solid rgba(63, 138, 255, .25); pointer-events: none; }
.mz-svc__top { display: flex; gap: 1rem; align-items: flex-start; }
.mz-svc__icon { width: 3.4rem; height: 3.4rem; border-radius: 1.05rem; display: grid; place-items: center; background: var(--sun); color: var(--fg); border: 2px solid var(--bg); font-size: 1.3rem; flex: none; }
.mz .mz-svc__name { color: var(--bg); margin: 0; font-size: 1.35rem; }
.mz-svc__group { color: #a4abc8; font-size: .86rem; }
.mz-svc__domain { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; padding: .15rem .75rem; border-radius: 999px; background: rgba(243, 240, 232, .1); color: var(--bg) !important; font-family: var(--mono); font-size: .82rem; }
.mz-svc__domain:hover { background: rgba(243, 240, 232, .18); }
.mz-svc__hero .mz-status { margin-inline-start: auto; }
.mz-svc__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.mz-svc__actions .btn-default, .mz-svc__actions .mz-btn--quiet { --b-bg: transparent; --b-edge: rgba(243, 240, 232, .35); color: var(--bg) !important; box-shadow: none; }
.mz-svc__actions .btn-default:hover { background: rgba(243, 240, 232, .1); border-color: var(--bg); }
.mz-svc__actions .btn-danger { --b-bg: transparent; --b-edge: rgba(255, 107, 87, .6); color: #ff9a8a !important; box-shadow: none; }
.mz-facts { padding: 1.2rem 1.3rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 1.5rem; }
.mz-facts h3 { font-size: .92rem; margin: 0 0 .6rem; }
.mz-facts__big { padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--sun-soft); margin-bottom: .6rem; }
.mz-facts__big small { display: block; color: #8a5a00; font-size: .74rem; font-weight: 600; }
.mz-facts__big strong { font-size: 1.15rem; }
.mz-block { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.mz-block__title { font-size: 1rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.mz-block__title i { color: var(--muted); font-size: .9rem; }
.mz-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .25rem 2rem; margin: 0; }
.mz .module-client-area { text-align: start; }
.mz .module-client-area .btn { margin: .2rem; }
.mz-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .75rem; border: 0; flex-wrap: nowrap; }
.mz-tabs .nav-link { white-space: nowrap; }
.mz-addon { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .7rem; }
.mz-addon__main { flex: 1 1 14rem; }
.mz-addon__main strong { display: block; }
.mz-addon__main small { color: var(--muted); }
.mz-dial { text-align: center; }
.mz-dial h4 { font-size: .9rem; }

/* ------------------------------ Tickets ------------------------------ */
.mz-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .9rem; }
.mz-dept {
  position: relative;
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.15rem;
  border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg) !important;
  transition: border-color .18s, box-shadow .18s var(--ease), transform .18s var(--ease);
}
.mz-dept:hover { border-color: var(--fg); box-shadow: 0 5px 0 0 var(--fg); transform: translateY(-3px); }
.mz-dept__icon { width: 2.8rem; height: 2.8rem; border-radius: .9rem; display: grid; place-items: center; flex: none; background: var(--mint-soft); color: var(--mint-ink); font-size: 1rem; }
.mz-dept:nth-child(3n+2) .mz-dept__icon { background: var(--brand-soft); color: var(--brand-ink); }
.mz-dept:nth-child(3n+3) .mz-dept__icon { background: var(--sun-soft); color: #8a5a00; }
.mz-dept strong { display: block; font-size: .98rem; margin-bottom: .15rem; }
.mz-dept p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.mz-dept__go { margin-inline-start: auto; color: var(--muted); align-self: center; }
.mz-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-size: .8rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.mz-steps span { display: inline-flex; align-items: center; gap: .4rem; }
.mz-steps b { width: 1.6rem; height: 1.6rem; border-radius: 999px; display: inline-grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: .75rem; }
.mz-steps .is-on { color: var(--fg); }
.mz-steps .is-on b { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mz-steps i { font-size: .6rem; opacity: .5; }

.mz-ticket-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.mz-ticket-head__main { flex: 1 1 16rem; min-width: 0; }
.mz-ticket-head__main h2 { font-size: 1.12rem; margin: 0; }
.mz-ticket-head__main small { color: var(--muted); font-family: var(--mono); }
.mz-ticket-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mz-thread { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.mz-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; max-width: 52rem; }
.mz-msg--staff { margin-inline-start: auto; grid-template-columns: minmax(0, 1fr) auto; }
.mz-msg--staff .mz-msg__avatar { order: 2; }
.mz-msg__avatar { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; border: 2px solid var(--edge); font-weight: 800; font-size: .9rem; }
.mz-msg--staff .mz-msg__avatar { background: var(--mint); color: var(--fg); }
.mz-msg__bubble { background: var(--surface); border: 1.5px solid var(--line); border-radius: 1.2rem; border-start-start-radius: .35rem; overflow: hidden; }
.mz-msg--staff .mz-msg__bubble { background: #eefaf9; border-color: rgba(6, 117, 122, .25); border-start-start-radius: 1.2rem; border-start-end-radius: .35rem; }
.mz-msg__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.mz-msg__meta strong { color: var(--fg); font-size: .86rem; }
.mz-msg__meta .requestor-badge { margin-inline-start: auto; float: none !important; background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 0 .6rem; font-size: .7rem; }
.mz-msg__body { padding: .9rem 1rem; font-size: .92rem; line-height: 1.95; overflow-wrap: anywhere; }
.mz-msg__body img { max-width: 100%; height: auto; }
.mz-msg__body pre { white-space: pre-wrap; background: var(--surface-2); padding: .8rem; border-radius: .6rem; }
.mz-msg__body blockquote { border-inline-start: 3px solid var(--line); padding-inline-start: .8rem; color: var(--muted); }
.mz-msg__files { padding: .7rem 1rem; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .8rem; }
.mz-msg__files a, .mz-msg__files span.mz-chip { color: var(--fg); }
.mz-msg__files a:hover { border-color: var(--fg); }
.mz-msg .rating, .mz-msg .rating-done { padding: .4rem 1rem .8rem; }
.mz .rating .star, .mz .rating-done .star { cursor: pointer; }
.mz-composer { background: var(--surface); border: 2px solid var(--edge); border-radius: 1.4rem; box-shadow: 0 6px 0 0 var(--edge); padding: 1.25rem; }
.mz-composer h3 { font-size: 1rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.mz .md-editor, .mz .editor-toolbar { border-color: var(--line-strong) !important; }
.mz .md-editor { border-radius: var(--radius-sm) !important; overflow: hidden; }
.mz .md-editor > .md-header { background: var(--surface-2); }
.mz .md-editor > textarea { background: #fffdf8 !important; }
.mz .markdown-editor-status { font-size: .75rem; color: var(--muted); }

/* ------------------------------ Invoice ------------------------------ */
.mz-invoice { max-width: 60rem; margin-inline: auto; }
.mz-invoice__paper { background: #fffdf8; border: 1.5px solid var(--line); border-radius: 1.5rem; overflow: hidden; }
.mz-invoice__head { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; justify-content: space-between; padding: 1.6rem 1.75rem; border-bottom: 2px dashed var(--line); }
.mz-invoice__head h2 { margin: 0; font-size: 1.35rem; }
.mz-invoice__head .mz-status { font-size: .82rem; padding: .25rem .9rem; }
.mz-invoice__logo img { max-height: 3rem; max-width: 12rem; }
.mz-invoice__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2rem; padding: 1.4rem 1.75rem; border-bottom: 1.5px dashed var(--line); }
.mz-invoice__grid h4 { font-size: .76rem; color: var(--muted); font-weight: 800; margin: 0 0 .35rem; }
.mz-invoice__grid address { font-size: .88rem; line-height: 1.9; margin: 0; font-style: normal; }
.mz-invoice__items { padding: .5rem 1.25rem 1rem; }
.mz-invoice__items .table td:last-child, .mz-invoice__items .table th:last-child { text-align: left; white-space: nowrap; }
.mz-invoice__totals { margin-inline-start: auto; max-width: 22rem; padding: 0 1.75rem 1.5rem; }
.mz-invoice__totals .mz-spec { font-size: .92rem; }
.mz-invoice__totals .is-total { justify-content: space-between; font-size: 1.1rem; padding-top: .6rem; margin-top: .4rem; border-top: 2px solid var(--fg); }
.mz-invoice__totals .is-total::after { display: none; }
.mz-invoice__totals .is-total > :last-child { font-weight: 800; }
.mz-paybox { display: grid; gap: 1rem; padding: 1.25rem; margin-bottom: 1.25rem; border-radius: 1.4rem; border: 2px solid var(--edge); background: var(--sun); box-shadow: 0 6px 0 0 var(--edge); }
.mz-paybox__row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.mz-paybox__amount small { display: block; font-size: .8rem; font-weight: 600; }
.mz-paybox__amount strong { font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.mz-paybox form { margin: 0; }
.mz-paybox .custom-select, .mz-paybox select { min-width: 13rem; border-color: var(--edge); }
.mz-paybox__button { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mz-paybox__button form, .mz-paybox__button > * { margin: 0; }
.mz-paybox__button input[type="submit"], .mz-paybox__button button, .mz-paybox__button .btn { min-height: 3rem; padding: .5rem 1.8rem; border-radius: 999px; border: 2px solid var(--edge); background: var(--fg); color: var(--bg) !important; font-weight: 800; box-shadow: 0 3px 0 0 rgba(13, 18, 38, .4); cursor: pointer; font-family: var(--font); }
.mz-invoice__tools { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin: 1rem 0 0; }

/* ------------------------------ Auth (login / register) ------------------------------ */
.mz-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--bg); }
.mz-auth__form { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem clamp(1.25rem, 5vw, 4.5rem); }
.mz-auth__card { width: 100%; max-width: 27rem; margin-inline: auto; }
.mz-auth__card--wide { max-width: 46rem; }
.mz-auth__logo { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 2rem; color: var(--fg) !important; font-weight: 800; font-size: 1.1rem; }
.mz-auth__logo img { height: 2.6rem; width: auto; border-radius: .8rem; }
.mz-auth h1 { font-size: 1.75rem; margin: 0 0 .4rem; }
.mz-auth__sub { color: var(--muted); margin: 0 0 1.6rem; font-size: .95rem; }
.mz-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--surface-2); margin-bottom: 1.5rem; }
.mz-auth__tab { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .8rem; border-radius: 999px; color: var(--muted) !important; font-weight: 600; font-size: .88rem; }
.mz-auth__tab.is-active { background: var(--surface); color: var(--fg) !important; box-shadow: 0 2px 0 0 var(--edge); border: 1.5px solid var(--edge); }
.mz-auth__field { margin-bottom: 1.05rem; }
.mz-auth__field label { display: block; margin-bottom: .35rem; }
.mz-auth__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.mz-auth__labelrow a { font-size: .8rem; font-weight: 600; }
.mz-auth__input { position: relative; }
.mz-auth__input > i { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.mz-auth__input .form-control { padding-left: 2.8rem; padding-right: 2.6rem; min-height: 3.1rem; }
.mz-auth__input .mz-auth__reveal { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mz-auth__input .mz-auth__reveal:hover { background: var(--surface-2); color: var(--fg); }
.mz-auth__remember { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 1.25rem; font-weight: 400 !important; cursor: pointer; }
.mz-auth__submit { width: 100%; min-height: 3.2rem !important; font-size: 1rem !important; }
.mz-auth__alt { margin-top: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }
.mz-auth__alt a { font-weight: 800; }
.mz-auth__linked { margin-top: 1.25rem; }
.mz-auth__visual {
  position: relative; overflow: hidden;
  margin: 1rem; border-radius: 2rem;
  background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background-image: radial-gradient(rgba(243, 240, 232, .12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.mz-auth__visual h2 { color: var(--bg); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.5; margin: 0 0 .8rem; }
.mz-auth__visual h2 .mz-marker { background: var(--sun); color: var(--fg); border-radius: .5rem; padding: 0 .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mz-auth__visual p { color: #a4abc8; max-width: 30rem; }
.mz-auth__points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mz-auth__points li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid rgba(243, 240, 232, .3); font-size: .85rem; }
.mz-auth__points i { color: var(--mint); }
.mz-auth__capsules { position: absolute; top: 2.5rem; inset-inline-end: 2.5rem; display: grid; gap: .7rem; }
.mz-auth__capsules span { display: block; height: 2.4rem; border-radius: 999px; border: 2px solid var(--bg); box-shadow: 0 4px 0 0 rgba(243, 240, 232, .5); }
.mz-auth__capsules span:nth-child(1) { width: 9rem; background: var(--brand); }
.mz-auth__capsules span:nth-child(2) { width: 13rem; background: var(--sun); margin-inline-start: 2.5rem; }
.mz-auth__capsules span:nth-child(3) { width: 7rem; background: var(--mint); }
.mz-auth .sms-loading { text-align: center; padding: 2rem; color: var(--muted); font-size: 1.4rem; }
.mz-auth.is-busy .sms-body { opacity: .6; pointer-events: none; }
.mz-auth .sms-step .form-group > label { display: block; margin-bottom: .35rem; }
.mz-auth .sms-step .btn-success, .mz-auth .sms-step button[type="submit"]:not(.cusp-resend):not(.cusp-reset):not(.cusp-secondary-action) { width: 100%; min-height: 3.1rem; --b-bg: var(--brand); --b-fg: #0d1226; }
.mz-auth .sms-step .cusp-resend, .mz-auth .sms-step .cusp-reset, .mz-auth .sms-step .cusp-secondary-action { width: 100%; margin-top: .5rem; --b-bg: transparent; box-shadow: none; border-color: var(--line); }
.mz-auth .sms-step .cusp-otp-input { letter-spacing: .4em; font-size: 1.2rem !important; text-align: center; font-family: var(--mono); direction: ltr; }
.mz-auth .sms-step .cusp-choice-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.mz-auth .sms-step .cusp-choice-input { position: absolute; opacity: 0; pointer-events: none; }
.mz-auth .sms-step label.cusp-choice { padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.mz-auth .sms-step .cusp-choice-input:checked + label.cusp-choice { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mz-auth .sms-step .cusp-form-actions, .mz-auth .sms-step .cusp-alt-channels { display: grid; gap: .5rem; }
.mz-register { padding: 2rem 0 3rem; }
.mz-register .card { border-radius: 1.4rem; }
.mz-register .card-title { display: flex; align-items: center; gap: .6rem; }
.mz-register .card-title::before { content: counter(mzstep); counter-increment: mzstep; width: 1.8rem; height: 1.8rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--fg); color: var(--bg); font-size: .8rem; }
.mz-register #frmCheckout { counter-reset: mzstep; }
.mz-register .prepend-icon { position: relative; }
.mz-register .prepend-icon .field-icon { position: absolute; inset-inline-start: 1rem; top: .95rem; z-index: 3; }
.mz .mz-register .prepend-icon .field { padding-right: 2.8rem !important; }

/* ------------------------------ Knowledgebase / misc pages ------------------------------ */
.mz .kb-search .form-control, .mz .kb-search .btn { min-height: 3.1rem; }
.mz .kb-category, .mz .kb-article-item { border-radius: var(--radius-sm); }
.mz .announcement-single, .mz .kb-article-content { line-height: 2; }
.mz .tiles .tile { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.mz .ticket-reply .posted-by { background: var(--surface-2); }
.mz .domain-checker-container, .mz .home-domain-search { background: var(--fg); border-radius: var(--radius); }
.mz .sub-heading span { background: var(--bg); }
.mz .primary-bg-color { background: var(--bg); }
.mz .panel-heading, .mz .panel-title { font-family: var(--font); }
.mz .card-accent-blue, .mz .card-accent-green, .mz .card-accent-red, .mz .card-accent-gold, .mz .card-accent-midnight-blue, .mz .card-accent-teal, .mz .card-accent-emerald, .mz .card-accent-orange, .mz .card-accent-purple, .mz .card-accent-pomegranate, .mz .card-accent-asbestos, .mz .card-accent-silver { border-top: 1.5px solid var(--line) !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1399.98px) {
  .mz-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .mz-layout.has-aside { grid-template-columns: minmax(0, 1fr); }
  .mz-layout__aside { position: static; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
  .mz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-svc { grid-template-columns: minmax(0, 1fr); }
  .mz-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  :root { --top-h: 3.9rem; }
  .mz-side {
    width: min(20rem, 86vw);
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    box-shadow: none;
  }
  .mz-side.is-open { transform: none; box-shadow: var(--shadow-pop); }
  .mz-side__close { display: inline-grid; }
  .mz-main { margin-inline-start: 0; }
  .mz-top { padding: 0 1rem; gap: .5rem; }
  .mz-top__menu, .mz-top__brand { display: inline-grid; }
  .mz-search { display: none; }
  .mz-account { padding: 0 .3rem; }
  .mz-account__name, .mz-account__caret { display: none; }
  .mz-content { padding: 1.25rem 1rem 6.5rem; }
  .mz-foot { padding: 1rem 1rem 6.5rem; }
  .mz .verification-banner, .mz .network-issues-notifications { margin-inline: 1rem; }
  .mz-tabbar {
    position: fixed; z-index: 1030;
    inset-inline: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: .35rem;
    border-radius: 1.4rem;
    background: var(--fg);
    box-shadow: 0 10px 30px -10px rgba(13, 18, 38, .6);
  }
  .mz-tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem 0; border-radius: 1rem; color: #a4abc8 !important; font-size: .68rem; font-weight: 600; }
  .mz-tabbar__item i { font-size: 1.05rem; }
  .mz-tabbar__item.is-active { color: var(--bg) !important; background: rgba(243, 240, 232, .1); }
  .mz-tabbar__item .mz-dot-count { top: .1rem; inset-inline-start: auto; inset-inline-end: 22%; border-color: var(--fg); }
  .mz-tabbar__item--cta { justify-self: center; width: 3.1rem; height: 3.1rem; border-radius: 999px; background: var(--sun); color: var(--fg) !important; border: 2px solid var(--bg); display: grid; place-items: center; padding: 0; margin-top: -1.4rem; box-shadow: 0 4px 0 0 var(--bg); }
  .mz-tabbar__item--cta i { font-size: 1.15rem; }
  .mz-btn-return-to-admin, .mz .btn-return-to-admin { bottom: 6.5rem; }
  .mz-hello { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
  .mz-guestbar__toggle { display: inline-grid; }
  .mz-guestbar__nav { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .mz-guestbar__nav.show { display: flex !important; }
  .mz-guestnav { flex-direction: column; }
  .mz-guestbar__end { margin-inline-start: 0; }
  .mz-auth { grid-template-columns: minmax(0, 1fr); }
  .mz-auth__visual { display: none; }
  .mz-row { grid-template-columns: auto minmax(0, 1fr); }
  .mz-row__meta { grid-column: 1 / -1; justify-content: space-between; gap: .75rem; padding-top: .7rem; border-top: 1px dashed var(--line); flex-wrap: wrap; }
  .mz-row__cell { align-items: flex-start; text-align: start; min-width: 0; }
  .mz-row--check { grid-template-columns: auto auto minmax(0, 1fr); }
  .mz-ctx { flex-direction: column; align-items: stretch; gap: .3rem; }
}
@media (max-width: 575.98px) {
  body.mz { font-size: 14.5px; }
  .mz-pagehead__title { font-size: 1.3rem; }
  .mz-stats { gap: .6rem; }
  .mz-stat { padding: .9rem; }
  .mz-stat__num { font-size: 1.5rem; }
  .mz-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .mz-hello__actions .mz-btn { flex: 1 1 auto; }
  .mz-listbar__search { max-width: none; flex-basis: 100%; }
  .mz-listbar__end { margin-inline-start: 0; }
  .mz-invoice__head, .mz-invoice__grid { padding: 1.1rem; }
  .mz-invoice__totals { padding: 0 1.1rem 1.1rem; }
  .mz-msg, .mz-msg--staff { grid-template-columns: minmax(0, 1fr); }
  .mz-msg__avatar { display: none; }
  .mz-bulkbar { border-radius: 1.2rem; }
  .mz-authcard__box { padding: 1.5rem 1.15rem; }
}

/* ------------------------------ Motion & print ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .mz *, .mz *::before, .mz *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media print {
  .mz-side, .mz-top, .mz-tabbar, .mz-foot, .mz-ctx, .mz-layout__aside, .mz-pagehead nav, .mz-paybox, .mz-invoice__tools, .verification-banner { display: none !important; }
  .mz-main { margin: 0 !important; }
  .mz-content { padding: 0 !important; max-width: none; }
  body.mz { background: #fff; }
  .mz-invoice__paper { border: 0; }
}

/* ---------- key/value rows (service details) ---------- */
.mz-kv--stack { display: block; }
.mz-kv--stack > div, .mz-kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1.5px dotted var(--line-strong); }
.mz-kv--stack > div:last-child { border-bottom: 0; }
.mz-kv--stack dt, .mz-kv__k { color: var(--muted); font-weight: 600; font-size: .84rem; flex: none; }
.mz-kv--stack dd, .mz-kv__v { margin: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; }
.mz-kv__v img { vertical-align: middle; }
.mz-kv__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.mz-addon__actions:empty { display: none; }
.mz-addon__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.mz .tab-content > .tab-pane#tabDownloads, .mz .tab-content > .tab-pane#tabAddons, .mz .tab-content > .tab-pane#tabChangepw { padding-top: .25rem; }

/* fixes */
.mz-content .network-issue-alert { margin-bottom: 1rem; border-radius: var(--radius); }
.mz #LoginViaSms { display: none !important; }

/* ---------- register page ---------- */
.mz-register { min-height: 100vh; background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.mz-register__wrap { max-width: 52rem; margin: 0 auto; padding: 0 1rem; }
.mz-register__head { position: relative; text-align: start; margin-bottom: 1.75rem; }
.mz-register__head .mz-auth__logo { margin-bottom: 1.4rem; }
.mz-register__head h1 { font-size: 1.75rem; margin: 0 0 .35rem; }
.mz-register__head p { color: var(--muted); margin: 0; }
.mz-register__login { position: absolute; top: .3rem; inset-inline-end: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .85rem; color: var(--fg) !important; background: var(--surface); }
.mz-register__login:hover { border-color: var(--fg); }
.mz-register .card { background: var(--surface); }
.mz-register__tos { margin: 1rem 0; }
.mz-register__tos .form-check { display: inline-flex; gap: .5rem; align-items: center; padding: 0; }
.mz-register__tos .form-check-input { position: static; margin: 0; }
.mz-register__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: 1.4rem; background: var(--fg); color: var(--bg); margin-top: 1rem; }
.mz-register__submit a { color: var(--sun) !important; font-weight: 800; }
.mz-register__submit .btn { --b-edge: var(--bg); }
@media (max-width: 575px) { .mz-register__login { position: static; margin-top: 1rem; } .mz-register__submit .btn { width: 100%; } }

/* ---------- ticket reply rating (stars fill from the right) ---------- */
.mz .rating, .mz .rating-done { display: inline-flex; direction: ltr; gap: .2rem; font-size: 1.15rem; line-height: 1; }
.mz .rating span.star, .mz .rating-done span.star { font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 400; font-style: normal; display: inline-block; }
.mz .rating span.star::before, .mz .rating-done span.star::before { content: "\f005"; color: var(--line-strong); }
.mz .rating span.star:hover::before, .mz .rating span.star:hover ~ span.star::before,
.mz .rating-done span.star.active::before { font-weight: 900; color: var(--sun); -webkit-text-stroke: 1px #c78a00; }
.mz .rating-done { flex-wrap: wrap; align-items: center; }
.mz .rating-done .rated { direction: rtl; font-size: .78rem; color: var(--muted); margin-inline-start: .5rem; font-family: var(--font); }
.mz .rating::after { content: "به این پاسخ امتیاز بدهید"; direction: rtl; font-family: var(--font); font-size: .78rem; color: var(--muted); margin-left: .6rem; align-self: center; order: 99; }
.mz .editor-toolbar button, .mz .md-editor .btn-toolbar .btn { box-shadow: none !important; border-width: 1px !important; border-color: transparent !important; background: transparent !important; min-height: 0 !important; padding: .3rem .55rem !important; border-radius: .6rem !important; }
.mz .md-editor .btn-toolbar .btn:hover { background: var(--surface) !important; border-color: var(--line-strong) !important; }
.mz .input-group > .input-group-append > .btn, .mz .input-group > .input-group-prepend > .btn { box-shadow: none; }
