@font-face {
  font-family: Vazirmatn;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Vazirmatn.woff2) format('woff2');
}

:root {
  color-scheme: light;
  /* Palette: the dashboard's green, the logo's orange-red as the single warm accent, near-black ink, warm off-white */
  --bg: #f6f5f1;
  --card: #fff;
  --tx: #1d2824;
  --mu: #66726d;
  --ln: #e6e3da;
  --ac: #367860; /* the green of the Jupen logo */
  --ac2: #1f5a47;
  --hl: #de4f31; /* the orange of the VIRTUE logo: only for small accents */
  --soft: #eff0ea;
  --bd: #ccd2cb;
  --er: #ef4444;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--tx);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.wrap {
  max-width: 900px;
  margin: auto;
  padding: 16px;
}
body.cl .wrap {
  max-width: 680px;
}
body.cl .so {
  display: none;
}
.row.pc {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 12px;
}
.row.pc:hover {
  background: var(--soft);
}
.vf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--mu);
  font-size: 12px;
  margin: 30px 0 10px;
}
.vf img.jm {
  width: 18px;
  height: 18px;
}
.vf b {
  color: var(--tx);
}
.logo img.jm,
.jm {
  background: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo.jl,
body:not(.cl) .logo.jl {
  background: none;
  box-shadow: none;
  overflow: visible;
}
.sw2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sw2 span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ln);
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.logo svg {
  width: 24px;
  height: 24px;
}
.brand b {
  display: block;
  font-size: 16px;
}
.brand span {
  color: var(--mu);
  font-size: 12px;
}
nav,
.seg {
  display: flex;
  gap: 4px;
  background: var(--card);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--ln);
  overflow-x: auto;
}
header .brand {
  flex: 1 1 0;
  min-width: 110px;
}
header nav {
  flex-basis: 100%;
  order: 9;
  margin: 0;
}
header .btn.sm {
  flex: none;
}
.seg {
  margin-bottom: 12px;
  width: fit-content;
  max-width: 100%;
}
nav button,
.seg button {
  border: 0;
  background: none;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--mu);
  white-space: nowrap;
}
nav button.on,
.seg button.on {
  background: var(--soft);
  color: var(--tx);
  font-weight: 700;
}
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  color: #fff;
  font-weight: 700;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ac2) 27%, transparent);
}
.btn.ghost {
  background: #fff;
  color: var(--tx);
  font-weight: 500;
  border: 1px solid var(--bd);
}
.btn.ghost:hover {
  border-color: var(--hl);
  color: var(--hl);
}
header #lob {
  border: 1.5px solid var(--hl);
  color: var(--hl);
  font-weight: 700;
}
header #lob:hover {
  background: var(--hl);
  color: #fff;
}
/* Path back to the list: Support SMS and billing › center */
.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
}
.bc a {
  color: var(--ac2);
  cursor: pointer;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--bd);
}
.bc a:hover {
  border-color: var(--hl);
  color: var(--hl);
}
.bc i {
  color: var(--mu);
  font-style: normal;
}
.bc b {
  font-size: 15px;
}
/* The VIRTUE logo on the login page: a slow, quiet breathing and a soft glow, never more than that */
.logo.vm {
  overflow: visible;
}
.logo.vm .jm {
  animation: vbreathe 7s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes vbreathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 #e8643a00);
  }
  50% {
    transform: scale(1.06) rotate(3deg);
    filter: drop-shadow(0 3px 10px #e8643a66);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo.vm .jm {
    animation: none;
  }
}
.rep {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rep th,
.rep td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid var(--ln);
}
.rep th {
  color: var(--mu);
  font-weight: 500;
}
.rep tr.cl {
  cursor: pointer;
}
.rep tr.cl:hover {
  background: var(--soft);
}
.rep tr.sub td {
  background: var(--soft);
  padding-inline-start: 22px;
  font-size: 12px;
}
.rep .n {
  font-variant-numeric: tabular-nums;
}
.btn.ghost:hover {
  box-shadow: none;
}
.btn.red {
  background: #ef4444;
}
.btn.sm {
  padding: 4px 11px;
  font-size: 12px;
  border-radius: 9px;
}
.grid {
  display: grid;
  gap: 12px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--mu);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ln);
}
.row:last-child {
  border: 0;
}
.row .g {
  flex: 1;
  min-width: 0;
}
.row .g b {
  display: block;
}
.row .g small {
  color: var(--mu);
}
.chip {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--mu);
  white-space: nowrap;
}
.chip.ok {
  background: #36786020;
  color: #24634d;
}
.chip.er {
  background: #c8362b1c;
  color: #b3281e;
}
.chip.ac {
  background: color-mix(in srgb, var(--ac2) 14%, transparent);
  color: var(--ac2);
}
.chip.wa {
  background: #de4f3118;
  color: #b8401f;
}
.chip.t {
  cursor: pointer;
  border: 1px solid var(--ln);
  padding: 3px 11px;
  font-size: 12px;
}
.chip.t.on {
  background: var(--ac2);
  color: #fff;
  border-color: var(--ac2);
}
.ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
  font-weight: 700;
}
.ring span {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
}
input,
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: var(--soft);
  outline: 0;
  transition: 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 22%, transparent);
}
label {
  display: block;
  font-size: 12px;
  color: var(--mu);
  margin: 12px 0 4px;
}
.pc {
  cursor: pointer;
  transition: 0.2s;
}
.card.pc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #0000000f;
}
#modal {
  position: fixed;
  inset: 0;
  background: #0006;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 9;
  backdrop-filter: blur(3px);
}
#modal.on {
  display: flex;
}
.box {
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
}
.tg {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sw {
  position: relative;
  width: 40px;
  height: 23px;
  flex: none;
  margin: 0;
}
.sw input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}
.sw i {
  position: absolute;
  inset: 0;
  background: #d5dbe8;
  border-radius: 20px;
  transition: 0.2s;
}
.sw i::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.sw input:checked + i {
  background: var(--ac);
}
.sw input:checked + i::after {
  right: 20px;
}
.empty {
  text-align: center;
  color: var(--mu);
  padding: 22px;
}
.sms {
  background: var(--soft);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  margin-top: 6px;
  white-space: pre-line;
  font-size: 13px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.steps div {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--mu);
  border-top: 3px solid var(--ln);
  padding-top: 4px;
}
.steps .on {
  border-color: var(--ac2);
  color: var(--ac2);
  font-weight: 700;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
}
.tile {
  border: 1px solid var(--ln);
  background: var(--card);
  border-radius: 14px;
  padding: 11px 6px;
  cursor: pointer;
  text-align: center;
}
.tile.on {
  border-color: var(--ac2);
  background: color-mix(in srgb, var(--ac2) 8%, transparent);
  color: var(--ac2);
  font-weight: 700;
}
.num {
  display: flex;
  align-items: center;
  gap: 12px;
}
.num button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  background: var(--soft);
  font-size: 18px;
  cursor: pointer;
}
.num b {
  font-size: 20px;
  min-width: 30px;
  text-align: center;
}
.tb {
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.pl {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}
.er {
  color: var(--er);
  font-size: 12px;
}
.tm {
  font-weight: 700;
  font-size: 15px;
  min-width: 52px;
  color: var(--ac2);
}
details summary {
  cursor: pointer;
  color: var(--mu);
  margin-top: 10px;
}
@media (max-width: 560px) {
  nav {
    margin-inline-start: 0;
    width: 100%;
  }
}
#cf {
  position: fixed;
  inset: 0;
  background: #0007;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 20;
}
#cf.on {
  display: flex;
}
.seg {
  flex-wrap: wrap;
  overflow: visible;
}
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e3e7ee;
  color: #667085;
  font-size: 11px;
  margin-inline-start: 6px;
  cursor: help;
  vertical-align: middle;
  font-weight: 700;
  position: relative;
}
#tt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d2433;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 40;
  display: none;
  max-width: 90vw;
}
#tt.on {
  display: block;
}

