/* Customer panel (/account): side menu on the right, content on a soft background. */
.pn-body { background: var(--bg); }
.pn { display: flex; min-height: 100vh; }

/* ---- side menu */
.pn-side { position: sticky; top: 0; flex: none; width: 272px; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-inline-end: 1px solid var(--border); overflow-y: auto; }
.pn-side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; }
.pn-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.pn-brand svg { width: 40px; height: auto; }
.pn-brand img { display: block; max-width: 160px; height: 36px; width: auto; }
.pn-user { display: flex; align-items: center; gap: 12px; margin: 4px 14px 10px; padding: 12px; border-radius: 14px; background: var(--bg); }
.pn-avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #6d4cff); color: #fff; font-weight: 800; font-size: 1rem; }
.pn-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.pn-user-text b { font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-user-text bdi { font-size: .82rem; color: var(--muted); text-align: right; }
.pn-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; flex: 1; }
.pn-nav-label { margin: 14px 10px 6px; font-size: .74rem; font-weight: 800; color: #93a1b6; letter-spacing: .02em; }
.pn-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: #33445c; font: inherit; font-size: .94rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.pn-nav-item .icon { width: 21px; height: 21px; flex: none; color: #8193ab; transition: color .15s; }
.pn-nav-item:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.pn-nav-item:hover .icon { color: var(--primary); }
.pn-nav-item.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.pn-nav-item.is-active .icon { color: var(--primary); }
.pn-side-foot { padding: 10px 12px 18px; border-top: 1px solid var(--border); }
.pn-logout:hover { background: #fdecec; color: #a61b1b; }
.pn-logout:hover .icon { color: #c62828; }

/* ---- top bar */
.pn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pn-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.pn-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.pn-icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: #4b5d76; cursor: pointer; text-decoration: none; }
.pn-icon-btn:hover { color: var(--primary); border-color: #c9dafc; }
.pn-icon-btn .icon { width: 20px; height: 20px; }
.pn-site-link { min-height: 40px; padding: 0 14px; gap: 6px; }
.pn-site-link .icon { width: 18px; height: 18px; }
.pn-icon-btn.pn-close, .pn-icon-btn.pn-toggle { display: none; }

/* ---- content */
.pn-content { padding: 26px 32px 48px; display: flex; flex-direction: column; gap: 22px; width: 100%; }
.pn-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff8e6; border: 1px solid #f6dfa0; color: #7a5300; font-size: .9rem; line-height: 1.9; }
.pn-banner .icon { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.pn-banner p { margin: 0; }
.pn-banner a { color: #7a5300; font-weight: 800; }
.pn-alert { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.pn-alert.is-success { background: #e9f8ef; color: #186b3a; border: 1px solid #bfe8cf; }
.pn-alert.is-danger { background: #fdecec; color: #a61b1b; border: 1px solid #f5c2c2; }
.pn-alert.is-info { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #c9dafc; }

.pn-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 26px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2f6bff 0%, #1745c9 45%, #0c0834 100%); box-shadow: 0 18px 40px -22px rgba(21, 96, 255, .7); }
.pn-hello h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.pn-hello p { margin: 0; opacity: .85; }
.pn-hello-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pn-hello .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.pn-hello .btn-light { background: rgba(255, 255, 255, .14); color: #fff; }
.pn-hello .btn .icon, .pn-section-actions .btn .icon { width: 18px; height: 18px; }

.pn-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pn-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.pn-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.pn-stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 4px; }
.pn-stat-icon .icon { width: 22px; height: 22px; }
.pn-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.pn-stat-label { color: var(--muted); font-size: .86rem; }
.is-blue .pn-stat-icon { background: #e8f0ff; color: #1560ff; }
.is-violet .pn-stat-icon { background: #f0eaff; color: #6d4cff; }
.is-green .pn-stat-icon { background: #e6f7ee; color: #16a05a; }
.is-amber .pn-stat-icon { background: #fff4dd; color: #d48806; }
.is-rose .pn-stat-icon { background: #ffeaf0; color: #e0335f; }

.pn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pn-grid.is-wallet { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.pn-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(11, 27, 51, .03); min-width: 0; }
.pn-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pn-card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.pn-card-head h3 .icon { width: 20px; height: 20px; color: var(--primary); }
.pn-card-head a { font-size: .86rem; font-weight: 700; }
.pn-card-foot { margin: 18px -22px -20px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 18px 18px; color: var(--muted); font-size: .88rem; }
.pn-muted { color: var(--muted); line-height: 1.9; font-size: .92rem; }
.pn-muted.small { font-size: .82rem; margin-bottom: 0; }

.pn-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pn-section-title { display: flex; gap: 14px; align-items: flex-start; }
.pn-section-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.pn-section-icon .icon { width: 24px; height: 24px; }
.pn-section-title h2 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.pn-section-title p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.pn-section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pn-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; }
.pn-tab { flex: none; padding: 8px 14px; border-radius: 10px; font-size: .88rem; font-weight: 700; color: var(--muted); background: var(--bg); cursor: default; }
.pn-tab small { margin-inline-start: 4px; padding: 1px 7px; border-radius: 999px; background: #fff; font-size: .75rem; }
.pn-tab.is-active { background: var(--ink); color: #fff; }
.pn-tab.is-active small { background: rgba(255, 255, 255, .18); color: #fff; }

.pn-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.pn-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pn-table th { padding: 12px 16px; background: var(--bg); color: #5d6f88; font-size: .8rem; font-weight: 800; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--border); }
.pn-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.pn-table tbody tr:last-child td { border-bottom: 0; }
.pn-table tbody tr:hover td { background: #fafcff; }
.pn-table td:has(> .pn-empty) { padding: 0; background: none !important; }
.pn-table td b { font-weight: 700; color: var(--ink); }
.pn-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.pn-table td a { color: inherit; }
.pn-table td a:hover b, .pn-table td a:hover { color: var(--primary); }
.pn-table .is-ltr { direction: ltr; text-align: right; unicode-bidi: plaintext; }
.pn-table .is-end { text-align: left; white-space: nowrap; }
.pn-table tfoot th { padding: 10px 16px; background: var(--bg); color: var(--muted); font-weight: 700; border-top: 1px solid var(--border); text-align: start; }
.pn-table tfoot th.is-end { text-align: left; }
.pn-table tfoot .is-total th { color: var(--ink); font-size: 1rem; font-weight: 800; }
.pn-pre { line-height: 1.9; }
.pn-row-actions { text-align: left; white-space: nowrap; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 9px; }
.is-ok { color: #16a05a; } .is-warn { color: #c47d00; } .is-bad { color: #d12d2d; }

.pn-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pn-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pn-status.is-ok { background: #e6f7ee; color: #16a05a; }
.pn-status.is-wait { background: #e8f0ff; color: #1560ff; }
.pn-status.is-warn { background: #fff4dd; color: #b87400; }
.pn-status.is-bad { background: #fdecec; color: #d12d2d; }
.pn-status.is-off { background: #eef1f5; color: #6b7a90; }
.pn-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--bg); color: #4b5d76; font-size: .8rem; }
.pn-chip .icon { width: 15px; height: 15px; }

.pn-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 44px 20px; }
.pn-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 8px; background: var(--primary-soft); color: var(--primary); }
.pn-empty-icon .icon { width: 30px; height: 30px; }
.pn-empty h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.pn-empty p { margin: 0; max-width: 440px; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.pn-empty.is-compact { flex-direction: row; text-align: start; padding: 16px; gap: 12px; border-radius: 12px; background: var(--bg); }
.pn-empty.is-compact > .icon { flex: none; width: 24px; height: 24px; color: #16a05a; }
.pn-table .pn-empty.is-compact { background: none; justify-content: center; }

.pn-wallet-mini { display: flex; align-items: baseline; justify-content: space-between; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--muted); }
.pn-wallet-mini b { font-size: 1.5rem; color: var(--ink); }
.pn-wallet-mini small, .pn-balance-num small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pn-balance { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: linear-gradient(160deg, #fff 0%, var(--primary-soft) 100%); }
.pn-balance-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.pn-balance-label .icon { width: 20px; height: 20px; color: var(--primary); }
.pn-balance-num { font-size: 2rem; color: var(--ink); }
.pn-balance p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.9; }

.pn-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pn-checklist li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pn-checklist .icon { width: 20px; height: 20px; color: #c3ccd9; }
.pn-checklist .is-done { color: var(--ink); }
.pn-checklist .is-done .icon { color: #16a05a; }
.pn-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff4dd; color: #a86b00; font-size: .72rem; font-weight: 800; }
.pn-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pn-badge .icon { width: 15px; height: 15px; }
.pn-badge.is-ok { background: #e6f7ee; color: #16a05a; }
.btn.is-soon { opacity: .55; cursor: not-allowed; }

.pn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.pn-field { display: flex; flex-direction: column; gap: 6px; }
.pn-label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.pn-value { min-height: 50px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 14px; border-radius: 12px; background: var(--bg); }
.pn-field .acc-input:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.acc-input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; }
.acc-input.is-ltr { direction: ltr; text-align: left; }

.pn-devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pn-devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.pn-devices li > .icon { flex: none; width: 22px; height: 22px; color: var(--primary); }
.pn-devices span { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; flex: 1; }
.pn-devices small { color: var(--muted); }

/* ---- details: invoice, ticket, lists */
.pn-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.pn-pager a { padding: 8px 16px; border-radius: 10px; background: var(--bg); font-weight: 700; text-decoration: none; }
.pn-pager a:hover { background: var(--primary-soft); }
.pn-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; margin-bottom: -8px; }
.pn-back:hover { color: var(--primary); }
.pn-back .icon { width: 18px; height: 18px; }
.pn-invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pn-invoice-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.pn-invoice-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.pn-thread { display: flex; flex-direction: column; gap: 14px; }
.pn-msg { border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; background: #fff; width: min(88%, 920px); }
.pn-msg.is-staff { background: #f4f8ff; border-color: #d6e3ff; margin-inline-start: auto; }
.pn-msg header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pn-msg header b { color: var(--ink); font-size: .92rem; }
.pn-msg time { margin-inline-start: auto; color: var(--muted); font-size: .8rem; }
.pn-msg-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: #5d6f88; }
.pn-msg.is-staff .pn-msg-avatar { background: var(--primary); color: #fff; }
.pn-msg-avatar .icon { width: 18px; height: 18px; }
.pn-msg-body { line-height: 2; color: var(--text); overflow-wrap: anywhere; }
.pn-msg-files { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--muted); }
.pn-msg-files > .icon { width: 18px; height: 18px; }
.pn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pn-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.pn-list li:last-child { border-bottom: 0; }
.pn-list a, .pn-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.pn-list a b, .pn-list li > span:first-child b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.pn-list a:hover b { color: var(--primary); }
.pn-list small { color: var(--muted); font-size: .8rem; }
.pn-list-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.is-ltr-text { direction: ltr; unicode-bidi: plaintext; text-align: right; }
.pn-linkcard { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px dashed #b9cdf7; color: var(--ink); text-decoration: none; }
.pn-linkcard:hover { border-style: solid; border-color: var(--primary); }
.pn-linkcard > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.pn-linkcard small { color: var(--muted); }
.pn-linkcard > .icon { width: 22px; height: 22px; color: var(--primary); }
.pn-tag.is-link { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.pn-narrow { max-width: 640px; }
.pn-form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.pn-form .btn { align-self: flex-start; }

/* ---- tablet and phone: the side menu slides in */
/* Wide screens: the panel fills the width, cards and text grow a little. */
@media (min-width: 1500px) {
  .pn-side { width: 296px; }
  .pn-content { padding: 32px 40px 56px; gap: 26px; }
  .pn-stat { padding: 22px; }
  .pn-stat-num { font-size: 1.9rem; }
  .pn-grid { gap: 24px; }
  .pn-card { padding: 24px 26px; }
}
@media (max-width: 1100px) {
  .pn-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .pn-side { position: fixed; z-index: 80; inset-block: 0; inset-inline-start: 0; height: 100%; transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: none; }
  .pn-open .pn-side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(11, 27, 51, .3); }
  .pn-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(11, 27, 51, .45); }
  .pn-icon-btn.pn-close, .pn-icon-btn.pn-toggle { display: inline-grid; }
  .pn-top { padding: 0 16px; }
  .pn-content { padding: 18px 16px 40px; }
  .pn-grid, .pn-grid.is-wallet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pn-stat { padding: 14px; }
  .pn-hello { padding: 20px; }
  .pn-hello-actions, .pn-hello-actions .btn { width: 100%; justify-content: center; }
  .pn-site-link span { display: none; }
  .pn-site-link { width: 40px; padding: 0; justify-content: center; }
  .pn-form-grid { grid-template-columns: minmax(0, 1fr); }
  .pn-card { padding: 18px 16px; }
  .pn-card-foot { margin: 16px -16px -18px; padding: 12px 16px; }
  .pn-msg { width: 100%; padding: 12px 14px; }
  /* Lists become cards: one row per card, each value with its column name. */
  .pn-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .pn-table thead { display: none; }
  .pn-table, .pn-table tbody, .pn-table tr { display: block; width: 100%; }
  .pn-table tbody tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
  .pn-table tbody tr:hover td { background: none; }
  .pn-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
  .pn-table tbody td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .8rem; font-weight: 700; text-align: right; }
  .pn-table tbody td[data-label=""]::before { display: none; }
  .pn-table tbody td:first-child { background: var(--bg); }
  .pn-table tbody td:first-child b { font-size: .95rem; }
  .pn-table tbody td > b, .pn-table tbody td > a { text-align: left; }
  .pn-table td small { text-align: left; }
  .pn-table tbody td.is-ltr { direction: rtl; }
  .pn-table tbody td:empty, .pn-table tbody td.pn-row-actions:empty { display: none; }
  .pn-table tbody td:has(> .pn-empty) { display: block; border: 0; }
  .pn-table tbody td:has(> .pn-empty)::before { display: none; }
  .pn-table tbody tr:has(.pn-empty) { border: 1px solid var(--border); }
  .pn-table tfoot { display: table; width: 100%; }
  .pn-invoice .pn-table thead { display: none; }
  .pn-table td, .pn-table th { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pn-side { transition: none; } }
.pn-form-foot { display: flex; justify-content: flex-end; }
.acc-input.is-invalid { border-color: #d12d2d; }
.pn-impersonating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: #2b1d5c; color: #fff; font-size: .9rem; }
.pn-impersonating .icon { width: 22px; height: 22px; flex: none; }
.pn-impersonating p { margin: 0; flex: 1; line-height: 1.8; }
.pn-impersonating form { margin: 0; }
.pn-impersonating .btn { min-height: 36px; background: #fff; color: #2b1d5c; }

/* ---- tickets */
.pn-ticket-form { display: flex; flex-direction: column; gap: 16px; }
.pn-ticket-form .pn-section-head { margin-bottom: 0; }
.pn-departments { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pn-department { position: relative; display: block; cursor: pointer; }
.pn-department input { position: absolute; opacity: 0; inset: 0; }
.pn-department span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.pn-department small { color: var(--muted); font-size: .8rem; }
.pn-department input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.pn-department input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pn-textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.9; resize: vertical; }
select.acc-input { appearance: auto; }
.pn-file { display: block; width: 100%; padding: 10px; border: 1px dashed #b9cdf7; border-radius: 12px; background: var(--bg); font: inherit; font-size: .88rem; cursor: pointer; }
.pn-reply { display: flex; flex-direction: column; gap: 12px; }
.pn-reply-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.pn-reply-title .icon { width: 20px; height: 20px; color: var(--primary); }
.pn-reply-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pn-reply-foot > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.pn-ticket-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pn-ticket-actions form { margin: 0; }
.pn-new { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #e0335f; color: #fff; font-size: .7rem; font-weight: 800; vertical-align: middle; }
.pn-msg-files a.pn-chip { text-decoration: none; color: var(--primary-dark); background: var(--primary-soft); }
.pn-msg-files a.pn-chip:hover { background: #d6e3ff; }
.pn-msg-files .pn-chip small { color: var(--muted); }
.pn-msg-body a { color: var(--primary); overflow-wrap: anywhere; }
.btn.is-busy { opacity: .6; cursor: progress; }
.pn-nav-badge { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: #e0335f; color: #fff; font-size: .75rem; font-weight: 800; }

/* Wallet: charge form and payment result */
.pn-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pn-balance-split { font-weight: 700; color: var(--ink) !important; }
.pn-charge-body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 18px; }
.pn-amount { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; text-align: center; }
.pn-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pn-preset { padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.pn-preset:hover, .pn-preset.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.pn-quote { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.pn-quote div { display: flex; justify-content: space-between; gap: 12px; }
.pn-quote dt { color: var(--muted); }
.pn-quote dd { margin: 0; font-weight: 700; }
.pn-quote .is-total { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 1rem; }
.pn-quote .is-total dd { color: var(--primary-dark); font-weight: 900; }
.pn-hint { color: var(--muted); font-size: .8rem; line-height: 1.9; }
.pn-pay-btn { width: 100%; justify-content: center; }
.pn-charge .pn-card-foot { padding: 0 20px 20px; border: 0; }
.pn-pay-result { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid; margin-bottom: 20px; }
.pn-pay-result b { display: block; font-size: 1rem; }
.pn-pay-result p { margin: 4px 0 0; font-size: .87rem; line-height: 1.9; }
.pn-pay-result-icon .icon { width: 30px; height: 30px; }
.pn-pay-result.is-ok { background: #e9f8ef; border-color: #bfe8cf; color: #186b3a; }
.pn-pay-result.is-warn { background: #fff7e6; border-color: #f6dca6; color: #8a5a00; }
.pn-pay-result.is-bad { background: #fdecec; border-color: #f5c2c2; color: #a61b1b; }
.pn-inline-form { display: inline; margin: 0; }
.pn-chip.is-action { border: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; background: var(--primary-soft); color: var(--primary-dark); }
.pn-chip.is-action:hover { background: var(--primary); color: #fff; }

/* Orders: the invoice beside the payment box */
.pn-grid.is-order { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.pn-paybox-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.pn-paybox-body form { display: flex; flex-direction: column; gap: 6px; }
.pn-paybox-body .pn-muted { margin: 0; font-size: .84rem; }
.pn-link-danger { align-self: flex-start; background: none; border: 0; padding: 0; color: #d12d2d; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.pn-link-danger:hover { text-decoration: underline; }
@media (max-width: 900px) { .pn-grid.is-order { grid-template-columns: minmax(0, 1fr); } }

/* Domain names and bank references in Latin digits (the site font draws Persian ones). */
.pn-invoice bdi[dir="ltr"], .pn-pay-result bdi[dir="ltr"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* Service and domain details */
.pn-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.pn-kv dt { color: var(--muted); font-size: .88rem; }
.pn-kv dd { margin: 0; color: var(--ink); font-weight: 700; }
.pn-kv dd small { margin-inline-start: 8px; font-weight: 700; font-size: .78rem; }
.pn-kv dd small.is-warn { color: #a86b00; }
.pn-kv dd small.is-bad { color: #c0262d; }
.pn-kv .is-ltr, .pn-chip.is-ltr { direction: ltr; unicode-bidi: isolate; }
.pn-copy { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pn-copy label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.pn-copy-row { display: flex; gap: 8px; }
.pn-copy-row .acc-input { height: 44px; flex: 1; min-width: 0; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.pn-actions form { margin: 0; }
.pn-renew { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.pn-row-link { font-weight: 700; text-decoration: none; }
/* Host names, user names and passwords: the site font draws Persian digits, so Latin text keeps Latin digits. */
.pn-copy .acc-input, .pn-form .acc-input.is-ltr, .pn-kv dd.is-ltr, .pn-chip.is-ltr, .pn-invoice-head bdi[dir="ltr"] {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.pn-copy .acc-input::placeholder, .pn-form .acc-input.is-ltr::placeholder { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.pn-card .btn-light { border: 1px solid var(--border); background: var(--surface); }
.pn-card .btn-light:hover { border-color: var(--primary); background: var(--primary-soft); }
