/* ==========================================================================
   WebPouyan client area — page components (pw-*), shared by the redesigned pages.
   Tokens come from pw-shell.css (:root --pw-*).
   ========================================================================== */
[data-grp="inv"] { --g: #c11539; --g-soft: #fdecef; }
[data-grp="tic"] { --g: #7457e8; --g-soft: #f1edfd; }
[data-grp="msg"] { --g: #c2740c; --g-soft: #fdf3e2; }

.pw-page { color: var(--pw-ink); }
.pw-page h1, .pw-page h2, .pw-page h3 { color: var(--pw-ink); margin: 0; }
.pw-page a { text-decoration: none; }
.pw-page .pw-svg { width: 18px; height: 18px; }

/* buttons */
.pw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 44px; padding: 0 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--pw-line); background: var(--pw-card); color: var(--pw-ink) !important;
  font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.pw-btn:hover { background: var(--pw-soft); border-color: #d0d5dd; }
.pw-btn:active { transform: scale(.97); }
.pw-btn-primary { background: var(--pw-accent); border-color: var(--pw-accent); color: #fff !important; box-shadow: 0 10px 22px -12px var(--pw-accent); }
.pw-btn-primary:hover { background: #a8102f; border-color: #a8102f; }
.pw-btn-bad { background: var(--pw-bad); border-color: var(--pw-bad); color: #fff !important; }
.pw-btn-bad:hover { background: #b42318; border-color: #b42318; }
.pw-btn-sm { height: 36px; padding: 0 12px; border-radius: 11px; font-size: 12.5px; }
.pw-btn-sm .pw-svg { width: 16px; height: 16px; }
.pw-icbtn {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pw-line); background: var(--pw-card); color: var(--pw-ink2) !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pw-icbtn .pw-svg { width: 17px; height: 17px; }
.pw-icbtn:hover { background: var(--pw-soft); color: var(--pw-ink) !important; }
.pw-icbtn-main { background: var(--pw-ink); border-color: var(--pw-ink); color: #fff !important; }
.pw-icbtn-main:hover { background: #2b3445; color: #fff !important; }
.pw-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--pw-accent) !important; white-space: nowrap; }
.pw-link .pw-svg { width: 15px; height: 15px; transition: transform .2s ease; }
.pw-link:hover .pw-svg { transform: translateX(-3px); }

/* pills */
.pw-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--pw-soft); color: var(--pw-ink2);
}
.pw-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pw-pill.is-ok { background: #e7f6f0; color: #0b7a5d; }
.pw-pill.is-bad { background: var(--pw-bad-soft); color: var(--pw-bad); }
.pw-pill.is-warn { background: #fdf3e2; color: #b26406; }
.pw-pill.is-info { background: #ecf2fd; color: #2459c7; }
.pw-pill.is-muted { background: var(--pw-soft); color: var(--pw-ink3); }
.pw-pill span, .pw-pill font { color: inherit !important; }

/* cards */
.pw-card {
  background: var(--pw-card); border: 1px solid var(--pw-line); border-radius: 22px; padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 12px 32px -24px rgba(16, 24, 40, .18);
}
.pw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pw-card-ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pw-card-ttl h2 { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.pw-card-ttl small { display: block; font-size: 12px; color: var(--pw-ink3); margin-top: 2px; }
.pw-card-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); }
.pw-card-ic .pw-svg { width: 21px; height: 21px; }

/* list rows */
.pw-list { display: flex; flex-direction: column; gap: 6px; transition: opacity .2s ease; }
.pw-list.is-busy { opacity: .5; pointer-events: none; }
.pw-row {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 10px; border-radius: 16px;
  border: 1px solid transparent; background: var(--pw-soft);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pw-row:hover { background: #f1f3f6; }
.pw-row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit !important; }
.pw-row-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); }
.pw-row-ic .pw-svg { width: 20px; height: 20px; }
.pw-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.pw-row-main b { font-size: 13.5px; font-weight: 700; color: var(--pw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-row-main small { font-size: 12px; color: var(--pw-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1em; }
.pw-row-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.pw-row-act {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--pw-ink3) !important; opacity: 0; transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.pw-row-act .pw-svg { width: 16px; height: 16px; }
.pw-row:hover .pw-row-act { opacity: 1; }
.pw-row-act:hover { background: var(--pw-bad-soft); color: var(--pw-bad) !important; }
.pw-amount { font-style: normal; font-size: 13px; font-weight: 800; color: var(--pw-ink); white-space: nowrap; }
.pw-ip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  border: 1px dashed #d0d5dd; background: var(--pw-card); color: var(--pw-ink2); font: inherit; font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-width: 200px; transition: border-color .2s ease, color .2s ease;
}
.pw-ip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-ip .pw-svg { width: 14px; height: 14px; flex: none; color: var(--pw-ink3); }
.pw-ip:hover { border-color: var(--pw-ink3); color: var(--pw-ink); }
.pw-ip.is-copied { border-style: solid; border-color: #0d9b76; color: #0b7a5d; }
.pw-ip.is-copied .pw-svg { color: #0d9b76; }
.pw-more { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; font-size: 12.5px; font-weight: 700; color: var(--pw-accent) !important; }
.pw-more .pw-svg { width: 15px; height: 15px; }

/* skeleton */
.pw-skel { pointer-events: none; }
.pw-skel i { flex: none; width: 42px; height: 42px; border-radius: 13px; }
.pw-skel span { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pw-skel b { height: 12px; width: 55%; border-radius: 6px; }
.pw-skel small { height: 10px; width: 35%; border-radius: 6px; }
.pw-skel i, .pw-skel b, .pw-skel small { display: block; background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 50%, #eceef2 75%); background-size: 200% 100%; animation: pwShimmer 1.3s linear infinite; }
@keyframes pwShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* empty state */
.pw-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; text-align: center; border-radius: 16px; background: var(--pw-soft); }
.pw-empty .pw-svg { width: 30px; height: 30px; color: var(--pw-ink3); margin-bottom: 4px; }
.pw-empty b { font-size: 14px; }
.pw-empty span { font-size: 12.5px; color: var(--pw-ink3); }
.pw-empty.is-ok .pw-svg { color: #0d9b76; }
.pw-empty.is-bad .pw-svg { color: var(--pw-bad); }
.pw-empty .pw-btn { margin-top: 6px; }

/* segmented filter */
.pw-seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: var(--pw-soft); overflow-x: auto; scrollbar-width: none; }
.pw-seg::-webkit-scrollbar { display: none; }
.pw-seg button {
  flex: 1 0 auto; height: 34px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; cursor: pointer;
  color: var(--pw-ink2); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pw-seg button:hover { color: var(--pw-ink); }
.pw-seg button.is-on { background: var(--pw-card); color: var(--pw-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.pw-seg button:focus { outline: none; }

/* pager */
.pw-pager { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.pw-pager:empty { display: none; }
.pw-pager button {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--pw-line); background: var(--pw-card); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--pw-ink2);
}
.pw-pager button.is-on { background: var(--pw-ink); border-color: var(--pw-ink); color: #fff; }

/* alert */
.pw-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; margin-bottom: 14px; }
.pw-alert-bad { background: var(--pw-bad-soft); border: 1px solid #fbd0cc; }
.pw-alert-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--pw-bad); color: #fff; box-shadow: 0 10px 20px -10px var(--pw-bad); }
.pw-alert-ic .pw-svg { width: 22px; height: 22px; }
.pw-alert-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.6; }
.pw-alert-tx b { font-size: 14px; color: #912018; }
.pw-alert-tx span { font-size: 12.5px; color: #b42318; }

/* ============================ DASHBOARD ============================ */
.pw-dash { max-width: none; margin: 0; padding: 4px 6px 40px; }
.pw-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin: 6px 0 14px; }
.pw-hero-main {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px;
  background: var(--pw-card); border: 1px solid var(--pw-line);
}
.pw-hero-main::after {
  content: ""; position: absolute; left: -40px; top: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 21, 57, .09), rgba(193, 21, 57, 0) 70%); pointer-events: none;
}
.pw-hero-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-hero-date { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pw-ink3); font-weight: 600; }
.pw-hero-date .pw-svg { width: 14px; height: 14px; }
.pw-hero h1 { font-size: 17px; font-weight: 800; margin: 0; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-hero-act { display: flex; gap: 8px; position: relative; z-index: 1; flex: none; }
.pw-hero-act .pw-btn { height: 40px; padding: 0 14px; font-size: 13px; }
.pw-credit {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 300px;
  padding: 12px 14px 12px 12px; border-radius: 20px; color: #fff !important;
  background: linear-gradient(135deg, #c11539 0%, #8f0f2b 100%);
  box-shadow: 0 18px 34px -22px rgba(193, 21, 57, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pw-credit:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -22px rgba(193, 21, 57, .9); }
.pw-credit::after { content: ""; position: absolute; width: 130px; height: 130px; left: 40px; top: -80px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.pw-credit-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); }
.pw-credit-ic .pw-svg { width: 21px; height: 21px; }
.pw-credit-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pw-credit-tx small { font-size: 11.5px; opacity: .85; font-weight: 600; }
.pw-credit-tx b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.pw-credit-tx b em { font-style: normal; font-size: 11.5px; font-weight: 600; opacity: .85; }
.pw-credit-cta {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 11px;
  background: #fff; color: var(--pw-accent); font-size: 12.5px; font-weight: 800; position: relative; z-index: 1;
}
.pw-credit-cta .pw-svg { width: 15px; height: 15px; }
.pw-notices > .row { margin-bottom: 0; }
.pw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.pw-stat {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px;
  background: var(--pw-card); border: 1px solid var(--pw-line); color: var(--pw-ink) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pw-stat:hover { background: #fbfbfc; box-shadow: 0 14px 30px -26px rgba(16, 24, 40, .45); }
.pw-stat-ic { flex: none; width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); transition: background-color .2s ease, color .2s ease; }
.pw-stat-ic .pw-svg { width: 24px; height: 24px; }
.pw-stat-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.pw-stat-tx small { font-size: 12px; color: var(--pw-ink3); font-weight: 600; }
.pw-stat-tx b { font-size: 24px; font-weight: 800; margin-top: 4px; }
.pw-stat-go { width: 18px !important; height: 18px !important; color: var(--pw-ink3); transition: transform .2s ease, color .2s ease; }
.pw-stat:hover .pw-stat-go { transform: translateX(-3px); color: var(--g); }
.pw-stat.is-alert::after { content: ""; position: absolute; top: 14px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px var(--g-soft); }
.pw-dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pw-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pw-menu-sm { width: 220px; }
.pw-tk .pw-row-main b { white-space: nowrap; }

@media (max-width: 1280px) {
  .pw-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .pw-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1101px) {
  .pw-dash { padding: 0 2px 24px; }
  .pw-hero { grid-template-columns: minmax(0, 1fr); }
  .pw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pw-side { display: flex; }
}
@media (max-width: 640px) {
  .pw-hero { gap: 10px; }
  .pw-hero-main { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border-radius: 18px; }
  .pw-hero h1 { font-size: 16px; white-space: normal; }
  .pw-hero-act .pw-btn { flex: 1; height: 40px; padding: 0 10px; }
  .pw-credit { min-width: 0; padding: 10px 12px 10px 10px; border-radius: 18px; }
  .pw-credit-ic { width: 38px; height: 38px; border-radius: 12px; }
  .pw-credit-tx b { font-size: 17px; }
  .pw-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; }
  .pw-stat-go { position: absolute; top: 16px; left: 14px; }
  .pw-stat.is-alert::after { top: auto; bottom: 16px; }
  .pw-stat-tx b { font-size: 22px; }
  .pw-card { padding: 14px; border-radius: 20px; }
  .pw-row { flex-wrap: wrap; }
  .pw-svc .pw-row-link { flex: 1 0 calc(100% - 10px); }
  .pw-svc .pw-ip { order: 3; }
  .pw-svc .pw-pill { order: 4; }
  .pw-svc .pw-row-acts { order: 5; margin-inline-start: auto; }
  .pw-inv .pw-row-link { flex: 1 1 100%; }
  .pw-inv .pw-row-acts { flex: 1; justify-content: flex-end; }
  .pw-row-act { opacity: 1; }
  .pw-alert { flex-wrap: wrap; align-items: flex-start; }
  .pw-alert-tx { flex: 1 1 calc(100% - 58px); }
  .pw-alert .pw-btn { flex: 1 1 100%; }
  .pw-tk .pw-row-link { flex-wrap: wrap; row-gap: 4px; }
  .pw-tk .pw-row-main { flex: 1 1 calc(100% - 54px); }
  .pw-tk .pw-tk-st { margin-inline-start: 54px; }
  .pw-tk .pw-row-main b { white-space: normal; }
}

/* ============================ MODALS + FORMS ============================ */
.pw-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pw-modal[hidden] { display: none; }
.pw-modal-bg { position: absolute; inset: 0; background: rgba(12, 17, 28, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s ease; }
.pw-modal.is-open .pw-modal-bg { opacity: 1; }
.pw-modal-box {
  position: relative; width: min(600px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: var(--pw-card); border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(16, 24, 40, .04);
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .26s ease, transform .32s var(--pw-ease);
}
.pw-modal-sm { width: min(480px, 100%); }
.pw-modal.is-open .pw-modal-box { opacity: 1; transform: none; }
.pw-modal-grab { display: none; }
.pw-modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--pw-line); }
.pw-modal-head > div { flex: 1; min-width: 0; line-height: 1.5; }
.pw-modal-head h3 { font-size: 16.5px; font-weight: 800; margin: 0; color: var(--pw-ink); }
.pw-modal-head small { font-size: 12px; color: var(--pw-ink3); }
.pw-modal-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.pw-modal-body[hidden] { display: none; }
.pw-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pw-line); background: #fcfcfd; }
.pw-modal-foot[hidden] { display: none; }
.pw-modal-foot .pw-btn-primary { min-width: 160px; }

.pw-field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.pw-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--pw-ink2); }
.pw-lbl em { font-style: normal; font-weight: 600; color: var(--pw-ink3); font-size: 11.5px; }
.pw-input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--pw-line); background: #fcfcfd;
  font: inherit; font-size: 14px; color: var(--pw-ink); outline: none; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea.pw-input { min-height: 130px; line-height: 1.8; }
.pw-input::placeholder { color: #b0b7c3; }
.pw-input:focus { border-color: var(--pw-accent); background: #fff; box-shadow: 0 0 0 4px rgba(193, 21, 57, .1); }
.pw-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pw-select { position: relative; display: block; }
.pw-select select {
  width: 100%; height: 46px; padding: 0 14px 0 38px; border-radius: 14px; border: 1px solid var(--pw-line); background: #fcfcfd;
  font: inherit; font-size: 13.5px; color: var(--pw-ink); appearance: none; -webkit-appearance: none; outline: none; cursor: pointer;
}
.pw-select select:focus { border-color: var(--pw-accent); box-shadow: 0 0 0 4px rgba(193, 21, 57, .1); }
.pw-select-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px !important; height: 18px !important; color: var(--pw-ink3); pointer-events: none; }
.pw-seg-in { margin: 0; height: 46px; align-items: stretch; }
.pw-seg-in button { height: auto; }

.pw-dept { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pw-dept-it {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--pw-line); background: var(--pw-card); color: var(--pw-ink); font: inherit; font-size: 13px; font-weight: 700; text-align: start;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pw-dept-it:hover { border-color: #d0d5dd; }
.pw-dept-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); transition: background-color .2s ease, color .2s ease; }
.pw-dept-ic .pw-svg { width: 18px; height: 18px; }
.pw-dept-it.is-on { border-color: var(--g); background: var(--g-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 15%, transparent); }
.pw-dept-it.is-on .pw-dept-ic { background: var(--g); color: #fff; }
.pw-dept-skel { height: 58px; border-radius: 16px; background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 50%, #eceef2 75%); background-size: 200% 100%; animation: pwShimmer 1.3s linear infinite; }

.pw-file {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed #d0d5dd; background: #fcfcfd; transition: border-color .2s ease, background-color .2s ease;
}
.pw-file:hover { border-color: var(--pw-accent); background: var(--pw-accent-soft); }
.pw-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pw-file-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--pw-soft); color: var(--pw-ink2); }
.pw-file-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.pw-file-tx b { font-size: 13px; }
.pw-file-tx small { font-size: 12px; color: var(--pw-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-form-err { padding: 10px 14px; border-radius: 14px; background: var(--pw-bad-soft); color: #b42318; font-size: 13px; font-weight: 600; line-height: 1.7; }
.pw-form-err[hidden] { display: none; }
.pw-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.pw-btn.is-busy span { opacity: .0; }
.pw-btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: pwSpin .7s linear infinite;
}
.pw-btn:not(.pw-btn-primary).is-busy::after { border-color: rgba(16, 24, 40, .2); border-top-color: var(--pw-ink); }
.pw-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
@keyframes pwSpin { to { transform: rotate(360deg); } }

.pw-modal-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 24px 26px; }
.pw-modal-done[hidden] { display: none; }
.pw-done-ic { width: 72px; height: 72px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: #e7f6f0; color: #0d9b76; animation: pwPop .35s var(--pw-ease) both; }
.pw-done-ic .pw-svg { width: 36px !important; height: 36px !important; }
.pw-modal-done h3 { font-size: 18px; font-weight: 800; margin: 8px 0 0; }
.pw-modal-done p { font-size: 13px; color: var(--pw-ink2); margin: 0; }
.pw-done-act { display: flex; gap: 10px; margin-top: 14px; }
.pw-row.is-new { animation: pwPop .4s var(--pw-ease) both; box-shadow: 0 0 0 1.5px #7457e8; }

/* add funds */
.pw-money { position: relative; display: block; }
.pw-money .pw-input { height: 64px; padding-left: 70px; font-size: 26px; font-weight: 800; letter-spacing: .5px; text-align: right; }
.pw-money em { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 700; color: var(--pw-ink3); }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-chips button {
  height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--pw-line); background: var(--pw-card); cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--pw-ink2); transition: all .2s ease;
}
.pw-chips button:hover { border-color: var(--pw-accent); color: var(--pw-accent); }
.pw-chips button.is-on { background: var(--pw-accent); border-color: var(--pw-accent); color: #fff; box-shadow: 0 8px 16px -10px var(--pw-accent); }
.pw-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #ecf2fd; color: #2459c7; font-size: 12.5px; line-height: 1.8; }
.pw-note .pw-svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

@media (max-width: 640px) {
  .pw-modal { align-items: flex-end; padding: 0; }
  .pw-modal-box, .pw-modal-sm { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; transform: translateY(100%); opacity: 1; transition: transform .36s cubic-bezier(.32, .72, 0, 1); }
  .pw-modal-grab { display: block; width: 42px; height: 5px; border-radius: 5px; background: #dfe3ea; margin: 8px auto 0; flex: none; }
  .pw-modal-head { padding: 10px 16px 12px; }
  .pw-modal-body { padding: 14px 16px; }
  .pw-modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pw-modal-foot .pw-btn { flex: 1; }
  .pw-modal-foot .pw-btn-primary { flex: 2; min-width: 0; }
  .pw-grid2 { grid-template-columns: minmax(0, 1fr); }
  .pw-dept { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================ ADD FUNDS: gateways ============================ */
.pw-lbl em:empty { display: none; }
.pw-gws { display: flex; flex-direction: column; gap: 8px; }
.pw-gw {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; cursor: pointer; text-align: start;
  border: 1.5px solid var(--pw-line); background: var(--pw-card); font: inherit; color: var(--pw-ink);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.pw-gw:hover { border-color: #d0d5dd; }
.pw-gw-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d0d5dd; position: relative; transition: border-color .2s ease; }
.pw-gw-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pw-accent); transform: scale(0); transition: transform .2s var(--pw-ease); }
.pw-gw-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.55; }
.pw-gw-tx b { font-size: 13.5px; }
.pw-gw-tx small { font-size: 11.5px; color: var(--pw-ink3); }
.pw-gw-tx small.is-warn { color: #b54708; }
.pw-gw-fee { flex: none; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--pw-soft); color: var(--pw-ink2); white-space: nowrap; }
.pw-gw-fee.is-up { background: #fef3f2; color: #b42318; }
.pw-gw-fee.is-down { background: #e7f6f0; color: #0d7a5f; }
.pw-gw.is-on { border-color: var(--pw-accent); background: var(--pw-accent-soft); box-shadow: 0 0 0 3px rgba(193, 21, 57, .1); }
.pw-gw.is-on .pw-gw-dot { border-color: var(--pw-accent); }
.pw-gw.is-on .pw-gw-dot::after { transform: scale(1); }
.pw-gw[disabled] { opacity: .55; cursor: not-allowed; background: #fafafa; }
.pw-sum { border-radius: 16px; background: #f8f9fb; border: 1px solid var(--pw-line); padding: 6px 14px; }
.pw-sum[hidden] { display: none; }
.pw-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--pw-ink2); }
.pw-sum div + div { border-top: 1px dashed #e4e7ec; }
.pw-sum b { color: var(--pw-ink); font-weight: 700; white-space: nowrap; }
.pw-sum .is-up b { color: #b42318; }
.pw-sum .is-down b { color: #0d7a5f; }
.pw-sum .is-total { font-size: 14px; color: var(--pw-ink); font-weight: 700; }
.pw-sum .is-total b { font-size: 16px; font-weight: 800; }

/* ============================ VPS PLAN WIZARD (pouyanvps, embedded) ============================ */
.pw-modal-plan { width: min(680px, 100%); }
#pvevps-app.pw-plan-host {
  padding: 0; background: transparent; border-radius: 0; font-family: inherit; font-size: 13.5px;
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}
#pvevps-app.pw-plan-host .pv-plan-body { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 12px; }
#pvevps-app.pw-plan-host .pv-plan-steps:empty, #pvevps-app.pw-plan-host .pv-plan-foot:empty { display: none; }
#pvevps-app.pw-plan-host .pv-plan-foot { background: #fcfcfd; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.pw-plan-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 46px 24px; color: var(--pw-ink2); font-size: 13.5px; line-height: 1.8; }
.pw-plan-msg[hidden] { display: none; }
.pw-plan-msg b { color: var(--pw-ink); font-size: 15px; }
.pw-spin { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid #f2d3da; border-top-color: var(--pw-accent); animation: pwSpin .8s linear infinite; }
.pw-toasts { position: fixed; z-index: 2147483100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.pw-toast { pointer-events: auto; padding: 11px 16px; border-radius: 14px; background: #101828; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.7; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); animation: pwPop .3s var(--pw-ease) both; transition: opacity .3s ease; }
.pw-toast.ok { background: #0d7a5f; }
.pw-toast.bad { background: #b42318; }
@media (max-width: 640px) {
  .pw-modal-plan { width: 100%; }
  .pw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
  .pw-chips::-webkit-scrollbar { display: none; }
  .pw-chips button { flex: none; }
  #pvevps-app.pw-plan-host .pv-plan-body { padding: 6px 14px 10px; }
  .pw-toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================ 1.3.0: requirement step, pay modal, confirm ============================ */
.pw-gwbox { gap: 9px; }
.pw-req { border-radius: 18px; border: 1px solid var(--pw-line); background: #fcfcfd; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: pwPop .25s var(--pw-ease) both; }
.pw-req[hidden] { display: none; }
.pw-req-h { display: flex; flex-direction: column; line-height: 1.6; }
.pw-req-h b { font-size: 13.5px; }
.pw-req-h small { font-size: 12px; color: var(--pw-ink3); }
.pw-req.is-warn { background: #fffaeb; border-color: #fedf89; }
.pw-req-txt { font-size: 13px; line-height: 1.9; color: #7a2e0e; white-space: pre-line; margin: 0; }
.pw-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--pw-ink); line-height: 1.7; }
.pw-check input { position: absolute; opacity: 0; pointer-events: none; }
.pw-check i { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #d0d5dd; background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all .2s ease; }
.pw-check i::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--pw-ease); }
.pw-check input:checked + i { background: var(--pw-accent); border-color: var(--pw-accent); }
.pw-check input:checked + i::after { transform: rotate(-45deg) scale(1); }
.pw-req.is-bad .pw-check i { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, .12); }
.pw-co { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; text-align: start; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.pw-co.is-on { border-color: var(--pw-accent); background: var(--pw-accent-soft); }
.pw-co.is-on .pw-gw-dot { border-color: var(--pw-accent); }
.pw-co.is-on .pw-gw-dot::after { transform: scale(1); }
.pw-co-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 11px; border: 1px dashed #d0d5dd; background: transparent; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--pw-ink2); cursor: pointer; }
.pw-co-add:hover { border-color: var(--pw-accent); color: var(--pw-accent); }
.pw-co-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pw-co-form .is-full { grid-column: 1 / -1; }
.pw-co-form .pw-input, .pw-co-form .pw-select select { min-height: 42px; height: auto; background: #fff; }
.pw-co-form textarea.pw-input { min-height: 70px; }
.pw-co-form .is-bad .pw-input, .pw-co-form .is-bad select { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, .1); }
.pw-lbl i.pw-star { font-style: normal; color: #f04438; }
.pw-inv-items { border-radius: 16px; background: #f8f9fb; border: 1px solid var(--pw-line); padding: 4px 14px; }
.pw-inv-items div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 12.5px; color: var(--pw-ink2); line-height: 1.7; }
.pw-inv-items div + div { border-top: 1px dashed #e4e7ec; }
.pw-inv-items span { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pw-inv-items b { flex: none; color: var(--pw-ink); font-weight: 700; white-space: nowrap; }
.pw-inv-items .is-more { justify-content: center; color: var(--pw-ink3); }
.pw-ask { text-align: center; align-items: center; padding: 28px 22px 8px; }
.pw-ask-ic { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--pw-bad-soft); color: #d92d20; }
.pw-ask-ic .pw-svg { width: 28px !important; height: 28px !important; }
.pw-ask h3 { font-size: 16.5px; font-weight: 800; margin: 6px 0 0; }
.pw-ask p { font-size: 13px; color: var(--pw-ink2); margin: 0; line-height: 1.8; }
.pw-btn-danger { background: #d92d20; border-color: #d92d20; color: #fff !important; }
.pw-btn-danger:hover { background: #b42318; border-color: #b42318; }
.pw-ip.is-copied { background: #e7f6f0; }
@media (max-width: 640px) {
  .pw-co-form { grid-template-columns: minmax(0, 1fr); }
}

/* ============================ 1.4.0 ============================ */
/* style.css has `a:hover { color: #c11539 !important }` — on red buttons / the red credit
   card that made the text vanish; these win by specificity (a.class:hover) */
a.pw-btn:hover, a.pw-icbtn:hover { color: var(--pw-ink) !important; }
a.pw-btn-primary:hover, a.pw-btn-bad:hover, a.pw-btn-danger:hover, a.pw-credit:hover { color: #fff !important; }
a.pw-credit:hover .pw-credit-cta { color: var(--pw-accent) !important; }
a.pw-stat:hover, a.pw-row-link:hover { color: var(--pw-ink) !important; }
a.pw-row-act:hover { color: var(--pw-bad) !important; }
a.pw-btn:hover, a.pw-credit:hover, a.pw-stat:hover, a.pw-row-link:hover, a.pw-more:hover { text-decoration: none !important; }
/* a scrolling flex column must not squeeze its children (the preset chips collapsed under
   the gateway list on phones once the requirement step opened) */
.pw-modal-body > * { flex-shrink: 0; }

/* invoices page */
.pw-hero-ic { width: 46px; height: 46px; border-radius: 15px; }
.pw-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button.pw-stat { font: inherit; text-align: start; width: 100%; cursor: pointer; }
.pw-stat-sub { display: block; font-style: normal; font-size: 11.5px; color: var(--pw-ink3); font-weight: 600; margin-top: 2px; min-height: 1em; }
.pw-search { position: relative; display: flex; align-items: center; margin: 0; width: min(280px, 46%); }
.pw-search .pw-svg { position: absolute; right: 12px; width: 17px; height: 17px; color: var(--pw-ink3); pointer-events: none; }
.pw-search input { width: 100%; height: 40px; padding: 0 38px 0 12px; border-radius: 12px; border: 1px solid var(--pw-line); background: #fcfcfd; font: inherit; font-size: 13px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pw-search input:focus { border-color: var(--pw-accent); box-shadow: 0 0 0 4px rgba(193, 21, 57, .1); background: #fff; }
.pw-pager em { font-style: normal; color: var(--pw-ink3); padding: 0 4px; align-self: center; }
.pw-invpage .pw-inv .pw-pill { flex: none; min-width: 92px; justify-content: center; }
@media (max-width: 640px) {
  .pw-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pw-stats-3 .pw-stat { padding: 12px; gap: 8px; }
  .pw-stats-3 .pw-stat-ic { width: 38px; height: 38px; border-radius: 12px; }
  .pw-stats-3 .pw-stat-tx small { font-size: 11px; }
  .pw-stats-3 .pw-stat-tx b { font-size: 19px; }
  .pw-stats-3 .pw-stat-sub { font-size: 10.5px; }
  .pw-invpage .pw-card-head { flex-wrap: wrap; }
  .pw-search { width: 100%; }
  .pw-hero-ic { display: none; }
  .pw-invpage .pw-inv .pw-pill { min-width: 0; order: 4; }
}
@media (max-width: 640px) {
  .pw-stats-3 .pw-stat.is-alert::after { top: 12px; bottom: auto; left: 12px; }
  .pw-stats-3 .pw-stat-go { display: none; }
  .pw-stats-3 .pw-stat-sub { white-space: normal; line-height: 1.5; }
  .pw-invpage .pw-inv { row-gap: 8px; }
  .pw-invpage .pw-inv .pw-row-link { flex: 1 1 100%; }
  .pw-invpage .pw-inv .pw-pill { order: 4; margin-inline-start: 54px; }
  .pw-invpage .pw-inv .pw-row-acts { order: 5; margin-inline-start: auto; }
}

/* ============================ 1.5.0: invoices ============================ */
.pw-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pw-inv-amt { flex: none; width: 150px; display: flex; flex-direction: column; line-height: 1.45; text-align: start; }
.pw-inv-amt small { font-size: 11px; color: var(--pw-ink3); font-weight: 600; }
.pw-inv-amt b { font-size: 13.5px; font-weight: 800; color: var(--pw-ink); white-space: nowrap; }
.pw-invpage .pw-inv .pw-row-link { flex: 1 1 auto; }
.pw-inv-items .is-up b { color: #b42318; }
.pw-req-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-co-doc { border-style: solid; border-color: #c7d7fe; background: #eef4ff; color: #2459c7; }
.pw-co-doc:hover { border-color: #2459c7; color: #2459c7; }
.pw-co-doc .pw-svg, .pw-co-add .pw-svg { width: 15px; height: 15px; }
.pw-vw-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pw-vw-meta div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: #f8f9fb; border: 1px solid var(--pw-line); line-height: 1.6; min-width: 0; }
.pw-vw-meta small { font-size: 11.5px; color: var(--pw-ink3); font-weight: 600; }
.pw-vw-meta b { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-vw-tx { display: flex; flex-direction: column; gap: 6px; }
.pw-vw-tx > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--pw-line); }
.pw-vw-tx > div span { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.pw-vw-tx b { font-size: 13px; }
.pw-vw-tx small { font-size: 11.5px; color: var(--pw-ink3); }
.pw-vw-tx em { font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; color: #0d7a5f; }
.pw-vw-tx em.is-down { color: #b42318; }
.pw-modal-head small .pw-pill { margin-top: 2px; }
@media (max-width: 1101px) {
  .pw-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pw-stats-4 .pw-stat { flex-direction: row; align-items: center; padding: 12px; gap: 10px; }
  .pw-stats-4 .pw-stat-ic { width: 38px; height: 38px; border-radius: 12px; }
  .pw-stats-4 .pw-stat-tx b { font-size: 19px; }
  .pw-stats-4 .pw-stat-go { display: none; }
  .pw-stats-4 .pw-stat.is-alert::after { top: 10px; bottom: auto; left: 10px; }
  .pw-invpage .pw-inv .pw-row-link { flex: 1 1 100%; }
  .pw-inv-amt { order: 3; width: auto; flex: 1; margin-inline-start: 54px; }
  .pw-invpage .pw-inv .pw-pill { order: 4; margin-inline-start: 0; }
  .pw-invpage .pw-inv .pw-row-acts { order: 5; margin-inline-start: 0; }
  .pw-vw-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.pw-inv-st { display: none; }
.pw-invpage .pw-inv .pw-row-acts { width: 84px; justify-content: flex-end; }
@media (max-width: 640px) {
  .pw-invpage .pw-inv { row-gap: 6px; }
  .pw-invpage .pw-inv .pw-pill { display: none; }
  .pw-inv-lbl { display: none; }
  .pw-inv-st { display: block; font-weight: 700 !important; }
  .pw-inv-st.is-ok { color: #0d7a5f !important; } .pw-inv-st.is-bad { color: #b42318 !important; }
  .pw-inv-st.is-info { color: #2459c7 !important; } .pw-inv-st.is-warn { color: #b54708 !important; }
  .pw-inv-amt { margin-inline-start: 54px; }
  .pw-invpage .pw-inv .pw-row-acts { width: auto; align-self: flex-end; }
}

/* ============================ 1.6.0: services page ============================ */
.pw-chips-sm { margin: -2px 0 12px; }
.pw-chips-sm button { height: 32px; padding: 0 12px; font-size: 12px; }
.pw-svc2 .pw-ip { width: 170px; justify-content: space-between; }
.pw-svc2 .pw-ip.is-empty { visibility: hidden; }
.pw-svc-col { flex: none; width: 128px; display: flex; flex-direction: column; line-height: 1.45; }
.pw-svc-col small { font-size: 11px; color: var(--pw-ink3); font-weight: 600; }
.pw-svc-col b { font-size: 13px; font-weight: 800; color: var(--pw-ink); white-space: nowrap; }
.pw-svc-due { width: 140px; }
.pw-due { font-style: normal; font-size: 10.5px; font-weight: 800; align-self: flex-start; margin-top: 2px; padding: 1px 7px; border-radius: 99px; }
.pw-due.is-warn { background: #fffaeb; color: #b54708; }
.pw-due.is-bad { background: #fef3f2; color: #b42318; }
.pw-svcpage .pw-svc .pw-pill { flex: none; min-width: 100px; justify-content: center; }
.pw-svcpage .pw-row-acts { width: 132px; justify-content: flex-end; }
.pw-tag { display: inline-block; padding: 0 7px; border-radius: 99px; background: #e8f1ff; color: #1d4ed8; font-size: 10.5px; font-weight: 700; }
.pw-row.is-dim { opacity: .7; }
@media (max-width: 1280px) {
  .pw-svc2 .pw-ip { width: 150px; }
  .pw-svc-col { width: 112px; }
}
@media (max-width: 1101px) {
  .pw-svc2 { flex-wrap: wrap; row-gap: 8px; }
  .pw-svc2 .pw-row-link { flex: 1 1 calc(100% - 280px); }
}
@media (max-width: 640px) {
  .pw-svc2 .pw-row-link { flex: 1 1 100%; }
  .pw-svc2 .pw-ip { order: 3; width: auto; max-width: none; flex: 0 0 calc(100% - 54px); margin-inline-start: 54px; }
  .pw-svc2 .pw-ip.is-empty { display: none; }
  .pw-svc-col { order: 4; width: auto; flex: 1 1 30%; min-width: 0; }
  .pw-svcpage .pw-svc .pw-pill { order: 2; min-width: 0; position: absolute; top: 12px; left: 12px; }
  .pw-svcpage .pw-svc2 { position: relative; }
  .pw-svcpage .pw-row-acts { order: 6; width: auto; flex: none; align-self: center; }
  .pw-svcpage .pw-row-acts .pw-btn-sm { padding: 0 10px; }
  .pw-svcpage .pw-svc2 .pw-row-main { padding-left: 84px; }
}

/* ============================ 1.7.0: pay from account credit ============================ */
.pw-usecr { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid #abefc6; background: #f0fdf6; transition: border-color .2s ease, background-color .2s ease; }
.pw-usecr[hidden] { display: none; }
.pw-usecr input { position: absolute; opacity: 0; pointer-events: none; }
.pw-usecr > i { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #9adbb6; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.pw-usecr > i::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--pw-ease); }
.pw-usecr input:checked + i { background: #0d9b76; border-color: #0d9b76; }
.pw-usecr input:checked + i::after { transform: rotate(-45deg) scale(1); }
.pw-usecr:has(input:checked) { border-color: #0d9b76; background: #e7f6f0; box-shadow: 0 0 0 3px rgba(13, 155, 118, .12); }
.pw-usecr-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #d1fadf; color: #0d7a5f; }
.pw-usecr-ic .pw-svg { width: 19px; height: 19px; }
.pw-usecr-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.pw-usecr-tx b { font-size: 13.5px; color: #054f31; }
.pw-usecr-tx small { font-size: 12px; color: #0b6b52; }