/* Support panel: luxury emerald look (centers keep their own brand color) */
body:not(.cl) {
  background:
    radial-gradient(900px 300px at 85% -120px, #36786024, transparent 70%),
    radial-gradient(700px 260px at 5% -100px, #de4f3114, transparent 70%), var(--bg);
  background-repeat: no-repeat;
}
body:not(.cl) .btn:not(.ghost):not(.red) {
  background: linear-gradient(135deg, #4a9179 0%, #367860 55%, #285f4b 100%);
  box-shadow: 0 2px 8px #1f5a4730;
}
body:not(.cl) .btn:not(.ghost):not(.red):hover {
  box-shadow: 0 8px 20px #1f5a4745;
}
body:not(.cl) .logo.jl {
  background: none;
  box-shadow: none;
}
body:not(.cl) nav button.on,
body:not(.cl) .seg button.on {
  background: #e8f1ed;
  color: #1f5a47;
  box-shadow: inset 0 -2px 0 var(--hl);
}

/* Tooltip: one floating element placed beside the hovered option (see boot.js) */
#tip {
  position: fixed;
  z-index: 60;
  max-width: 240px;
  background: #1d2433;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  padding: 6px 10px;
  border-radius: 9px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  text-align: right;
}
#tip.on {
  opacity: 1;
}
/* An empty tab bar (login screen) must not leave an empty bordered box */
nav:empty {
  display: none;
}

/* Label / value rows (Amoot test result) */
.kv {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ln);
  font-size: 13px;
}
.kv span:first-child {
  color: var(--mu);
}
.kv b {
  font-weight: 600;
}

/* SMS and billing rows: name and status on one side, the three numbers on the other */
.fr {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.fn {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.fn span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--mu);
  line-height: 1.4;
}
.fn b {
  font-size: 14px;
  color: var(--tx);
}
.fn b.er {
  color: var(--er);
}
