/* =====================================================================
   shopingserver2026 — custom.css
   1. Fonts       (handoff/assets/fonts.css, paths adjusted)
   2. Tokens      (handoff/tokens/tokens.css, unchanged)
   3. Components  (handoff/css/components-reference.css, hard-coded colours mapped to tokens)
   4. Base        page, layout, focus
   5. Header      reference: Header.png
   6. Mobile      header, menu and tab bar, reference: Mobile.png
   7. Footer      reference: Footer.png
   8. Auth        login, register, password reset, logout; reference: Login.png, Register.png, PasswordReset.png
   9. Page        shared page parts: page head, breadcrumb, cards, tabs, key/value, tables, alerts
  10. Dashboard   reference: Main.png, Mobile.png
  11. Services    reference: Services.png
  12. Service     reference: Service.png (head + summary; WGS module layer comes later, see TODO.md)
  13. Invoices    reference: Invoices.png
  14. Invoice     reference: Invoice.png, MobileInvoice.png (+ print)
  15. Add funds   reference: AddFunds.png
  16. Domains     reference: Domains.png, DomainManage.png
  17. Support     reference: Tickets.png, TicketNew.png, TicketView.png
  18. Account     reference: Account.png, Security.png
  19. Knowledge   reference: KnowledgeBase.png
   After any change here, bump themeRelease in includes/head.tpl.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Fonts — Vazirmatn FD prints Latin digits as Persian digits
   --------------------------------------------------------------------- */
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-FD-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-FD-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}

/* ---------------------------------------------------------------------
   2. Tokens — generated from tokens.json
   --------------------------------------------------------------------- */
:root{
  /* color */
  --brand-600: #2569BA;
  --brand-700: #1D5AA3;
  --brand-800: #065194;
  --brand-300: #C9DBF1;
  --brand-200: #D6E4F5;
  --brand-050: #E6EFF9;
  --brand-025: #F2F7FD;
  --accent-500: #FB9530;
  --accent-700: #A85A00;
  --accent-900: #6B3A00;
  --accent-200: #FBD9B4;
  --accent-050: #FFF1E3;
  --success-700: #1B7F45;
  --success-500: #22A55A;
  --success-050: #E6F6EC;
  --danger-700: #B42318;
  --danger-500: #D92D20;
  --danger-200: #F4C7C3;
  --danger-050: #FDECEC;
  --ground: #F5F5F5;
  --chrome: #EAEBEF;
  --surface: #FFFFFF;
  --surface-sunken: #F7F8FA;
  --neutral-100: #F1F3F6;
  --ink: #1D1D1F;
  --ink-secondary: #3A3F47;
  --muted: #5F6673;
  --faint: #8A909C;
  --border-strong: #D5D9E2;
  --border: #E3E6EC;
  --divider: #EEF0F3;
  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-10: 40px;
  --space-14: 56px;
  --page-gutter: 120px;
  /* radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-tile: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  /* shadow */
  --shadow-card: 0 4px 20px rgba(16, 42, 84, 0.05);
  --shadow-featured: 0 12px 30px rgba(37, 105, 186, 0.25);
  --font-sans: Vazirmatn, Tahoma, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
.t-display{font-family:var(--font-sans);font-size:32px;line-height:1.5;font-weight:800;letter-spacing:-0.4px}
.t-page-title{font-family:var(--font-sans);font-size:30px;line-height:1.5;font-weight:800;letter-spacing:-0.4px}
.t-section-title{font-family:var(--font-sans);font-size:18px;line-height:1.6;font-weight:800}
.t-item-title{font-family:var(--font-sans);font-size:15px;line-height:1.7;font-weight:700}
.t-body{font-family:var(--font-sans);font-size:14.5px;line-height:1.9;font-weight:400}
.t-ui{font-family:var(--font-sans);font-size:14px;line-height:1.6;font-weight:600}
.t-label{font-family:var(--font-sans);font-size:13px;line-height:1.6;font-weight:700}
.t-caption{font-family:var(--font-sans);font-size:12.5px;line-height:1.6;font-weight:400}
.t-mono{font-family:var(--font-mono);font-size:13px;line-height:1.6;font-weight:400}

/* Theme-level values that tokens.json does not cover */
:root{
  --logo-mid: #4A8BD6;                                   /* middle bar of the logo mark only */
  --focus-ring: 0 0 0 3px rgba(37, 105, 186, .12);      /* brand-600 at 12% */
  --header-h: 76px;
  --header-h-mobile: 64px;
  --tabbar-h: 72px;
}

/* ---------------------------------------------------------------------
   3. Components — from components-reference.css (see docs/components/*.md)
   --------------------------------------------------------------------- */
body { background: var(--ground); color: var(--ink); font-family: var(--font-sans); }
a { color: var(--brand-600); }
a:hover { color: var(--brand-800); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }

/* Layout */
.ss-container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Button */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ss-btn:hover, .ss-btn:focus { text-decoration: none; }
.ss-btn--primary { background: var(--brand-600); color: var(--surface); font-weight: 800; }
.ss-btn--primary:hover, .ss-btn--primary:focus { background: var(--brand-800); color: var(--surface); }
.ss-btn--secondary { background: var(--surface); border-color: var(--border-strong); color: var(--ink); font-weight: 600; }
.ss-btn--secondary:hover, .ss-btn--secondary:focus { color: var(--ink); background: var(--surface-sunken); }
.ss-btn--soft { background: var(--brand-050); color: var(--brand-700); }
.ss-btn--danger { background: var(--surface); border-color: var(--danger-200); color: var(--danger-700); font-weight: 600; }
.ss-btn--danger-solid { background: var(--danger-700); color: var(--surface); }
.ss-btn--lg { height: 50px; font-size: 15px; }

/* Status pill */
.ss-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ss-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.ss-pill--success { background: var(--success-050); color: var(--success-700); }
.ss-pill--success::before { background: var(--success-500); }
.ss-pill--warning { background: var(--accent-050); color: var(--accent-700); }
.ss-pill--warning::before { background: var(--accent-500); }
.ss-pill--danger { background: var(--danger-050); color: var(--danger-700); }
.ss-pill--danger::before { background: var(--danger-500); }
.ss-pill--info { background: var(--brand-050); color: var(--brand-700); }
.ss-pill--info::before { background: var(--brand-600); }
.ss-pill--neutral { background: var(--divider); color: var(--ink-secondary); }
.ss-pill--neutral::before { background: var(--faint); }

/* Notice */
.ss-notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.8; }
.ss-notice--warning { background: var(--accent-050); border: 1px solid var(--accent-200); color: var(--accent-900); }
.ss-notice--danger { background: var(--danger-050); color: var(--danger-700); }

/* Card */
.ss-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.ss-card__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.ss-card__head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-card__body { padding: 24px; }
.ss-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-table-head { padding: 12px 24px; background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* Tabs and filters */
.ss-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.ss-tabs a { padding: 0 2px 14px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.ss-tabs a.active, .ss-tabs a[aria-current] { font-weight: 800; color: var(--brand-600); border-bottom: 3px solid var(--accent-500); margin-bottom: -1px; }
.ss-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-filter a { height: 38px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-secondary); font-size: 13.5px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.ss-filter a.active { background: var(--brand-600); color: var(--surface); font-weight: 700; }

/* Field */
.ss-field { display: flex; flex-direction: column; gap: 7px; }
.ss-field label { font-size: 13px; font-weight: 700; }
.ss-field input, .ss-field select, .ss-field textarea, .form-control { min-height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); box-shadow: none; }
.ss-field textarea, textarea.form-control { padding: 10px 14px; line-height: 1.9; }
.ss-field input:focus, .form-control:focus { border: 1.5px solid var(--brand-600); box-shadow: var(--focus-ring); outline: none; }
.ss-field .help { font-size: 12.5px; color: var(--muted); }
.ss-field.has-error input, .has-error .form-control { border-color: var(--danger-700); }
.ss-field.has-error .help { color: var(--danger-700); font-weight: 600; }

/* Option card (radio card) */
.ss-option { padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.ss-option input { accent-color: var(--brand-600); }
.ss-option:has(input:checked) { border: 2px solid var(--brand-600); background: var(--brand-025); }

/* Plan card */
.ss-plan { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ss-plan h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--brand-600); }
.ss-plan .price { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--success-700); }
.ss-plan--featured { background: var(--brand-600); color: var(--surface); box-shadow: var(--shadow-featured); }
.ss-plan--featured h3, .ss-plan--featured .price { color: var(--surface); }
.ss-plan__badge { position: absolute; top: -13px; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--accent-500); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.ss-check { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   4. Base
   --------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body.ss-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.9;
}
body.ss-body h1, body.ss-body h2, body.ss-body h3, body.ss-body h4, body.ss-body h5, body.ss-body h6,
body.ss-body input, body.ss-body button, body.ss-body select, body.ss-body textarea,
body.ss-body .tooltip, body.ss-body .popover, body.ss-body .btn {
  font-family: var(--font-sans);
}
body.ss-body h1, body.ss-body h2, body.ss-body h3, body.ss-body h4 { font-weight: 800; }
body.ss-body code, body.ss-body kbd, body.ss-body pre, body.ss-body samp { font-family: var(--font-mono); }

body.ss-body :focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.ss-main { flex: 1 0 auto; padding: var(--space-10) 0 var(--space-14); }
.ss-main--bare { padding: 0; }
.ss-main--bare > .ss-container { width: auto; }

/* ---------------------------------------------------------------------
   5. Header
   --------------------------------------------------------------------- */
.ss-header { position: relative; z-index: 1000; flex-shrink: 0; background: var(--chrome); color: var(--ink); }
.ss-header__inner { width: min(1200px, 100% - 32px); height: var(--header-h); margin-inline: auto; display: flex; align-items: center; gap: 36px; }

/* Logo */
.ss-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.ss-brand:hover, .ss-brand:focus { color: var(--ink); text-decoration: none; }
.ss-logo { width: 38px; height: 38px; flex-shrink: 0; }
.ss-logo__arrows { stroke: var(--accent-500); }
.ss-logo__bar { fill: var(--brand-600); }
.ss-logo__bar--mid { fill: var(--logo-mid); }
.ss-logo__led { fill: var(--surface); }
.ss-brand__name { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.4; white-space: nowrap; }

/* Menu */
.ss-nav { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.ss-nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 14.5px; font-weight: 500; line-height: 1.6; color: var(--ink-secondary); text-decoration: none; white-space: nowrap; }
.ss-nav__link:hover, .ss-nav__link:focus { color: var(--brand-600); text-decoration: none; }
.ss-nav__link.is-active { font-weight: 700; color: var(--brand-600); }
.ss-nav__link.is-active::after { content: ""; position: absolute; right: 14px; left: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--accent-500); }

/* Actions */
.ss-header__actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

.ss-chip { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; line-height: 1.6; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ss-chip::after { content: ""; position: absolute; inset: -2px 0; } /* 44px hit area around the 40px chip */
.ss-chip:hover, .ss-chip:focus { color: var(--ink); text-decoration: none; background: var(--surface-sunken); }
.ss-chip__label { color: var(--muted); }
.ss-chip__value { font-weight: 700; }

.ss-iconbtn { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.ss-iconbtn:hover, .ss-iconbtn:focus { color: var(--brand-600); background: var(--surface-sunken); text-decoration: none; }
.ss-iconbtn__badge { position: absolute; top: 5px; left: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent-500); color: var(--ink); font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.ss-iconbtn__dot { position: absolute; top: 10px; left: 11px; box-sizing: content-box; width: 8px; height: 8px; border-radius: 50%; background: var(--danger-500); border: 2px solid var(--surface); }

.ss-account { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px 0 10px; border: 0; border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); cursor: pointer; }
.ss-account:hover, .ss-account:focus { background: var(--surface-sunken); }
.ss-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-600); color: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; line-height: 1; }

/* Dropdown menus (Bootstrap toggles .open on the parent) */
.ss-dropdown { position: relative; }
.ss-header .ss-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 1010;
  float: none; min-width: 240px; margin: 0; padding: 8px;
  list-style: none; text-align: right;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 14px; line-height: 1.6;
}
.ss-header .ss-menu > li > a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; white-space: nowrap;
}
.ss-header .ss-menu > li > a:hover, .ss-header .ss-menu > li > a:focus { background: var(--neutral-100); color: var(--brand-600); text-decoration: none; }
.ss-header .ss-menu .divider { height: 1px; margin: 6px 0; background: var(--divider); }
.ss-menu__head { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--divider); }
.ss-menu__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.ss-menu__meta { font-size: 12.5px; color: var(--muted); }
.ss-menu__title { padding: 6px 12px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ss-menu__empty { padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.ss-header .ss-menu--alerts { width: 340px; max-width: calc(100vw - 32px); }
.ss-header .ss-menu--alerts > li > a { white-space: normal; padding: 10px 12px; line-height: 1.8; }

/* Narrower desktops: drop the credit chip before the menu runs out of room */
@media (max-width: 1279.98px) {
  .ss-header__inner { gap: 24px; }
  .ss-nav__link { padding-inline: 10px; }
  .ss-nav__link.is-active::after { right: 10px; left: 10px; }
  .ss-chip { display: none; }
}

/* ---------------------------------------------------------------------
   6. Mobile header, menu and tab bar (below 1024px)
   --------------------------------------------------------------------- */
.ss-menutoggle { display: none; }
.ss-mobilemenu { display: none; }
.ss-tabbar { display: none; }

@media (min-width: 1024px) {
  .ss-mobilemenu, .ss-mobilemenu.in, .ss-mobilemenu.collapsing { display: none !important; }
}

@media (max-width: 1023.98px) {
  .ss-header__inner { height: var(--header-h-mobile); gap: 12px; justify-content: space-between; }
  .ss-brand { gap: 8px; }
  .ss-logo { width: 32px; height: 32px; }
  .ss-brand__name { font-size: 18px; }
  .ss-nav, .ss-desktop-only { display: none !important; }
  .ss-header__actions { gap: 6px; }
  .ss-menutoggle { display: flex; }

  .ss-mobilemenu { border-top: 1px solid var(--border); background: var(--surface); }
  .ss-mobilemenu.collapse.in { display: block; }
  .ss-mobilemenu.collapsing { display: block; }
  .ss-mobilemenu__inner { width: min(1200px, 100% - 32px); margin-inline: auto; padding: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; }
  .ss-mobilemenu nav, .ss-mobilemenu__group { display: flex; flex-direction: column; }
  .ss-mobilemenu nav a, .ss-mobilemenu__group a {
    display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px;
    border-bottom: 1px solid var(--divider); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
  }
  .ss-mobilemenu nav a.is-active { color: var(--brand-600); font-weight: 800; }
  .ss-mobilemenu__group a { font-weight: 500; font-size: 14.5px; }
  .ss-mobilemenu__label { padding: 14px 4px 6px; font-size: 12.5px; color: var(--muted); }
  .ss-mobilemenu__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-500); color: var(--ink); font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
  .ss-mobilemenu__credit {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; margin-top: 8px;
    border-radius: var(--radius-md); background: var(--brand-800); color: var(--surface); text-decoration: none;
  }
  .ss-mobilemenu__credit:hover, .ss-mobilemenu__credit:focus { color: var(--surface); text-decoration: none; }
  .ss-mobilemenu__credit span { font-size: 13px; color: var(--brand-300); }
  .ss-mobilemenu__credit strong { font-size: 16px; font-weight: 800; }
  .ss-mobilemenu__auth { display: flex; gap: 8px; padding-top: 8px; }
  .ss-mobilemenu__auth .ss-btn { flex: 1 1 0; }

  .ss-tabbar {
    position: fixed; right: 0; left: 0; bottom: 0; z-index: 1000;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    box-sizing: border-box; min-height: var(--tabbar-h);
    padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .ss-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; font-size: 11px; line-height: 1.4; color: var(--muted); text-decoration: none; }
  .ss-tabbar a:hover, .ss-tabbar a:focus { color: var(--brand-600); text-decoration: none; }
  .ss-tabbar a.is-active { font-weight: 800; color: var(--brand-600); }
  body.ss-has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  /* NotifyHub addon's floating bell: lift it above the tab bar */
  body.ss-has-tabbar #nh-bell { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }

  .ss-main { padding: 18px 0 24px; }
}

/* ---------------------------------------------------------------------
   7. Footer
   --------------------------------------------------------------------- */
.ss-footer { flex-shrink: 0; background: var(--chrome); color: var(--ink); }
.ss-footer__top { min-height: 96px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--border-strong); }
.ss-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.ss-footer__name { font-size: 22px; font-weight: 800; line-height: 1.5; color: var(--brand-600); }
.ss-footer__tagline { font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--ink-secondary); }
.ss-footer__nav { flex-grow: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; font-size: 13.5px; }
.ss-footer__nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-secondary); text-decoration: none; }
.ss-footer__nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); flex-shrink: 0; }
.ss-footer__nav a:hover, .ss-footer__nav a:focus { color: var(--brand-600); text-decoration: none; }
.ss-footer__support { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ss-footer__support span { color: var(--muted); }
.ss-footer__phone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ss-footer__phone:hover, .ss-footer__phone:focus { color: var(--brand-600); text-decoration: none; }
.ss-footer__bottom { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

@media (max-width: 1023.98px) {
  .ss-footer__top { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0 12px; }
  .ss-footer__nav { justify-content: flex-start; gap: 0 20px; }
  .ss-footer__bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
}

/* ---------------------------------------------------------------------
   8. Auth — login, register, password reset, logout
   These pages render without the site header/footer (main.ss-main--bare).
   --------------------------------------------------------------------- */

/* Shared bits used here first */
.ss-btn--block { display: flex; width: 100%; }
.ss-notice { align-items: flex-start; }
.ss-notice__icon { flex-shrink: 0; margin-top: 4px; }
.ss-notice--danger { border: 1px solid var(--danger-200); }
.ss-notice--info { background: var(--brand-050); border: 1px solid var(--brand-200); color: var(--brand-700); }
.ss-notice ul, .ss-notice ol { margin: 4px 0 0; padding-right: 18px; }
/* WHMCS flash messages (.alert) inside auth pages look like notices */
.ss-auth .alert { margin: 0; padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.8; text-align: right; }
.ss-auth .alert-danger { background: var(--danger-050); border: 1px solid var(--danger-200); color: var(--danger-700); }
.ss-auth .alert-success { background: var(--success-050); border: 1px solid var(--success-050); color: var(--success-700); }
.ss-auth .alert-info, .ss-auth .alert-warning { background: var(--accent-050); border: 1px solid var(--accent-200); color: var(--accent-900); }

.ss-auth .ss-field { gap: 8px; margin: 0; }
.ss-auth .ss-field label, .ss-auth .ss-label { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ss-auth .form-control { min-height: 48px; font-size: 15px; }
.ss-auth select.form-control { padding: 0 12px; }
.ss-field__labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ss-field__labelrow a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ss-help { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ss-auth .ss-input-error { border-color: var(--danger-700) !important; box-shadow: 0 0 0 3px var(--danger-050) !important; }

/* Password field with show/hide button (button sits at the left end in RTL) */
.ss-pass { position: relative; }
.ss-pass .form-control { padding-left: 48px; }
.ss-pass__toggle { position: absolute; top: 2px; left: 2px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ss-pass__toggle:hover, .ss-pass__toggle:focus { color: var(--brand-600); }
.ss-pass__hide, .ss-pass__toggle.is-visible .ss-pass__show { display: none; }
.ss-pass__toggle.is-visible .ss-pass__hide { display: block; }

/* Checkbox row */
.ss-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.8; color: var(--ink); cursor: pointer; }
.ss-checkbox input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-600); cursor: pointer; }
.ss-checkbox a { font-weight: 700; text-decoration: none; }
.ss-checkbox--top { align-items: flex-start; }
.ss-checkbox--top input[type="checkbox"] { margin-top: 6px; }

.ss-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ss-grid2__full { grid-column: 1 / -1; }

/* Layout: two panels (login, register) */
.ss-auth { color: var(--ink); }
.ss-auth--split { min-height: 100vh; box-sizing: border-box; padding: var(--space-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.ss-auth--register { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ss-auth__panel { box-sizing: border-box; padding: 40px 104px; border-radius: var(--radius-xl); background: var(--surface); display: flex; flex-direction: column; gap: 36px; }
.ss-auth--register .ss-auth__panel { padding: 40px 96px; }
.ss-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ss-auth__toplink { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ss-auth__toptext { font-size: 14px; color: var(--muted); }
.ss-auth__toptext a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; }
.ss-auth__body { flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.ss-auth__form { width: 400px; max-width: 100%; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ss-auth__form--wide { width: auto; gap: 22px; }
.ss-auth__head { display: flex; flex-direction: column; gap: 8px; }
.ss-auth__head h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.5; letter-spacing: -0.4px; }
.ss-auth__head p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.ss-auth__alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.ss-auth__alt a { font-weight: 800; text-decoration: none; }
.ss-auth__captcha { display: flex; justify-content: center; }
.ss-auth__captcha .row { margin: 0; }
.ss-auth__captcha:not(:has(*)) { display: none; } /* captcha off for this form: no empty gap */
/* WHMCS image captcha (six/includes/captcha.tpl) laid out without the Bootstrap columns */
.ss-auth__captcha .text-center.row, .ss-auth__captcha [class*="col-"] { float: none; width: 100%; margin: 0; padding: 0; }
.ss-auth__captcha #default-captcha-domainchecker, .ss-auth__captcha #google-recaptcha-domainchecker { margin: 0 auto; } /* itheme/bootstrap.css gives these ID rules negative margins */
.ss-auth__captcha [id^="default-captcha"] { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.ss-auth__captcha [id^="default-captcha"] p { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); text-align: center; }
.ss-auth__captcha [id^="default-captcha"] > div { width: auto; }
.ss-auth__captcha #inputCaptchaImage { display: block; height: 46px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ss-auth__captcha #inputCaptcha { width: 160px; min-height: 46px; direction: ltr; text-align: center; letter-spacing: 2px; float: none; }
.ss-auth__submit { width: 260px; max-width: 100%; }
.ss-auth__support { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ss-auth__support svg { color: var(--brand-600); }
.ss-auth__support a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }

.ss-auth__section { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ss-auth__section legend { margin: 0 0 14px; padding: 0; border: 0; width: auto; font-size: 15px; font-weight: 800; line-height: 1.6; color: var(--brand-600); }
.ss-auth--register .ss-field label, .ss-auth--register .ss-label { font-size: 13px; }
.ss-auth--register .form-control { min-height: 46px; font-size: 14.5px; }
.ss-auth--register .ss-pass__toggle { top: 1px; }
.ss-linked:empty { display: none; }
.ss-auth .ss-custom .form-control { width: 100%; }
.ss-auth .ss-custom input[type="checkbox"], .ss-auth .ss-custom input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--brand-600); }

/* Promo panel */
.ss-auth__promo { box-sizing: border-box; padding: 64px 72px; border-radius: var(--radius-xl); background: var(--brand-800); color: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; }
.ss-auth__promo-copy { display: flex; flex-direction: column; gap: 18px; }
.ss-auth__badge { align-self: flex-start; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent-500); color: var(--ink); font-size: 13px; font-weight: 800; }
.ss-auth__promo h2 { margin: 0; font-size: 38px; font-weight: 800; line-height: 1.55; letter-spacing: -0.5px; color: var(--surface); }
.ss-auth__promo p { margin: 0; font-size: 15.5px; line-height: 2; color: var(--brand-300); }

.ss-auth__rack { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ss-auth__unit { width: 300px; max-width: 100%; height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 10px; background: var(--brand-600); display: flex; align-items: center; gap: 10px; }
.ss-auth__unit--mid { background: var(--logo-mid); }
.ss-auth__bay { width: 18px; height: 22px; border-radius: 3px; background: var(--brand-300); }
.ss-auth__bay--lit { background: var(--surface); }
.ss-auth__slot { flex-grow: 1; height: 16px; border-radius: 3px; background: var(--surface); }
.ss-auth__led { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.ss-auth__led--accent { background: var(--accent-500); }
.ss-auth__rack-shadow { width: 380px; max-width: 100%; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ink); opacity: .18; }

.ss-auth__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ss-auth__stats > div { padding: 16px; border-radius: var(--radius-tile); background: color-mix(in srgb, var(--surface) 8%, transparent); display: flex; flex-direction: column; gap: 4px; }
.ss-auth__stats strong { font-size: 22px; font-weight: 800; line-height: 1.5; }
.ss-auth__stats span { font-size: 13px; color: var(--brand-300); }

.ss-auth__promo--list { padding: 64px 56px; justify-content: flex-start; }
.ss-auth__promo--list h2 { font-size: 30px; line-height: 1.6; }
.ss-auth__perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ss-auth__perks li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.9; }
.ss-tick { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--surface); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-auth__helpcard { margin-top: auto; padding: 20px; border-radius: var(--radius-tile); background: color-mix(in srgb, var(--surface) 8%, transparent); display: flex; flex-direction: column; gap: 8px; }
.ss-auth__helpcard strong { font-size: 15px; font-weight: 800; }
.ss-auth__helpcard span { font-size: 13.5px; line-height: 1.9; color: var(--brand-300); }
.ss-auth__helpcard a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 800; color: var(--surface); text-decoration: none; }

/* Layout: centred card (password reset, logout) */
.ss-auth--center { min-height: 100vh; box-sizing: border-box; padding: var(--space-10) var(--space-4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.ss-main:not(.ss-main--bare) .ss-auth--center { min-height: 0; padding: 0; } /* inside the site chrome (logged in) */
.ss-auth__card { width: 440px; max-width: 100%; box-sizing: border-box; padding: 40px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 20px; }
.ss-auth__card h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.5; }
.ss-auth__card h1.ss-auth__title--sm { font-size: 22px; }
.ss-auth__lead { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.ss-auth__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-auth__icon--success { background: var(--success-050); color: var(--success-700); }
.ss-auth__icon--danger { background: var(--danger-050); color: var(--danger-700); }
.ss-auth__icon .ss-notice__icon { margin: 0; }
.ss-auth__back { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.ss-inner, .ss-auth__stack { display: flex; flex-direction: column; gap: 20px; }
.ss-inner .form-group { margin: 0; }
.ss-auth__actions { display: flex; gap: 10px; }
.ss-auth__actions .ss-btn { flex: 1 1 0; }

/* Password strength (includes/pwstrength.tpl) */
.ss-pwstrength { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ss-pwstrength .progress {
  width: 188px; height: 5px; margin: 0; border-radius: 3px; background: var(--border); box-shadow: none; overflow: hidden;
  -webkit-mask: repeating-linear-gradient(to left, var(--ink) 0 44px, transparent 44px 48px);
          mask: repeating-linear-gradient(to left, var(--ink) 0 44px, transparent 44px 48px);
}
.ss-pwstrength .progress-bar { float: right; height: 100%; box-shadow: none; background: var(--faint); transition: width .2s; }
.ss-pwstrength .progress-bar-danger { background: var(--danger-500); }
.ss-pwstrength .progress-bar-warning { background: var(--accent-500); }
.ss-pwstrength .progress-bar-success { background: var(--success-500); }
.ss-pwstrength__label strong { font-weight: 700; color: var(--ink-secondary); }
.ss-pwstrength:has(.progress-bar-danger) .ss-pwstrength__label strong { color: var(--danger-700); }
.ss-pwstrength:has(.progress-bar-warning) .ss-pwstrength__label strong { color: var(--accent-700); }
.ss-pwstrength:has(.progress-bar-success) .ss-pwstrength__label strong { color: var(--success-700); }
.ss-pwtips .alert { margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--brand-200); border-radius: var(--radius-md); background: var(--brand-025); color: var(--ink-secondary); font-size: 12.5px; line-height: 1.8; }
#inputNewPassword2Msg .help-block { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--danger-700); }

@media (max-width: 1279.98px) {
  .ss-auth__panel, .ss-auth--register .ss-auth__panel { padding: 40px 56px; }
  .ss-auth__promo { padding: 48px; }
  .ss-auth__promo h2 { font-size: 30px; }
}
@media (max-width: 1023.98px) {
  .ss-auth--split, .ss-auth--register { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ss-auth__promo { display: none; }
  .ss-auth__panel, .ss-auth--register .ss-auth__panel { min-height: 100vh; padding: 20px 16px 24px; border-radius: 0; gap: 28px; }
  .ss-auth__form { width: 100%; max-width: 440px; margin-inline: auto; }
  .ss-auth__form--wide { max-width: none; }
  .ss-auth__head h1 { font-size: 24px; }
  .ss-auth__support { justify-content: center; }
  .ss-auth__submit { width: 100%; }
  .ss-auth__card { padding: 28px 20px; }
}
@media (max-width: 599.98px) {
  .ss-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ss-auth__actions { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   9. Page — shared parts of logged-in pages
   --------------------------------------------------------------------- */
.ss-page { display: flex; flex-direction: column; gap: var(--space-6); }
.ss-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.ss-pagehead__titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ss-pagehead__date { font-size: 13px; color: var(--muted); min-height: 20px; }
.ss-pagehead__title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.5; letter-spacing: -0.4px; color: var(--ink); }
.ss-pagehead__title--xl { font-size: 32px; letter-spacing: -0.5px; }
.ss-pagehead__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-pagehead__actions .ss-btn svg { flex-shrink: 0; }

.ss-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.ss-breadcrumb a { color: var(--muted); text-decoration: none; }
.ss-breadcrumb a:hover, .ss-breadcrumb a:focus { color: var(--brand-600); }
.ss-breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.ss-btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.ss-btn--soft:hover, .ss-btn--soft:focus { background: var(--brand-200); color: var(--brand-700); }
.ss-btn--danger:hover, .ss-btn--danger:focus { background: var(--danger-050); color: var(--danger-700); }
.ss-btn--on-dark { background: var(--surface); color: var(--brand-800); font-weight: 800; }
.ss-btn--on-dark:hover, .ss-btn--on-dark:focus { background: var(--brand-050); color: var(--brand-800); }
.ss-btn--accent { background: var(--accent-500); color: var(--ink); font-weight: 800; }
.ss-btn--accent:hover, .ss-btn--accent:focus { background: var(--accent-200); color: var(--ink); }
.ss-btn.disabled, .ss-btn[disabled] { opacity: .55; pointer-events: none; }

.ss-card__head { gap: 16px; }
.ss-card__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.ss-card__link { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ss-card--pad { padding: var(--space-6); }
.ss-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 8px; }
.ss-section-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--brand-600); }

.ss-empty { padding: 32px 24px; border-top: 1px solid var(--divider); text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ss-empty p { margin: 0; font-size: 14px; }
.ss-empty--sm { padding: 20px 24px; }
.ss-empty[hidden] { display: none; }
.is-danger { color: var(--danger-700) !important; }
.is-accent { color: var(--accent-700) !important; }
.is-success { color: var(--success-700) !important; }
/* Amounts take their direction from their own text: «۷۵۰٬۰۰۰ تومان» stays RTL, «$10.00 USD» LTR */
.ss-amount, .ss-listrow__end strong, .ss-svcgrid__amount strong, .ss-summary strong, .ss-home-due b, .ss-chip__value { unicode-bidi: plaintext; }
/* plaintext makes "$10.00 USD" a left-to-right paragraph, which would push it to the cell's left edge — keep cells right-aligned */
.ss-svcgrid__amount strong, .ss-invgrid__amount, .ss-summary strong { text-align: right; }

/* Bootstrap alerts (includes/alert.tpl, flash messages) in the page area */
.ss-main .alert { margin: 0 0 var(--space-4); padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.8; box-shadow: none; text-shadow: none; }
.ss-main .alert-success { background: var(--success-050); border: 1px solid var(--success-050); color: var(--success-700); }
.ss-main .alert-danger { background: var(--danger-050); border: 1px solid var(--danger-200); color: var(--danger-700); }
.ss-main .alert-warning { background: var(--accent-050); border: 1px solid var(--accent-200); color: var(--accent-900); }
.ss-main .alert-info { background: var(--brand-025); border: 1px solid var(--brand-200); color: var(--ink-secondary); }

/* Tabs built from a ul/li list (Bootstrap tab plugin needs li.active) */
ul.ss-tabs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--border); }
ul.ss-tabs > li > a { display: flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
ul.ss-tabs > li > a:hover, ul.ss-tabs > li > a:focus { color: var(--brand-600); background: transparent; }
ul.ss-tabs > li.active > a { font-weight: 800; color: var(--brand-600); border-bottom-color: var(--accent-500); }

/* Sub-tabs (Bootstrap .nav-tabs restyled as pills) */
.ss-subtabs.nav-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-4); padding: 0; border: 0; }
.ss-subtabs.nav-tabs::before, .ss-subtabs.nav-tabs::after { display: none; }
.ss-subtabs.nav-tabs > li { float: none; margin: 0; }
.ss-subtabs.nav-tabs > li > a { display: flex; align-items: center; height: 42px; margin: 0; padding: 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-secondary); font-size: 13.5px; font-weight: 600; }
.ss-subtabs.nav-tabs > li > a:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--surface-sunken); }
.ss-subtabs.nav-tabs > li.active > a, .ss-subtabs.nav-tabs > li.active > a:hover, .ss-subtabs.nav-tabs > li.active > a:focus { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }

/* Key / value table */
.ss-kv__row { display: flex; align-items: stretch; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-kv__row:first-child { border-top: 0; }
.ss-kv__key { flex: 0 0 240px; padding: 13px 24px; background: var(--surface-sunken); color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.ss-kv__val { flex: 1 1 auto; min-width: 0; padding: 13px 24px; color: var(--ink); word-break: break-word; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ss-kv__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--divider); }
.ss-kv--flat .ss-kv__key { background: transparent; flex-basis: 140px; }

/* List rows inside cards */
.ss-listrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--divider); color: var(--ink); text-decoration: none; }
.ss-listrow:hover, .ss-listrow:focus { background: var(--brand-025); color: var(--ink); text-decoration: none; }
.ss-listrow__main, .ss-listrow__end { display: flex; flex-direction: column; gap: 3px; }
.ss-listrow__end { align-items: flex-end; text-align: left; }
.ss-listrow strong { font-size: 14px; font-weight: 700; }
.ss-listrow__main span { font-size: 12.5px; color: var(--muted); }
.ss-listrow__end span { font-size: 12px; font-weight: 700; }
.ss-listrow--stack { flex-direction: column; align-items: stretch; gap: 6px; }
.ss-listrow--stack strong { line-height: 1.7; }
.ss-listrow--stack strong.is-unread::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--brand-600); vertical-align: middle; }
.ss-listrow__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ss-listrow__meta b { color: var(--brand-600); font-weight: 700; }

/* ---------------------------------------------------------------------
   10. Dashboard
   --------------------------------------------------------------------- */
.ss-home { gap: var(--space-7); }
.ss-home-credit { display: none; }
.ss-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.ss-stat { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.ss-stat:hover, .ss-stat:focus { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card), 0 0 0 1.5px var(--brand-200); }
.ss-stat__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-stat--warn .ss-stat__icon { background: var(--accent-050); color: var(--accent-700); }
.ss-stat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-stat__text strong { font-size: 28px; font-weight: 800; line-height: 1.2; }
.ss-stat__text span { font-size: 13.5px; color: var(--muted); }

.ss-home-due { align-items: center; }
.ss-home-due .ss-notice__icon { margin-top: 0; }
.ss-home-due__text { flex-grow: 1; }
.ss-home-due .ss-btn { flex-shrink: 0; height: 40px; }

.ss-home-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ss-home-side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }

.ss-svcrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 110px 18px; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--divider); color: var(--ink); text-decoration: none; }
.ss-svcrow:hover, .ss-svcrow:focus { background: var(--brand-025); color: var(--ink); text-decoration: none; }
.ss-svcrow__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-svcrow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-svcrow__name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-svcrow__meta { font-size: 12.5px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-svcrow__due { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ss-svcrow__due span { color: var(--muted); }
.ss-svcrow__due strong { font-weight: 600; }
.ss-svcrow__chevron { color: var(--faint); }

.ss-promo { display: flex; align-items: center; gap: 32px; padding: 32px 40px; border-radius: var(--radius-lg); background: var(--brand-800); color: var(--surface); }
.ss-promo__copy { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.ss-promo__badge { align-self: flex-start; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--accent-500); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.ss-promo h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.5; color: var(--surface); }
.ss-promo p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--brand-200); }
.ss-promo .ss-btn { flex-shrink: 0; height: 48px; padding: 0 24px; font-size: 14.5px; }

/* ---------------------------------------------------------------------
   11. Services list
   --------------------------------------------------------------------- */
.ss-table__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--divider); }
.ss-filter a { min-height: 38px; height: auto; }
.ss-filter a span { font-weight: 500; color: var(--muted); }
.ss-filter a.active span { color: inherit; }
.ss-filter a:hover, .ss-filter a:focus { text-decoration: none; color: var(--brand-700); }
.ss-filter a.active:hover, .ss-filter a.active:focus { color: var(--surface); }
.ss-search { position: relative; width: 300px; max-width: 100%; }
.ss-search .form-control { min-height: 40px; height: 40px; padding: 0 40px 0 14px; font-size: 13.5px; }
.ss-search svg { position: absolute; top: 12px; right: 14px; color: var(--faint); pointer-events: none; }

.ss-svcgrid { display: grid; grid-template-columns: minmax(0, 1fr) 170px 150px 150px 150px; align-items: center; gap: 0 12px; }
.ss-table__head { padding: 12px 24px; background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-table__row { padding: 16px 24px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-table__row[hidden] { display: none; }
.ss-svcgrid__product { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-svcgrid__product a { color: var(--ink); text-decoration: none; }
.ss-svcgrid__product a:hover, .ss-svcgrid__product a:focus { color: var(--brand-600); }
.ss-svcgrid__product .mono { font-size: 12.5px; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.ss-svcgrid__amount { display: flex; flex-direction: column; gap: 2px; }
.ss-svcgrid__amount span { font-size: 12px; color: var(--muted); }
.ss-svcgrid__label { display: none; }
.ss-svcgrid__action { justify-self: end; }
.ss-table__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); }
.ss-pager { display: flex; gap: 6px; }
.ss-pager button { min-width: 36px; height: 36px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.ss-pager button:disabled { color: var(--border-strong); cursor: default; }
.ss-pager button.is-current { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); font-weight: 700; }

/* ---------------------------------------------------------------------
   12. Service details
   --------------------------------------------------------------------- */
.ss-service__head { align-items: center; }
.ss-service__id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ss-service__icon { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-service__icon svg { width: 24px; height: 24px; }
.ss-service__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ss-service__titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ss-service__titlerow .ss-pagehead__title { font-size: 28px; }
.ss-service__host { font-size: 13px; color: var(--muted); text-align: right; }

.ss-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ss-summary > div { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--divider); }
.ss-summary > div:first-child { border-right: 0; }
.ss-summary span { font-size: 12.5px; color: var(--muted); }
.ss-summary strong { font-size: 15px; font-weight: 700; }

/* Old theme CSS paints #main-body white and frames the tab container */
body.ss-body section#main-body { background: transparent; padding: 0; }
.ss-service .product-details-tab-container { padding: 0; border: 0; background: transparent; box-shadow: none; }

.ss-service__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-service__actions .loading { margin-left: 6px; }
.ss-hookoutput { margin-bottom: var(--space-4); }
.ss-module { margin-top: var(--space-4); }
.module-client-area.ss-module { padding: 0; text-align: right; }
.tab-content > .tab-pane > .ss-section-head, #tabOverview > .ss-section-head { margin-bottom: var(--space-4); }

.ss-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; text-align: center; }
.ss-usage__item h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.ss-usage__item p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ss-usage__updated { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }

.ss-download { align-items: flex-start; }
.ss-download:first-child { border-top: 0; }
.ss-download p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ss-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
.ss-addon__actions { padding: 14px 24px; border-top: 1px solid var(--divider); }
.ss-form-narrow { max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.ss-form-narrow .form-group { margin: 0; }
.ss-form-narrow .form-control-feedback { display: none; }
.ss-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Responsive — pages 9–12 */
@media (max-width: 1023.98px) {
  .ss-page { gap: var(--space-4); }
  .ss-pagehead__title, .ss-pagehead__title--xl, .ss-service__titlerow .ss-pagehead__title { font-size: 24px; }
  .ss-home .ss-pagehead__actions { display: none; }

  .ss-home-credit { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--brand-800); color: var(--surface); }
  .ss-home-credit__label { font-size: 13px; color: var(--brand-300); }
  .ss-home-credit__value { margin-top: -12px; font-size: 24px; font-weight: 800; }
  .ss-home-credit__value small { font-size: 14px; font-weight: 600; }
  .ss-home-credit__actions { display: flex; gap: 8px; }
  .ss-home-credit__actions .ss-btn { flex: 1 1 0; }

  .ss-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ss-stat { padding: 14px 16px; border-radius: var(--radius-tile); box-shadow: none; }
  .ss-stat__icon { display: none; }
  .ss-stat__text strong { font-size: 22px; }
  .ss-stat__text span { font-size: 12.5px; }

  .ss-home-due { flex-wrap: wrap; }
  .ss-home-grid { grid-template-columns: minmax(0, 1fr); }
  .ss-svcrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .ss-svcrow__icon { width: 40px; height: 40px; border-radius: 50%; }
  .ss-svcrow__due, .ss-svcrow__chevron { display: none; }
  .ss-promo { flex-direction: column; align-items: stretch; padding: 24px; gap: 16px; }

  .ss-search { width: 100%; }
  .ss-table__head { display: none; }
  .ss-svcgrid { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .ss-svcgrid__product { grid-column: 1 / -1; }
  .ss-svcgrid__amount { grid-row: 2; grid-column: 1; }
  .ss-svcgrid__status { grid-row: 2; grid-column: 2; justify-self: end; }
  .ss-svcgrid__due { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .ss-svcgrid__label { display: inline; margin-left: 6px; }
  .ss-svcgrid__action { grid-column: 1 / -1; justify-self: stretch; }
  .ss-svcgrid__action .ss-btn { width: 100%; }
  .ss-table__row { padding: 14px 16px; }
  .ss-table__foot { flex-direction: column; }

  .ss-service__head { align-items: flex-start; }
  .ss-service__icon { width: 48px; height: 48px; }
  .ss-service__head .ss-pagehead__actions { width: 100%; }
  .ss-service__head .ss-pagehead__actions .ss-btn { flex: 1 1 0; }
  .ss-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-summary > div { padding: 14px 16px; border-right: 0; border-top: 1px solid var(--divider); }
  .ss-summary > div:nth-child(-n+2) { border-top: 0; }
  .ss-summary > div:nth-child(even) { border-right: 1px solid var(--divider); }
  .ss-kv__row { display: block; }
  .ss-kv__key { background: transparent; padding: 12px 16px 2px; font-size: 12px; }
  .ss-kv__val { padding: 0 16px 12px; }
  .ss-usage { grid-template-columns: minmax(0, 1fr); }
}

/* Extra notice tones */
.ss-notice--success { background: var(--success-050); color: var(--success-700); }
.ss-notice--neutral { background: var(--surface-sunken); border: 1px solid var(--divider); color: var(--ink-secondary); }

/* ---------------------------------------------------------------------
   13. Invoices list
   --------------------------------------------------------------------- */
.ss-summarycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.ss-summarycard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.ss-summarycard__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ss-summarycard__text > span { font-size: 13px; color: var(--muted); }
.ss-summarycard__text strong { font-size: 24px; font-weight: 800; line-height: 1.4; }
.ss-summarycard__text strong small { font-size: 13px; font-weight: 600; }
.ss-summarycard__text strong.ss-summarycard__none { font-size: 14px; font-weight: 600; color: var(--muted); }

.ss-invgrid { display: grid; grid-template-columns: 110px 160px 160px 170px minmax(0, 1fr) 120px; align-items: center; gap: 0 12px; }
.ss-invgrid__num { font-weight: 800; color: var(--ink); text-decoration: none; }
.ss-invgrid__num:hover, .ss-invgrid__num:focus { color: var(--brand-600); }
.ss-invgrid__amount { font-weight: 700; }
.ss-invgrid__label { display: none; }
.ss-invgrid__action { justify-self: end; }
.ss-table__row.is-cancelled .ss-invgrid__amount { color: var(--muted); text-decoration: line-through; }

/* ---------------------------------------------------------------------
   14. Invoice
   --------------------------------------------------------------------- */
.ss-invoice__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ss-invoice__tools { display: flex; gap: 8px; }
.ss-invoice__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: start; }
.ss-invoice__doc { padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.ss-invoice__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--divider); }
.ss-invoice__brand { display: flex; align-items: center; gap: 10px; }
.ss-invoice__title { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ss-invoice__title h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.4; }
.ss-invoice__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ss-invoice__parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--divider); }
.ss-invoice__parties address { margin: 8px 0 0; font-style: normal; font-size: 14px; line-height: 1.9; color: var(--ink-secondary); }
.ss-invoice__parties address strong { color: var(--ink); }
.ss-invoice__dates { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ss-invoice__dates > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ss-invoice__dates dt { font-weight: 400; color: var(--muted); }
.ss-invoice__dates dd { margin: 0; font-weight: 700; }

.ss-invoice__items { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ss-invoice__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 18px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-invoice__row:first-child { border-top: 0; }
.ss-invoice__row > span:last-child { flex-shrink: 0; font-weight: 700; text-align: left; }
.ss-invoice__row--head { padding: 12px 18px; background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-invoice__row--head > span:last-child { font-weight: 700; }
.ss-invoice__desc { line-height: 1.9; color: var(--ink-secondary); }
.ss-invoice__desc::first-line { font-weight: 700; color: var(--ink); }
.ss-invoice__taxmark { color: var(--muted); }
.ss-invoice__row--sum { color: var(--ink-secondary); }
.ss-invoice__row--sum > span:last-child { font-weight: 600; }
.ss-invoice__row--total { background: var(--brand-025); font-size: 16px; font-weight: 800; }
.ss-invoice__row--total > span:last-child { font-weight: 800; }

.ss-invoice__tx h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--brand-600); }
.ss-invoice__none { margin: 0; padding: 18px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 13.5px; color: var(--muted); text-align: center; }
.ss-invoice__txlist { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ss-invoice__txrow { display: grid; grid-template-columns: 140px 1fr 1fr 140px; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--divider); font-size: 13.5px; }
.ss-invoice__txrow:first-child { border-top: 0; }
.ss-invoice__txrow > span:last-child { font-weight: 700; text-align: left; }
.ss-invoice__txrow .ss-invoice__label { font-size: 11.5px; }
.ss-invoice__txrow--balance { grid-template-columns: 1fr auto; background: var(--surface-sunken); font-weight: 700; }

.ss-invoice__side { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-invoice-pay { display: flex; flex-direction: column; gap: 14px; }
.ss-invoice-pay__amount { font-size: 30px; font-weight: 800; line-height: 1.3; margin-top: -8px; }
.ss-invoice-pay__method { display: flex; flex-direction: column; gap: 4px; }
.ss-invoice-pay__gateway { margin: 0; }
.ss-invoice-pay__gateway label { font-size: 14px; font-weight: 700; }
/* The gateway's own pay button ({$paymentbutton}) as the primary button */
.ss-invoice-pay__button form { margin: 0; }
.ss-invoice-pay__button input[type="submit"], .ss-invoice-pay__button button, .ss-invoice-pay__button .btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 0 18px;
  border: 0; border-radius: var(--radius-sm); background: var(--brand-600); color: var(--surface);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: none;
}
.ss-invoice-pay__button input[type="submit"]:hover, .ss-invoice-pay__button button:hover, .ss-invoice-pay__button .btn:hover { background: var(--brand-800); color: var(--surface); }
.ss-invoice-pay__button img { max-width: 100%; height: auto; }

.ss-invoice-credit h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--brand-600); }
.ss-invoice-credit p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.ss-invoice-credit p strong { color: var(--ink); }
.ss-invoice-credit__form { display: flex; gap: 8px; margin: 0; }
.ss-invoice-credit__form .form-control { flex: 1 1 auto; min-width: 0; }
.ss-invoice-credit__form .ss-btn { flex-shrink: 0; border-color: var(--brand-600); color: var(--brand-600); }

.ss-invoice-error { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ss-invoice-error p { margin: 0; color: var(--muted); }
.ss-paybar { display: none; }

/* ---------------------------------------------------------------------
   15. Add funds
   --------------------------------------------------------------------- */
.ss-addfunds__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ss-addfunds__form { display: flex; flex-direction: column; gap: 28px; }
.ss-creditcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: var(--radius-lg); background: var(--brand-800); color: var(--surface); }
.ss-creditcard > div { display: flex; flex-direction: column; gap: 6px; }
.ss-creditcard span { font-size: 13px; color: var(--brand-300); }
.ss-creditcard strong { font-size: 28px; font-weight: 800; line-height: 1.3; }
.ss-creditcard strong small { font-size: 14px; font-weight: 600; }
.ss-creditcard svg { color: var(--accent-500); flex-shrink: 0; }
.ss-addfunds__fields { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.ss-addfunds__fields fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ss-addfunds__fields .ss-label, .ss-addfunds__fields .ss-field > label { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.ss-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ss-preset { height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ss-preset:hover { border-color: var(--brand-600); }
.ss-preset[aria-pressed="true"] { border: 2px solid var(--brand-600); background: var(--brand-025); color: var(--brand-700); }
.ss-preset[hidden], .ss-field[hidden] { display: none; }
.ss-addfunds__fields .help { margin-top: 2px; }
.ss-addfunds__note { margin: -8px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); text-align: center; }
.ss-addfunds__log .ss-listrow { cursor: default; }
.ss-addfunds__log .ss-listrow:hover { background: transparent; }

/* Responsive — pages 13–15 */
@media (max-width: 1023.98px) {
  .ss-summarycards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ss-summarycard { padding: 16px 18px; }
  .ss-summarycard__text strong { font-size: 20px; }

  .ss-table__head.ss-invgrid { display: none; }
  .ss-invgrid { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ss-invgrid__num { grid-column: 1; }
  .ss-invgrid__status { grid-column: 2; grid-row: 1; justify-self: end; }
  .ss-invgrid__date { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .ss-invgrid__label { display: inline; margin-left: 6px; }
  .ss-invgrid__amount { grid-column: 1; }
  .ss-invgrid__action { grid-column: 2; grid-row: 4; }

  .ss-invoice__tools .ss-btn { height: 40px; }
  .ss-invoice__grid { grid-template-columns: minmax(0, 1fr); }
  .ss-invoice__side { order: -1; }
  .ss-invoice__doc { padding: 20px 16px; gap: 20px; }
  .ss-invoice__head { flex-direction: column-reverse; gap: 12px; padding-bottom: 20px; }
  .ss-invoice__brand { display: none; }
  .ss-invoice__parties { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
  .ss-invoice__row { padding: 14px; }
  .ss-invoice__txrow { grid-template-columns: minmax(0, 1fr) auto; }
  .ss-invoice-pay__button { display: none; }
  .ss-paybar { display: block; position: fixed; right: 0; left: 0; bottom: 0; z-index: 990; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
  body.ss-has-tabbar .ss-paybar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  body.ss-has-paybar { padding-bottom: 80px; }
  body.ss-has-paybar.ss-has-tabbar { padding-bottom: calc(var(--tabbar-h) + 80px + env(safe-area-inset-bottom, 0px)); }
  body.ss-has-paybar.ss-has-tabbar #nh-bell { bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px)) !important; }

  .ss-addfunds__grid { grid-template-columns: minmax(0, 1fr); }
  .ss-creditcard { padding: 20px; }
  .ss-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Print: only the invoice document */
@media print {
  .ss-header, .ss-tabbar, .ss-mobilemenu, .ss-footer, .ss-invoice__bar, .ss-invoice__side, .ss-paybar, .ss-notice, #nh-bell { display: none !important; }
  body.ss-body { background: var(--surface); padding: 0 !important; min-height: 0; }
  .ss-main { padding: 0; }
  .ss-container { width: 100%; }
  .ss-invoice__grid { display: block; }
  .ss-invoice__doc { box-shadow: none; padding: 0; }
  .ss-invoice__brand { display: flex !important; }
}

/* ---------------------------------------------------------------------
   16. Domains   reference: Domains.png, DomainManage.png
   --------------------------------------------------------------------- */
/* Domains list */
.ss-domains__expiring { align-items: center; }
.ss-domains__expiring .ss-notice__icon { margin-top: 0; }
.ss-domains__expiring-text { flex-grow: 1; }
.ss-domains__expiring b { font-weight: 700; color: var(--accent-900); }
.ss-domains__expiring .ss-card__link { color: var(--brand-600); font-weight: 700; }
.ss-domains form { margin: 0; }
.ss-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ss-bulk__label { font-size: 13px; color: var(--muted); }
.ss-bulk .ss-btn { font-weight: 700; }
.ss-bulk .ss-btn[disabled] { opacity: .5; pointer-events: none; }
.ss-domgrid { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 150px 150px 110px; align-items: center; gap: 0 12px; }
.ss-domgrid__check { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: var(--brand-600); cursor: pointer; }
.ss-domgrid__name { min-width: 0; text-align: right; }
.ss-domgrid__name a { font-size: 14px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ss-domgrid__name a:hover, .ss-domgrid__name a:focus { color: var(--brand-600); }
.ss-table__row.is-muted .ss-domgrid__name a { color: var(--muted); }
.ss-domgrid__soon { font-weight: 700; }
.ss-domgrid__label { display: none; }
.ss-domgrid__action { justify-self: end; }
.ss-domains__selected:empty { display: none; }

/* Domain management: head, summary strip, two-column layout */
.ss-domain__head { align-items: center; }
.ss-domain__titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0; }
body.ss-body h1.ss-domain__name { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }
.ss-domain__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss-domain__tabs { margin-top: -4px; }
.ss-domain__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ss-domain__grid--single { grid-template-columns: minmax(0, 1fr); }
.ss-domain__main, .ss-domain__side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.ss-domain__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-domain .moduleoutput { font-size: 14px; line-height: 1.9; }

/* Side cards (nameservers, transfer, contacts) */
.ss-sidecard { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; overflow: visible; }
.ss-sidecard h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-sidecard__form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ss-sidecard__form .form-control { min-height: 44px; height: 44px; font-size: 13px; }
.ss-sidecard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.ss-sidecard__text { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.ss-sidecard__label { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.ss-domain__release { padding-top: 14px; border-top: 1px solid var(--divider); }
.ss-radio { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; }
.ss-radio input[type="radio"] { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: var(--brand-600); cursor: pointer; }
.ss-sidecard .form-control[disabled] { background: var(--surface-sunken); color: var(--faint); }

/* Domain addons rows */
.ss-domaddon { margin: 0; }
.ss-domaddon__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ss-domaddon__text strong { font-size: 14px; font-weight: 700; }
.ss-domaddon__text span { font-size: 12.5px; color: var(--muted); }
.ss-domaddon__actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

/* DNS records */
.ss-dns form { margin: 0; }
.ss-dns__hint { font-size: 12.5px; color: var(--muted); }
.ss-dns__grid { display: grid; grid-template-columns: 96px 150px minmax(0, 1fr) 80px 44px; align-items: center; gap: 12px; }
.ss-dns__row { padding: 10px 24px; border-top: 1px solid var(--divider); }
.ss-dns__row[hidden] { display: none; }
.ss-dns__type { justify-self: start; max-width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--brand-050); color: var(--brand-700); font-family: var(--font-mono); font-size: 13px; font-weight: 500; direction: ltr; cursor: pointer; }
.ss-dns__input { width: 100%; min-width: 0; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: 13px; text-align: right; }
.ss-dns__input:hover { border-color: var(--border); }
.ss-dns__input:focus { border-color: var(--brand-600); background: var(--surface); box-shadow: var(--focus-ring); outline: none; }
.ss-dns__na { font-size: 13px; color: var(--faint); }
.ss-dns__del { justify-self: end; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--danger-050); color: var(--danger-700); font-size: 16px; line-height: 1; cursor: pointer; }
.ss-dns__del:hover, .ss-dns__del:focus { background: var(--danger-200); }
.ss-dns__new { padding: 14px 24px; border-top: 1px solid var(--divider); background: var(--surface-sunken); }
.ss-dns__new .form-control { min-height: 40px; height: 40px; padding: 0 10px; font-size: 13px; }
.ss-dns__new select.form-control { padding: 0 8px; direction: ltr; }
.ss-dns__add { justify-self: end; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--brand-600); color: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ss-dns__add:hover, .ss-dns__add:focus { background: var(--brand-800); }
.ss-dns__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); }
.ss-dns__external { text-align: center; }

/* Contacts */
.ss-contacts { display: flex; flex-direction: column; gap: var(--space-6); margin: 0; }
.ss-contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--space-6); align-items: start; }
.ss-contacts__pick { padding-right: 27px; }
.ss-contacts__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 14px; border-top: 1px solid var(--divider); }
.ss-contacts .form-control[disabled] { background: var(--surface-sunken); color: var(--faint); }

/* Secondary domain pages (unchanged WHMCS markup inside a card) */
.ss-domain__legacy { font-size: 14px; line-height: 1.9; }
.ss-domain__legacy h3, .ss-domain__legacy h4 { margin: 0 0 12px; font-weight: 800; color: var(--brand-600); }
.ss-domain__legacy h3 { font-size: 18px; }
.ss-domain__legacy h4 { margin-top: 20px; font-size: 15px; }
.ss-domain__legacy form { margin: 0 0 var(--space-4); }
.ss-domain__legacy .form-horizontal .control-label { font-size: 13px; font-weight: 700; }
.ss-domain__legacy .table { margin-bottom: var(--space-4); }
.ss-domain__legacy .table > thead > tr > th { border-bottom: 1px solid var(--border); background: var(--surface-sunken); font-size: 12.5px; color: var(--muted); }
.ss-domain__legacy .table > tbody > tr > td { border-top: 1px solid var(--divider); vertical-align: middle; }
.ss-domain__legacy .btn { min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); font-weight: 700; }
.ss-domain__legacy .btn-primary, .ss-domain__legacy .btn-success { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }
.ss-domain__legacy .btn-danger { border-color: var(--danger-200); background: var(--surface); color: var(--danger-700); }
.ss-domain__legacy .btn-default { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }

/* Responsive — page 16 */
@media (max-width: 1023.98px) {
  .ss-table__head.ss-domgrid { display: none; }
  .ss-bulk { width: 100%; }
  .ss-bulk__label { width: 100%; }
  .ss-domgrid { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 10px; }
  .ss-domgrid > span:first-child { grid-row: 1; grid-column: 1; }
  .ss-domgrid__name { grid-row: 1; grid-column: 2; }
  .ss-domgrid__status { grid-row: 1; grid-column: 3; justify-self: end; }
  .ss-domgrid__date { grid-column: 2 / -1; font-size: 13px; color: var(--muted); }
  .ss-domgrid__label { display: inline; margin-left: 6px; }
  .ss-domgrid__action { grid-column: 2 / -1; justify-self: stretch; }
  .ss-domgrid__action .ss-btn { width: 100%; }

  .ss-domain__head { align-items: flex-start; }
  .ss-domain__head .ss-pagehead__actions, .ss-domain__head .ss-pagehead__actions .ss-btn { width: 100%; }
  body.ss-body h1.ss-domain__name { font-size: 22px; }
  .ss-domain__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-domain__tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; scrollbar-width: none; }
  .ss-domain__tabs > li { flex-shrink: 0; }
  .ss-domain__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ss-domain__main, .ss-domain__side { gap: var(--space-4); }
  .ss-sidecard { padding: 18px 16px; }
  .ss-domaddon { flex-direction: column; align-items: stretch; padding: 14px 16px; }

  .ss-dns .ss-card__head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 16px; }
  .ss-dns .ss-table__head { display: none; }
  .ss-dns__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
  .ss-dns__row, .ss-dns__new { padding: 12px 16px; }
  .ss-dns__row .ss-dns__type { grid-column: 1; grid-row: 1; }
  .ss-dns__row input[name="dnsrecordhost[]"] { grid-column: 2; grid-row: 1; }
  .ss-dns__row .ss-dns__del { grid-column: 3; grid-row: 1; }
  .ss-dns__row input[name="dnsrecordaddress[]"] { grid-column: 1 / -1; }
  .ss-dns__prio { grid-column: 1 / -1; }
  .ss-dns__prio:has(.ss-dns__na) { display: none; }
  .ss-dns__new select { grid-column: 1; }
  .ss-dns__new input[name="dnsrecordhost[]"] { grid-column: 2 / -1; }
  .ss-dns__new input[name="dnsrecordaddress[]"] { grid-column: 1 / -1; }
  .ss-dns__new input[name="dnsrecordpriority[]"] { grid-column: 1 / 3; }
  .ss-dns__foot { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .ss-dns__foot .ss-form-actions .ss-btn { flex: 1 1 0; }

  .ss-contacts__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ss-contacts__fields { grid-template-columns: minmax(0, 1fr); }
  .ss-contacts__actions .ss-btn { flex: 1 1 0; }
  .ss-domain__legacy { padding: 18px 16px; }
  .ss-domain__legacy .form-horizontal .form-group > [class*="col-"] { width: 100%; }
  .ss-domain__legacy .form-horizontal .control-label { text-align: right; }
}

/* ---------------------------------------------------------------------
   17. Support   reference: Tickets.png, TicketNew.png, TicketView.png
   --------------------------------------------------------------------- */
/* Shared form-card parts */
.ss-formcard__title { margin: 0 0 18px; font-size: 18px; font-weight: 800; color: var(--brand-600); }
legend.ss-formcard__title { padding: 0; border: 0; font-size: 15px; line-height: 1.8; color: var(--ink); }
.ss-label { display: block; margin: 0 0 7px; padding: 0; border: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-sidecard__text a { font-weight: 700; }

/* Tickets list */
.ss-tktgrid { display: grid; grid-template-columns: minmax(0, 1fr) 160px 170px 150px; align-items: center; gap: 0 12px; }
a.ss-table__row { display: grid; color: var(--ink); text-decoration: none; }
a.ss-table__row:hover, a.ss-table__row:focus { background: var(--brand-025); color: var(--ink); text-decoration: none; }
a.ss-table__row[hidden] { display: none; }
.ss-tktgrid__subject { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-tktgrid__subject strong { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.ss-table__row.is-unread .ss-tktgrid__subject strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--brand-600); vertical-align: middle; }
.ss-tktgrid__num { align-self: flex-start; font-size: 12.5px; color: var(--muted); }
.ss-tktgrid__dept { font-size: 13.5px; }
.ss-tktgrid__date { font-size: 13.5px; color: var(--ink-secondary); }
.ss-tktgrid__label { display: none; }
.ss-empty--first { border-top: 0; }

.ss-contactcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.ss-contactcard { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.ss-contactcard:hover, .ss-contactcard:focus { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card), 0 0 0 1.5px var(--brand-200); }
.ss-contactcard__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-contactcard--accent .ss-contactcard__icon { background: var(--accent-050); color: var(--accent-700); }
.ss-contactcard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-contactcard__text span { font-size: 12.5px; color: var(--muted); }
.ss-contactcard__text strong { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }

/* New ticket */
.ss-ticketnew__grid, .ss-ticket__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ss-ticketnew__side, .ss-ticket__side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.ss-deptcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ss-deptcard { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.ss-deptcard:hover, .ss-deptcard:focus { border-color: var(--brand-600); background: var(--brand-025); color: var(--ink); text-decoration: none; }
.ss-deptcard strong { font-size: 15px; font-weight: 800; }
.ss-deptcard span { font-size: 12.5px; line-height: 1.8; color: var(--muted); }

.ss-ticketform { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.ss-ticketform__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.ss-ticketform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.ss-deptpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ss-deptpick__item { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 400; cursor: pointer; }
.ss-deptpick__item input { flex-shrink: 0; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--brand-600); }
.ss-deptpick__item:has(input:checked) { border: 2px solid var(--brand-600); padding: 15px; background: var(--brand-025); }
.ss-deptpick__item:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.ss-deptpick__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ss-deptpick__text strong { font-size: 14.5px; font-weight: 800; }
.ss-deptpick__text span { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ss-segment { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-sm); background: var(--neutral-100); }
.ss-segment label { flex: 1 1 0; margin: 0; cursor: pointer; }
.ss-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ss-segment span { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ss-segment input:checked + span { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-card); }
.ss-segment input:focus-visible + span { box-shadow: var(--focus-ring); }

.ss-attach { display: flex; flex-direction: column; gap: 10px; }
.ss-attach__drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; margin: 0; padding: 12px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--muted); font-size: 13px; font-weight: 400; text-align: center; cursor: pointer; }
.ss-attach__drop svg { color: var(--brand-600); flex-shrink: 0; }
.ss-attach__drop:hover { border-color: var(--brand-600); background: var(--brand-025); }
.ss-attach__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ss-attach__input:focus-visible + #fileUploadsContainer, .ss-attach:has(.ss-attach__input:focus-visible) .ss-attach__drop { box-shadow: var(--focus-ring); }
#fileUploadsContainer .form-control { margin-top: 8px; padding-top: 10px; }
.ss-attach__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ss-attach__list[hidden] { display: none; }
.ss-attach__list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13px; }
.ss-attach__list button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--danger-700); font-size: 16px; line-height: 1; cursor: pointer; }
.ss-attach__list button:hover { background: var(--danger-050); }
.ss-attach__more { align-self: flex-start; }
.ss-attach__hint { margin: 0; font-size: 12px; color: var(--muted); }
.ss-ticketform__actions { justify-content: flex-start; }
#customFieldsContainer:empty, .ss-ticketform__captcha:not(:has(*)) { display: none; }
#customFieldsContainer .form-group { margin-bottom: 14px; }
#customFieldsContainer label { font-size: 13px; font-weight: 700; }

.ss-tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ss-tips li { position: relative; padding-right: 16px; font-size: 13.5px; line-height: 1.8; color: var(--ink-secondary); }
.ss-tips li::before { content: ""; position: absolute; top: 10px; right: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-500); }
.ss-kbside:has(#autoAnswerSuggestions.hidden) { display: none; }
#autoAnswerSuggestions { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ss-kblinks { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ss-kblinks a { font-size: 14px; font-weight: 700; text-decoration: none; }

/* WHMCS markdown editor (bootstrap-markdown) */
.md-editor { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.md-editor.active { border-color: var(--brand-600); box-shadow: var(--focus-ring); }
.md-editor > .md-header { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--divider); background: var(--surface-sunken); direction: ltr; }
.md-editor .btn-group { display: inline-flex; float: none; margin: 0 !important; }
.md-editor .btn-group .btn { height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-secondary); font-size: 13px; box-shadow: none; }
.md-editor .btn-group .btn:hover, .md-editor .btn-group .btn.active { background: var(--brand-050); color: var(--brand-700); }
.md-editor > textarea.md-input, .md-editor > .md-preview { min-height: 220px; border: 0 !important; border-radius: 0; box-shadow: none !important; padding: 14px 16px; line-height: 1.9; resize: vertical; }
.md-editor > .md-footer, .markdown-editor-status { padding: 6px 12px; border-top: 1px solid var(--divider); font-size: 12px; color: var(--muted); }

/* Submitted / done card */
.ss-done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; }
.ss-done__icon .ss-tick { width: 56px; height: 56px; background: var(--success-050); color: var(--success-700); }
.ss-done__icon .ss-tick svg { width: 26px; height: 26px; }
.ss-done__title { margin: 0; font-size: 22px; font-weight: 800; }
.ss-done__text { margin: 0; max-width: 520px; font-size: 14px; line-height: 2; color: var(--ink-secondary); }

/* Ticket view */
.ss-ticket__head { align-items: center; }
.ss-ticket__titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0; }
.ss-ticket__titlerow .ss-pagehead__title { font-size: 28px; overflow-wrap: anywhere; }
.ss-ticket__main { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.ss-thread { display: flex; flex-direction: column; gap: 18px; }
.ss-msg { margin-left: 64px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.ss-msg--staff { margin-left: 0; margin-right: 64px; border: 1px solid var(--brand-200); background: var(--brand-025); box-shadow: none; }
.ss-msg__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ss-msg__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--brand-600); color: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.ss-msg__avatar--staff { background: var(--surface); box-shadow: var(--shadow-card); }
.ss-msg__avatar--staff .ss-logo { width: 26px; height: 26px; }
.ss-msg__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-msg__who strong { font-size: 15px; font-weight: 800; }
.ss-msg__who > span { font-size: 12.5px; color: var(--muted); }
.ss-msg__badge { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--brand-600); color: var(--surface); font-size: 11px; font-weight: 700; vertical-align: middle; }
.ss-msg__body { font-size: 14.5px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.ss-msg__body p { margin: 0 0 10px; }
.ss-msg__body p:last-child { margin-bottom: 0; }
.ss-msg__body pre, .ss-msg__body code { direction: ltr; text-align: left; }
.ss-msg__body pre { padding: 12px 14px; border: 0; border-radius: var(--radius-sm); background: var(--neutral-100); white-space: pre-wrap; }
.ss-msg__body img { max-width: 100%; height: auto; }
.ss-msg .ss-msg__files { padding: 0; background: transparent; border: 0; }
.ss-msg__files { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ss-msg__file { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); font-size: 13px; text-decoration: none; }
.ss-msg--staff .ss-msg__file { background: var(--surface); }
.ss-msg__file:hover, .ss-msg__file:focus { color: var(--brand-700); text-decoration: none; }
.ss-msg__file.is-removed { color: var(--faint); text-decoration: line-through; }
.ss-msg__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ss-msg__rate { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--brand-200); font-size: 13px; color: var(--muted); }
/* WHMCS rating stars: markup order 5→1; left-to-right so the first stars on the right fill first */
.ss-msg .rating, .ss-msg .rating-done { display: inline-flex; direction: ltr; gap: 4px; }
.ss-msg .rating .star, .ss-msg .rating-done .star { display: inline-block; width: 22px; font-size: 20px; line-height: 1; text-align: center; color: var(--faint); }
.ss-msg .rating .star { cursor: pointer; }
.ss-msg .rating span.star::before, .ss-msg .rating-done span.star::before, .ss-msg .rating span.star.active::before, .ss-msg .rating-done span.star.active::before { content: "★" !important; font-family: inherit !important; color: inherit !important; }
.ss-msg .rating .star:hover, .ss-msg .rating .star:hover ~ .star, .ss-msg .rating-done .star.active { color: var(--accent-500); }
.ss-ticket__reply form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ss-ticket__replyactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ss-ticket__replyactions .ss-btn--primary { margin-right: auto; }
.ss-ticket__replyactions label.ss-btn { margin: 0; cursor: pointer; }
.ss-infolist { margin: 0; display: flex; flex-direction: column; }
.ss-infolist > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-infolist > div:first-child { border-top: 0; padding-top: 0; }
.ss-infolist dt { font-weight: 400; color: var(--muted); }
.ss-infolist dd { margin: 0; font-weight: 700; text-align: left; }
.ss-infolist .ss-infolist__stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.ss-infolist__stack dd { text-align: right; }
.ss-infolist__stack a { text-decoration: none; }

/* Ticket feedback */
.ss-feedback { display: flex; flex-direction: column; gap: var(--space-5); margin: 0; }
.ss-feedback__staff { display: flex; flex-direction: column; gap: 16px; }
.ss-feedback__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.ss-feedback__set legend { margin-bottom: 12px; }
.ss-scale { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ss-scale__end { font-size: 12.5px; color: var(--muted); }
.ss-scale label { margin: 0; cursor: pointer; }
.ss-scale input { position: absolute; opacity: 0; pointer-events: none; }
.ss-scale label span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; }
.ss-scale input:checked + span { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }
.ss-scale input:focus-visible + span { box-shadow: var(--focus-ring); }

/* ---------------------------------------------------------------------
   18. Account   reference: Account.png, Security.png
   --------------------------------------------------------------------- */
.ss-accthead { display: flex; align-items: center; gap: 18px; }
.ss-accthead__avatar { width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; background: var(--brand-600); color: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.ss-accthead__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-accthead__meta { font-size: 13.5px; color: var(--muted); }
.ss-accttabs { margin-top: -6px; }
.ss-acctform { display: flex; flex-direction: column; gap: var(--space-5); margin: 0; }
.ss-formgrid { display: grid; gap: 16px; }
.ss-formgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ss-formgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss-formgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss-formgrid__full { grid-column: 1 / -1; }
.ss-formgrid .ss-field { min-width: 0; }
.ss-formgrid .ss-field > label { margin: 0; }
.ss-formgrid select.form-control, .ss-acctform select { padding: 0 12px; }
.ss-acctform #country, .ss-acctform select[name="country"] { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; }
.ss-custom .control { display: flex; flex-direction: column; gap: 6px; }
.ss-custom .control .form-control, .ss-custom .control input[type="text"], .ss-custom .control select { width: 100%; }
.ss-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: 4px 0; font-weight: 400; cursor: pointer; }
.ss-switchrow + .ss-switchrow, .ss-switchrow + .ss-emailprefs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--divider); }
.ss-switchrow__text { display: flex; flex-direction: column; gap: 3px; }
.ss-switchrow__text strong { font-size: 14.5px; font-weight: 800; }
.ss-switchrow__text span { font-size: 12.5px; color: var(--muted); }
.ss-switch { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 44px; height: 24px; margin: 0; border-radius: var(--radius-pill); background: var(--border-strong); cursor: pointer; transition: background .15s; }
.ss-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: right .15s; }
.ss-switch:checked { background: var(--brand-600); }
.ss-switch:checked::after { right: 23px; }
.ss-switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ss-emailprefs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.ss-emailprefs legend { grid-column: 1 / -1; margin: 0 0 6px; padding: 0; border: 0; font-size: 13px; font-weight: 700; color: var(--ink); }

.ss-security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
.ss-security__col { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.ss-pwcard__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ss-pwcard__form .form-group { margin: 0; }
.ss-pwcard__form .form-control-feedback { display: none; }
.ss-twofa__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ss-twofa__head .ss-formcard__title { margin-bottom: 12px; }
.ss-twofa__head .hidden, .ss-twofa .ss-btn.hidden { display: none; }
.ss-twofa__text { margin: 0 0 18px; font-size: 13.5px; line-height: 2; color: var(--ink-secondary); }
.ss-linked .btn { border-radius: var(--radius-sm); font-weight: 700; }
.ss-linked table { width: 100%; margin-top: 12px; font-size: 13px; }

/* Account pages from six (contacts, payment methods, e-mails) */
.ss-legacy { font-size: 14px; line-height: 1.9; }
.ss-legacy h2, .ss-legacy h3, .ss-legacy h4 { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--brand-600); }
.ss-legacy .form-group { margin-bottom: 14px; }
.ss-legacy label { font-size: 13px; font-weight: 700; }
.ss-legacy .table { margin-bottom: var(--space-4); }
.ss-legacy .table > thead > tr > th { border-bottom: 1px solid var(--border); background: var(--surface-sunken); font-size: 12.5px; color: var(--muted); }
.ss-legacy .table > tbody > tr > td { border-top: 1px solid var(--divider); vertical-align: middle; }
.ss-legacy .btn { min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 700; }
.ss-legacy .btn-primary, .ss-legacy .btn-success { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }
.ss-legacy .btn-danger { border-color: var(--danger-200); background: var(--surface); color: var(--danger-700); }
.ss-legacy .btn-default { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }

/* ---------------------------------------------------------------------
   19. Knowledgebase   reference: KnowledgeBase.png
   --------------------------------------------------------------------- */
.ss-kbhero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; border-radius: var(--radius-lg); background: var(--brand-800); color: var(--surface); text-align: center; }
body.ss-body .ss-kbhero h1 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.5; color: var(--surface); }
.ss-kbhero p { margin: 0; font-size: 15px; color: var(--brand-200); }
.ss-kbsearch { display: flex; gap: 8px; width: 100%; max-width: 656px; margin: 0; padding: 8px; border-radius: var(--radius-md); background: var(--surface); }
.ss-kbsearch .form-control { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 0; box-shadow: none; font-size: 14.5px; }
.ss-kbsearch .form-control:focus { border: 0; box-shadow: none; }
.ss-kbsearch:focus-within { box-shadow: var(--focus-ring); }
.ss-kbsearch .ss-btn { flex-shrink: 0; height: 48px; padding: 0 28px; }
.ss-kb__head .ss-kbsearch { max-width: 420px; padding: 4px; border: 1px solid var(--border-strong); }
.ss-kb__head .ss-kbsearch .form-control { min-height: 40px; }
.ss-kb__head .ss-kbsearch .ss-btn { height: 40px; padding: 0 18px; }
.ss-kbcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.ss-kbcats--sub { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ss-kbcat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.ss-kbcat:hover, .ss-kbcat:focus { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card), 0 0 0 1.5px var(--brand-200); }
.ss-kbcat__icon { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-kbcat__icon--accent { background: var(--accent-050); color: var(--accent-700); }
.ss-kbcat strong { font-size: 16px; font-weight: 800; }
.ss-kbcat__desc { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ss-kbcat__count { font-size: 12.5px; color: var(--muted); }
.ss-kbrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--divider); color: var(--ink); text-decoration: none; }
.ss-kbrow:hover, .ss-kbrow:focus { background: var(--brand-025); color: var(--ink); text-decoration: none; }
.ss-kbrow__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-kbrow__text strong { font-size: 15px; font-weight: 800; }
.ss-kbrow__text span { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ss-kbrow__chevron { flex-shrink: 0; color: var(--faint); }
.ss-kbrow__edit { display: block; padding: 0 24px 10px; font-size: 12px; }
.ss-kb__head { align-items: center; }
.ss-kb__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ss-kb__side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.ss-kb__side .ss-kbrow { padding: 14px 20px; }
.ss-kb__side .ss-kbrow__text span { display: none; }
.ss-kbarticle { display: flex; flex-direction: column; gap: 20px; }
.ss-kbarticle__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ss-kbarticle__head .ss-pagehead__title { font-size: 26px; }
.ss-kbarticle__content { font-size: 15px; line-height: 2.1; color: var(--ink); overflow-wrap: anywhere; }
.ss-kbarticle__content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ss-kbarticle__content pre, .ss-kbarticle__content code { direction: ltr; text-align: left; font-family: var(--font-mono); }
.ss-kbarticle__content pre { padding: 14px 16px; border: 0; border-radius: var(--radius-sm); background: var(--neutral-100); white-space: pre-wrap; }
.ss-kbarticle__content table { width: 100%; margin: 12px 0; border-collapse: collapse; }
.ss-kbarticle__content td, .ss-kbarticle__content th { padding: 8px 10px; border: 1px solid var(--border); }
.ss-kbarticle__tags { margin: 0; font-size: 13px; color: var(--muted); }
.ss-kbvote { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding-top: 18px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--ink-secondary); }

/* Responsive — pages 17–19 */
@media (max-width: 1023.98px) {
  .ss-table__head.ss-tktgrid { display: none; }
  .ss-tktgrid { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ss-tktgrid__subject { grid-column: 1; grid-row: 1; }
  .ss-tktgrid__status { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .ss-tktgrid__dept, .ss-tktgrid__date { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .ss-tktgrid__label { display: inline; margin-left: 6px; }
  .ss-contactcards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ss-contactcard { padding: 16px; box-shadow: none; }

  .ss-ticketnew__grid, .ss-ticket__grid, .ss-kb__grid, .ss-security { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ss-ticketnew__side, .ss-ticket__side, .ss-kb__side, .ss-security__col { gap: var(--space-4); }
  .ss-ticket__side { order: -1; }
  .ss-ticketform__actions .ss-btn { flex: 1 1 0; }
  .ss-msg, .ss-msg--staff { margin: 0; padding: 16px; }
  .ss-ticket__titlerow .ss-pagehead__title { font-size: 22px; }
  .ss-ticket__replyactions .ss-btn--primary { width: 100%; margin: 0; }

  .ss-accthead__avatar { width: 52px; height: 52px; font-size: 22px; }
  .ss-accttabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; scrollbar-width: none; }
  .ss-accttabs > li { flex-shrink: 0; }
  .ss-formgrid--2, .ss-formgrid--3, .ss-formgrid--4 { grid-template-columns: minmax(0, 1fr); }
  .ss-acctform > .ss-form-actions .ss-btn { flex: 1 1 0; }

  .ss-kbhero { padding: 32px 16px; }
  body.ss-body .ss-kbhero h1 { font-size: 24px; }
  .ss-kbsearch .ss-btn { padding: 0 16px; }
  .ss-kbcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ss-kbcat { padding: 16px; box-shadow: none; }
  .ss-kbrow { padding: 14px 16px; }
  .ss-kb__head .ss-kbsearch { max-width: none; }
  .ss-kbarticle__head .ss-pagehead__title { font-size: 21px; }
}

/* ---------------------------------------------------------------------
   20. Final responsive pass   reference: Mobile.png, MobileInvoice.png, MobileService.png
   --------------------------------------------------------------------- */
/* Back bar on inner pages (includes/header.tpl sets .ss-header--back) */
.ss-backbar, .ss-backbar__action { display: none; }
@media (max-width: 1023.98px) {
  .ss-header--back .ss-brand, .ss-header--back .ss-header__alerts { display: none; }
  .ss-header--back .ss-backbar { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
  .ss-backbar__title { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ss-header--back .ss-backbar__action { display: flex; }
  .ss-header--back:has(.ss-backbar__action) .ss-menutoggle { display: none; }
  body:has(.ss-header--back) .ss-main .ss-breadcrumb { display: none; }
  body:has(.ss-header--back) .ss-invoice__tools { display: none; }

  /* Dashboard: the due-invoice notice comes before the stat cards (Mobile.png) */
  .ss-home > * { order: 3; }
  .ss-home > .ss-pagehead, .ss-home > .ss-home-credit { order: 0; }
  .ss-home > .ss-home-due { order: 1; }
  .ss-home > .ss-stats { order: 2; }

  /* Service page: no icon beside the title (MobileService.png) */
  .ss-service__icon { display: none; }
}

/* Tablet: more columns between phone and desktop */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .ss-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ss-summarycards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ss-contactcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ss-formgrid--3, .ss-formgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-formgrid__full { grid-column: 1 / -1; }
  .ss-kbcats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ss-security, .ss-contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 21. Currency: amounts rewritten by includes/ss-currency.tpl ("Toman" -> Persian name) */
.ss-money {
    white-space: nowrap;
}

/* 22. Customer number (footer, dashboard, support contact cards, account head) */
.ss-footer__sep { width: 1px; height: 18px; margin: 0 6px; background: var(--border); }
.ss-footer__support .ss-footer__client { color: var(--muted); }
.ss-footer__client strong { color: var(--ink); font-size: 14px; }
.ss-clientno { display: inline-flex; align-self: flex-start; width: max-content; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 14px; border-radius: 999px; background: var(--brand-050); color: var(--brand-800); font-size: 13px; }
.ss-clientno strong { font-size: 14px; }
.ss-contactcard--static, .ss-contactcard--static:hover { box-shadow: var(--shadow-card); cursor: default; }
.ss-contactcard--accent.ss-contactcard--static { background: var(--accent-050); }
.ss-accthead__meta strong { color: var(--ink); }
@media (max-width: 599px) {
  .ss-footer__support { flex-wrap: wrap; row-gap: 0; }
  .ss-footer__sep { display: none; }
  .ss-footer__support .ss-footer__client { flex-basis: 100%; }
}

/* 23. Persian-only names (includes/ss-persian-name.tpl) */
.ss-fa-error { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--danger-700); }
input.ss-fa-invalid, input.ss-fa-invalid:focus { border-color: var(--danger-500); box-shadow: 0 0 0 3px var(--danger-050); }

/* 24. Received emails (clientareaemails.tpl) — list in the style of tickets/invoices */
.ss-mails__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-mails__title span { font-size: 13px; font-weight: 500; color: var(--faint); }
a.ss-table__row.ss-mailgrid { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px auto; align-items: center; gap: 0 14px; color: var(--ink); text-decoration: none; }
a.ss-table__row.ss-mailgrid:hover, a.ss-table__row.ss-mailgrid:focus-visible { background: var(--brand-025); }
.ss-mailgrid__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; flex: none; }
.ss-mailgrid__icon--lg { width: 52px; height: 52px; border-radius: 16px; }
.ss-mailgrid__subject { min-width: 0; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; text-align: right; }
.ss-mailgrid__date { font-size: 13px; color: var(--muted); }
.ss-mailgrid__view { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--brand-200); border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--brand-600); }
a.ss-mailgrid:hover .ss-mailgrid__view, a.ss-mailgrid:focus-visible .ss-mailgrid__view { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }
@media (max-width: 1023.98px) {
  a.ss-table__row.ss-mailgrid { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 16px; }
  .ss-mailgrid__icon { width: 36px; height: 36px; grid-row: 1 / span 2; }
  .ss-mailgrid__subject { grid-column: 2; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
  .ss-mailgrid__date { grid-column: 2; grid-row: 2; font-size: 12px; }
  .ss-mailgrid__view { grid-column: 3; grid-row: 1 / span 2; }
}

/* 25. Ideas batch (2026-10-13): amount in words, card-to-card, suspension warning, renewal centre, response time */
.ss-amount-words { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ss-amount-words[hidden] { display: none; }
.ss-co-words { margin: -8px 0 12px; }

.ss-c2c h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--brand-600); }
.ss-c2c p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-secondary); line-height: 1.8; }
.ss-c2c__card { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--brand-800); color: var(--surface); }
.ss-c2c__bank { font-size: 13px; font-weight: 700; opacity: .85; }
.ss-c2c__number { font-family: var(--font-mono); font-size: 19px; font-weight: 700; letter-spacing: 1.5px; text-align: left; }
.ss-c2c__holder { font-size: 13px; }
.ss-c2c__copy { align-self: flex-start; min-height: 34px; margin-top: 4px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.ss-c2c__copy:hover, .ss-c2c__copy:focus-visible { background: var(--accent-500); color: var(--ink); }
.ss-c2c__hint { margin: 10px 0 0 !important; font-size: 12.5px !important; color: var(--muted) !important; }
.ss-c2c .ss-c2c__info, .ss-c2c .ss-c2c__info p { margin: 0; font-size: 14px; line-height: 2; color: var(--surface); overflow-wrap: anywhere; }
.ss-c2c__text { font-size: 14px; font-weight: 700; }
.ss-c2c__text + .ss-c2c__row { margin-top: 6px; }
.ss-c2c__row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.ss-c2c__row + .ss-c2c__text { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 600; }
.ss-c2c__label { order: 1; flex: 1; font-size: 12px; opacity: .85; }
.ss-c2c__value { order: 3; flex-basis: 100%; min-width: 0; font-family: var(--font-mono); font-size: 13.5px; text-align: left; overflow-wrap: anywhere; }
.ss-c2c__row--card .ss-c2c__value { font-size: 18px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.ss-c2c__row .ss-c2c__copy { order: 2; margin: 0; min-height: 28px; padding: 0 12px; }

.ss-suspendwarn { align-items: center; margin: 0 0 var(--space-5); }
.ss-suspendwarn__text { flex-grow: 1; }
.ss-suspendwarn__domain { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.ss-suspendwarn .ss-btn { flex-shrink: 0; height: 40px; }

.ss-renewals { margin: 0 0 var(--space-5); }
.ss-renewals__lead { font-size: 12.5px; color: var(--muted); }
.ss-renewals__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 0 14px; padding: 14px 24px; border-top: 1px solid var(--divider); }
.ss-renewals__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-renewals__icon svg { width: 18px; height: 18px; }
.ss-renewals__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-renewals__main strong { font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.ss-renewals__main > span { font-size: 12.5px; color: var(--muted); }
.ss-renewals__days { padding: 4px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-secondary); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ss-renewals__days.is-soon { background: var(--accent-050); color: var(--accent-700); }
.ss-renewals__row .ss-btn { height: 38px; white-space: nowrap; }
.ss-renewals__more { margin: 0; padding: 12px 24px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); }

.ss-response-time { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; width: max-content; max-width: 100%; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--success-050); color: var(--success-700); font-size: 13px; font-weight: 700; }
.ss-sidecard .ss-response-time { margin: 0 0 12px; }

@media (max-width: 767.98px) {
  .ss-suspendwarn { flex-wrap: wrap; }
  .ss-suspendwarn .ss-btn { width: 100%; }
  .ss-renewals__row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
  .ss-renewals__icon { width: 36px; height: 36px; }
  .ss-renewals__row .ss-btn { grid-column: 2 / -1; justify-self: start; }
  .ss-renewals__more { padding: 12px 16px; }
}

/* 26. Network status banner (includes/ss-network-banner.tpl) */
.ss-netstatus { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--space-5); }
.ss-netstatus__item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--accent-200); border-radius: var(--radius-md); background: var(--accent-050); color: var(--accent-900); }
.ss-netstatus__item.is-severe { border-color: var(--danger-200); background: var(--danger-050); color: var(--danger-700); }
.ss-netstatus__item.is-scheduled { border-color: var(--brand-200); background: var(--brand-025); color: var(--brand-800); }
.ss-netstatus__icon { flex: none; display: flex; }
.ss-netstatus__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.8; }
.ss-netstatus__text strong { font-size: 14.5px; font-weight: 800; }
.ss-netstatus__text small { font-size: 12.5px; opacity: .85; }
.ss-netstatus__mine { display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px; background: currentColor; font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.ss-netstatus__mine { color: var(--surface); background: var(--danger-700); }
.ss-netstatus__item .ss-btn { flex-shrink: 0; height: 38px; }
@media (max-width: 767.98px) {
  .ss-netstatus__item { flex-wrap: wrap; align-items: flex-start; }
  .ss-netstatus__item .ss-btn { width: 100%; }
}

/* 27. Network status page (serverstatus.tpl) */
.ss-netsummary { display: flex; align-items: center; gap: 16px; margin: 0 0 var(--space-5); padding: 20px 24px; border-radius: var(--radius-lg); background: var(--success-050); color: var(--success-700); }
.ss-netsummary.is-issue { background: var(--accent-050); color: var(--accent-900); }
.ss-netsummary__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.ss-netsummary strong { display: block; font-size: 17px; font-weight: 800; }
.ss-netsummary span:not(.ss-netsummary__icon) { font-size: 13.5px; line-height: 1.8; }
.ss-netissues { margin: 0 0 var(--space-5); }
.ss-netissue { padding: 18px 24px; border-top: 1px solid var(--divider); border-right: 4px solid var(--accent-500); }
.ss-netissue.is-severe { border-right-color: var(--danger-500); }
.ss-netissue.is-resolved { border-right-color: var(--success-500); }
.ss-netissue__head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.ss-netissue__head h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.ss-netissue__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-netissue__body { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-secondary); overflow-wrap: anywhere; }
.ss-netissue__body p:last-child { margin-bottom: 0; }
.ss-netissue__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 12px 0 0; font-size: 13px; }
.ss-netissue__meta dt { display: inline; margin-left: 6px; font-weight: 500; color: var(--muted); }
.ss-netissue__meta dd { display: inline; margin: 0; font-weight: 700; color: var(--ink); }
.ss-netissues .ss-table__foot .disabled { pointer-events: none; opacity: .5; }
.ss-servers__lead { font-size: 12.5px; color: var(--muted); }
.ss-servers__head, .ss-servers__row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr)) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 0 12px; padding: 12px 24px; }
.ss-servers__head { border-top: 1px solid var(--divider); background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-servers__row { border-top: 1px solid var(--divider); font-size: 13.5px; }
.ss-servers__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-servers__name strong { font-weight: 800; overflow-wrap: anywhere; }
.ss-servers__name a { font-size: 12px; }
.ss-servers__check img { width: 16px; height: 16px; }
.ss-servers__label { display: none; }
@media (max-width: 1023.98px) {
  .ss-netsummary { padding: 16px; }
  .ss-netissue { padding: 16px; }
  .ss-servers__head { display: none; }
  .ss-servers__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 16px; }
  .ss-servers__name { grid-column: 1 / -1; }
  .ss-servers__cell { display: flex; flex-direction: column; gap: 2px; }
  .ss-servers__label { display: block; font-size: 11.5px; color: var(--muted); }
}

/* 28. Payment hand-off pages: forwardpage (redirect to the bank), 3dsecure, invoice-payment */
.ss-forward { display: flex; flex-direction: column; align-items: center; }
.ss-forward__card { width: 100%; max-width: 560px; margin: 24px 0; padding: 36px 32px; text-align: center; }
.ss-forward__card--wide { max-width: 760px; }
.ss-forward__card h1 { margin: 16px 0 8px; font-size: 22px; font-weight: 800; color: var(--ink); }
.ss-forward__lead { margin: 0 0 6px; font-size: 14.5px; line-height: 1.9; color: var(--ink-secondary); }
.ss-forward__lead b { color: var(--brand-600); }
.ss-forward__msg { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.ss-forward__spinner { display: inline-block; width: 56px; height: 56px; border: 5px solid var(--brand-050); border-top-color: var(--brand-600); border-radius: 50%; animation: ss-spin 0.9s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ss-forward__spinner { animation-duration: 3s; } }
.ss-forward__vpn { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--accent-200); border-radius: var(--radius-md); background: var(--accent-050); color: var(--accent-900); font-size: 13.5px; line-height: 1.8; text-align: right; }
.ss-forward__vpn svg { flex: none; margin-top: 3px; color: var(--accent-700); }
.ss-forward__gateway { margin: 8px 0 0; }
.ss-forward__gateway input[type="submit"], .ss-forward__gateway button, .ss-forward__gateway .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius-sm); background: var(--brand-600); color: var(--surface); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.ss-forward__gateway input[type="submit"]:hover, .ss-forward__gateway button:hover, .ss-forward__gateway .btn:hover { background: var(--brand-800); }
.ss-forward__gateway img { max-width: 100%; height: auto; }
.ss-forward__hint { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.ss-forward__frame { width: 100%; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.ss-paypage__card { max-width: 980px; }
@media (max-width: 767.98px) {
  .ss-forward__card { margin: 8px 0; padding: 28px 18px; }
}
/* 29. WGS VMware module (modules/servers/vmware/clientarea.tpl) — appearance layer
   Reference: Service.png, Service-usage.png, Service-console.png, Service-reinstall.png, Service-snapshot.png,
   MobileService.png. No module file is edited. The module loads its own style.css inside <body> after this file,
   so every rule starts with #wrapper (the module's outermost element, used nowhere else) and !important is used only
   against the module's own !important rules. Its confirm dialog (.smoke-base) is appended to <body>, outside #wrapper.
   includes/ss-vmware.tpl puts Persian text on the module's hard-coded English bits and masks the password. */
#wrapper { color: var(--ink); text-align: right; font-family: inherit; }
#wrapper p, #wrapper .tab_row, #wrapper .tab-pane p, #wrapper ul.power_tab li a, #wrapper .reb_btn,
#wrapper ul.manage_tab_menu li a p, #wrapper table, #wrapper .form-control { font-family: inherit; }
#wrapper .manage_content { max-width: none; margin: 0; }
#wrapper .manage_content > .row { margin: 0; }
#wrapper .vmdetaitab, #wrapper .power_sec { margin: 0; }

/* Tile menu */
#wrapper ul.manage_tab_menu { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
#wrapper ul.manage_tab_menu li { float: none; width: auto; max-width: none; margin: 0; }
#wrapper ul.manage_tab_menu li a {
  float: none; box-sizing: border-box; width: 128px; max-width: none; height: 104px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-tile);
  color: var(--ink-secondary); text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
#wrapper ul.manage_tab_menu li a:hover { background: var(--surface); border-color: var(--brand-600); color: var(--brand-700); }
#wrapper ul.manage_tab_menu li a.selected { background: var(--brand-050); border-color: var(--brand-600); color: var(--brand-700); }
#wrapper ul.manage_tab_menu li a:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
#wrapper ul.manage_tab_menu li a p { margin: 0; padding: 0; color: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; }
#wrapper ul.manage_tab_menu li a i {
  display: block; width: 26px; height: 26px; padding: 0; margin: 0;
  background: currentColor; -webkit-mask: var(--ss-vm-icon) center / 26px 26px no-repeat; mask: var(--ss-vm-icon) center / 26px 26px no-repeat;
}
/* Line icons in place of the module's PNG sprites (drawn here, nothing loaded from outside) */
#wrapper i.m_detail { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01M11 7.5h6M11 16.5h6'/%3E%3C/svg%3E"); }
#wrapper i.m_us { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16M7 16V11M12 16V5M17 16v-7'/%3E%3C/svg%3E"); }
#wrapper i.m_pwr { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='M7.05 6.05a8 8 0 1 0 9.9 0'/%3E%3C/svg%3E"); }
#wrapper i.m_tool { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L3.6 17.2a1.9 1.9 0 0 0 2.7 2.7l5.7-5.7a4 4 0 0 0 5.2-5.4l-2.4 2.4-2.3-.5-.5-2.3z'/%3E%3C/svg%3E"); }
#wrapper i.m_sp { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
#wrapper i.m_mg { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14l-3-3M20 16H6l3 3'/%3E%3C/svg%3E"); }
#wrapper i.m_stst { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9l3 3-3 3M12.5 15H17'/%3E%3C/svg%3E"); }
#wrapper i.m_data, #wrapper i.m_res, #wrapper i.m_ftp { --ss-vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }

/* White card around each tile's content; inner tabs as buttons */
#wrapper .vmtabs { box-sizing: border-box; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; margin: 0 0 24px; }
/* The tile menu sits in a floated bootstrap column, but the VMware Tools / migrate / console panels are outside it:
   without clear they slide up beside the float, cover the tiles (clicks land on the panel) and their inner
   flex lists shrink to zero width (buttons spill out to the left). Found on the live site 2026-10-20. */
#wrapper .vmtabs { clear: both; }
/* "Server transfer" (migrate, tab 5) is not offered to clients (owner, 2026-10-20): tile and panel hidden.
   To bring it back delete this rule; the module also hides the migrate box after VMware Tools opens
   (shared .tab_content3 class), so then add: #wrapper #vmTabContent5 .tab_content3 { display: block !important; } */
#wrapper ul.manage_tab_menu > li[onclick*="mainTabs(this, 5)"], #wrapper #vmTabContent5 { display: none !important; }
/* Usage charts: the module's own <h4> above each chart carries the (Persian) title; Highcharts repeats it inside */
#wrapper .highcharts-title, #wrapper .highcharts-subtitle { display: none; }
#wrapper .vmtabs .row { margin: 0; }
#wrapper .vmtabs [class*="col-"] { float: none; width: auto; padding: 0; }
#wrapper ul.power_tab { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
#wrapper ul.power_tab::before, #wrapper ul.power_tab::after { display: none; }
#wrapper ul.power_tab > li { float: none; margin: 0; }
#wrapper ul.power_tab > li > a {
  display: flex; align-items: center; height: 42px; padding: 0 18px; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm) !important;
  background: var(--surface); color: var(--ink-secondary); font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none;
}
#wrapper ul.power_tab > li > a:hover, #wrapper ul.power_tab > li > a:focus { background: var(--surface); border-color: var(--brand-600); color: var(--brand-700); }
#wrapper ul.power_tab > li.active > a, #wrapper ul.power_tab > li.active > a:hover, #wrapper ul.power_tab > li.active > a:focus { background: var(--brand-600); border-color: var(--brand-600); color: var(--surface); }
/* The console tab puts its note box inside the <ul> */
#wrapper ul.power_tab > div, #wrapper ul.power_tab > form { flex: 1 0 100%; }

/* Content boxes */
#wrapper .manage_tab_content { float: none; clear: none; width: auto; box-sizing: border-box; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md); overflow: hidden; }
#wrapper .manage_tab_content.m_power { padding: 18px 20px; background: var(--surface-sunken); overflow: visible; }
#wrapper .manage_tab_content.tab_content1 { background: var(--surface); }
#wrapper .manage_tab_content .manage_tab_content { margin: 14px 0 0; padding: 0; border: 0; background: transparent; }
#wrapper div#vmdetailcont { margin: 16px 0 0; border-bottom: 1px solid var(--divider); border-radius: var(--radius-md); }
#wrapper .tab-pane p, #wrapper .manage_tab_content p { margin: 0; padding: 0; font-size: 14px; line-height: 1.9; color: var(--ink-secondary); text-align: right; }
#wrapper .manage_tab_content p strong { color: var(--ink); }
#wrapper p[style*="ff0000"], #wrapper span.pwerror {
  display: block; margin: 12px 0 0 !important; padding: 10px 14px; border: 1px solid var(--danger-200); border-radius: var(--radius-sm);
  background: var(--danger-050); color: var(--danger-700) !important; font-size: 13.5px; font-weight: 600;
}
#wrapper .vmcrdesc { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--accent-200); border-radius: var(--radius-sm); background: var(--accent-050); color: var(--accent-900); }

/* Key / value table (server details, network) */
#wrapper .tab_row { display: flex; align-items: stretch; float: none; clear: none; width: auto; margin: 0; padding: 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
#wrapper .tab_row:last-child { border-bottom: 0; }
#wrapper .tab_row > strong {
  float: none; flex: 0 0 220px; width: 220px; box-sizing: border-box; display: flex; align-items: center; margin: 0; padding: 12px 18px;
  border: 0; background: var(--surface-sunken); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.7; text-align: right;
}
#wrapper .tab_row > span {
  float: none; flex: 1 1 auto; width: auto; min-width: 0; box-sizing: border-box; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin: 0; padding: 12px 18px; border: 0; color: var(--ink); font-size: 14px; line-height: 1.7; text-align: right; word-break: break-word;
}
/* Power state: pill (added by ss-vmware.tpl) and the module's ON/OFF switch */
#wrapper .ss-vm-state { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--radius-pill); background: var(--neutral-100); color: var(--ink-secondary); font-size: 12.5px; font-weight: 700; }
#wrapper .ss-vm-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#wrapper .ss-vm-state.is-on { background: var(--success-050); color: var(--success-700); }
#wrapper .custom_switch { float: none; display: inline-flex; width: auto; height: auto; margin-inline-start: auto; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface); }
#wrapper .custom_switch span {
  float: none !important; width: auto !important; min-width: 52px; padding: 0 12px !important; margin: 0 !important; border: 0 !important;
  line-height: 28px !important; text-align: center !important; background: var(--surface); color: var(--muted) !important; font-size: 12px; font-weight: 700; letter-spacing: 0; border-radius: 0;
}
#wrapper .custom_switch span + span { border-inline-start: 1px solid var(--border) !important; }
#wrapper .custom_switch span#poweredOn:hover { background: var(--success-050) !important; color: var(--success-700) !important; }
#wrapper .custom_switch span#poweredOff:hover { background: var(--danger-050) !important; color: var(--danger-700) !important; }
#wrapper .custom_switch span.poweredOn { background: var(--success-500) !important; color: var(--surface) !important; }
#wrapper .custom_switch span.poweredOff { background: var(--ink-secondary) !important; color: var(--surface) !important; }
/* Memory bar */
#wrapper .percentagediv { position: static; display: inline-block; width: 160px !important; height: 8px; margin: 0; border: 0; border-radius: var(--radius-pill); background: var(--neutral-100); overflow: hidden; }
#wrapper .percentage_inr { height: 8px; border-radius: var(--radius-pill); background: var(--brand-600); }
#wrapper .percentage_inr.green { background: var(--success-500) !important; }
#wrapper .percentage_inr.moderate { background: var(--accent-500) !important; }
#wrapper .percentage_inr.high { background: var(--danger-500) !important; }
/* Password (masked by ss-vmware.tpl) */
#wrapper .ss-vm-secret { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#wrapper .ss-vm-secret bdi { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; }
#wrapper .tab_row > span.ss-vm-mono { font-family: var(--font-mono); font-size: 13.5px; direction: ltr; justify-content: flex-end; }
#wrapper .ss-vm-secret button { height: 28px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
#wrapper .ss-vm-secret button:hover { border-color: var(--brand-600); }

/* Action buttons */
#wrapper .reb_btn, #wrapper .vmtabs.power_sec .reb_btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; margin: 16px 0 0;
  border: 0; border-radius: var(--radius-sm); background: var(--brand-600); color: var(--surface);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-shadow: none; text-decoration: none; cursor: pointer;
}
#wrapper .reb_btn:hover, #wrapper .reb_btn:focus { border: 0; background: var(--brand-800); color: var(--surface); text-decoration: none; }
#wrapper #reinstalldiv .reb_btn { background: var(--danger-700); }
#wrapper #reinstalldiv .reb_btn:hover { background: var(--danger-500); }
#wrapper a.reb_btn.btn_disabled { background: var(--neutral-100) !important; color: var(--muted) !important; }
#wrapper .reb_btn .fa-spinner { font-size: 14px; margin-inline-start: 8px; }
#wrapper .vmrctab.manage_tab_content ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; text-align: right; }
#wrapper .vmrctab.manage_tab_content ul li { margin: 0; }
#wrapper .vmrctab.manage_tab_content ul li a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--brand-600); font-size: 13.5px; font-weight: 700; color: var(--surface); }
#wrapper .vmrctab.manage_tab_content ul li a:hover { background: var(--brand-800); }

/* Forms (reinstall, password reset, snapshot, migrate) */
#wrapper form#reinstallVmWare { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; align-items: center; margin: 0; }
#wrapper form [class*="col-sm-"] { float: none; width: auto; padding: 0; }
#wrapper form .col-sm-12 { grid-column: 1 / -1; }
#wrapper .form-group { margin: 0; color: var(--ink-secondary); font-size: 13.5px; font-weight: 600; }
#wrapper .form-control {
  height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: none;
}
#wrapper textarea.form-control { height: auto; min-height: 88px; padding: 10px 12px; }
#wrapper .form-control:focus { border-color: var(--brand-600); box-shadow: var(--focus-ring); outline: 0; }

/* Messages after an action */
#wrapper #responseMessage, #wrapper #toolresponseMessage, #wrapper #snapshotresponseMessage, #wrapper #vmresponsediv, #wrapper #powerResp { margin: 0; }
#wrapper #responseMessage:empty, #wrapper #toolresponseMessage:empty, #wrapper #snapshotresponseMessage:empty, #wrapper #vmresponsediv:empty, #wrapper #powerResp:empty { display: none; }
#wrapper .alert { position: relative; margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; line-height: 1.8; text-align: right; }
#wrapper .alert-success { background: var(--success-050); border-color: var(--success-500); color: var(--success-700); }
#wrapper .alert-danger { background: var(--danger-050); border-color: var(--danger-200); color: var(--danger-700); }
#wrapper .alert-info, #wrapper .alert-warning { background: var(--accent-050); border-color: var(--accent-200); color: var(--accent-900); }
#wrapper .alert .close { float: left; margin: 0 0 0 4px; color: inherit; opacity: .6; text-shadow: none; }

/* Tables (disks, snapshots, backups) and charts */
#wrapper table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; }
#wrapper table th { padding: 10px 12px; background: var(--surface-sunken); color: var(--muted); font-weight: 600; text-align: right !important; border: 0; }
#wrapper table td { padding: 10px 12px; border: 0; border-top: 1px solid var(--divider); color: var(--ink); text-align: right; }
#wrapper .highcharts-container text, #wrapper .highcharts-container tspan { font-family: inherit !important; }
#wrapper div#snapShotList { float: none; border-top: 1px solid var(--divider); }
#wrapper #snapShotList input[type="text"], #wrapper #snapShotList textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
#wrapper .snapshotListButtonDiv { text-align: right; }

/* Loading overlay */
#loaderabckground { background: rgba(16, 24, 40, .35); opacity: 1; }
#serverloader { display: flex; align-items: flex-start; justify-content: center; }

/* Confirm dialog of the module (smoke.js, appended to <body>). modules/servers/vmware/css/smoke.css loads after this file
   with the same selectors (.dialog width 40% + margin-left -20%), so these rules carry "body" to win. */
body .smoke-base { z-index: 2000; background: rgba(16, 24, 40, .45); }
body .smoke-base .dialog { top: 28%; left: 50%; width: min(440px, calc(100% - 32px)); margin-left: 0; transform: translateX(-50%); }
body .smoke-base .smoke { direction: rtl; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 20px 48px rgba(16, 24, 40, .22); font-family: var(--font-sans); font-size: 15px; line-height: 1.9; color: var(--ink); }
body .smoke-base .dialog-inner { padding: 24px 22px 20px; color: var(--ink); }
body .smoke-base .dialog-buttons { display: flex; justify-content: center; gap: 8px; margin: 20px 0 0; }
body .smoke-base .dialog-buttons button {
  height: 42px; min-width: 96px; margin: 0; padding: 0 20px; border: 1px solid var(--brand-600); border-radius: var(--radius-sm);
  background: var(--brand-600); color: var(--surface); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
}
body .smoke-base .dialog-buttons button.cancel { background: var(--surface); border-color: var(--border); color: var(--ink-secondary); }

@media (max-width: 767.98px) {
  #wrapper ul.manage_tab_menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  /* four tiles or fewer (as on the live site): one row */
  #wrapper ul.manage_tab_menu:not(:has(> li:nth-of-type(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #wrapper ul.manage_tab_menu li a { width: auto; height: 84px; gap: 8px; }
  #wrapper ul.manage_tab_menu li a i { width: 22px; height: 22px; -webkit-mask-size: 22px 22px; mask-size: 22px 22px; }
  #wrapper ul.manage_tab_menu li a p { font-size: 12px; }
  #wrapper .vmtabs { padding: 16px; border-radius: var(--radius-md); }
  #wrapper ul.power_tab > li > a { height: 38px; padding: 0 14px; font-size: 13px; }
  #wrapper .tab_row { display: block; }
  #wrapper .tab_row > strong { width: auto; display: block; padding: 10px 14px 0; background: transparent; font-size: 12px; }
  #wrapper .tab_row > span { padding: 2px 14px 10px; }
  #wrapper .percentagediv { width: 100% !important; }
  #wrapper .manage_tab_content.m_power { padding: 14px; }
  #wrapper form#reinstallVmWare { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #wrapper #reinstalldiv, #wrapper #powerButtonDiv, #wrapper #hardrebootdiv, #wrapper #softrebootdiv { display: block; }
  #wrapper .reb_btn, #wrapper .vmtabs.power_sec .reb_btn { width: 100%; }
}


/* 30. Upgrade / downgrade (upgrade.tpl, upgradesummary.tpl, upgrade-configure.tpl) and cancellation request */
.ss-upgrade, .ss-cancel { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-upgrade__current { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 18px 22px; overflow: visible; }
.ss-upgrade__current--inline { padding: 0 24px 16px; box-shadow: none; border-bottom: 1px solid var(--divider); }
.ss-upgrade__label, .ss-cancel__label { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ss-upgrade__current strong, .ss-cancel__service strong { font-size: 16px; font-weight: 800; color: var(--ink); unicode-bidi: plaintext; }
.ss-upgrade__host, .ss-cancel__host { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ss-upgrade__manage { margin-inline-start: auto; }
.ss-upgrade__sub { margin: 8px 0 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-upgrade__lead { margin: -12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.ss-upgrade__plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.ss-upgrade__plan { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px; overflow: visible; }
.ss-upgrade__plan.is-current { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--brand-200); }
.ss-upgrade__planhead { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ss-upgrade__group { font-size: 12px; color: var(--muted); }
.ss-upgrade__name { font-size: 16px; font-weight: 800; color: var(--ink); unicode-bidi: plaintext; }
.ss-upgrade__tag { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-050); color: var(--brand-700); font-size: 11.5px; font-weight: 800; }
.ss-upgrade__tag.is-rec { background: var(--accent-500); color: var(--ink); }
.ss-upgrade__desc { font-size: 13px; line-height: 2; color: var(--ink-secondary); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ss-upgrade__features { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ss-upgrade__features li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--divider); color: var(--muted); }
.ss-upgrade__features b { color: var(--ink); unicode-bidi: plaintext; }
/* Plan names and specs keep Latin digits (the page font draws digits in Persian), as in the plans table */
.ss-upgrade__name bdi, .ss-upgrade__prodname, .ss-upgrade__desc, .ss-upgrade__features b { font-family: "JetBrains Mono", "Vazirmatn", sans-serif; }
.ss-upgrade__name bdi { font-size: 15px; letter-spacing: -0.3px; }
.ss-upgrade__desc { font-size: 12.5px; }
.ss-upgrade__current .ss-upgrade__group { width: 100%; }
.ss-cancel__service .ss-upgrade__group { width: 100%; font-size: 12.5px; color: var(--muted); }
.ss-upgrade__price { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.ss-upgrade__price label, .ss-upgrade__promo label, .ss-upgrade__pay label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-secondary); }
.ss-upgrade__price .form-control { unicode-bidi: plaintext; }
.ss-upgrade__free, .ss-upgrade__once { font-size: 15px; font-weight: 800; color: var(--brand-600); unicode-bidi: plaintext; }
.ss-upgrade__qtyline { display: flex; align-items: center; gap: 10px; }
.ss-upgrade__qtyline .form-control { width: 100px; }
.ss-upgrade__none { padding: 24px; color: var(--muted); }
.ss-upgrade__actions, .ss-upgrade__submit, .ss-cancel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-upgrade__submit { justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--divider); }

/* Config options: option | current | new */
.ss-upgrade__options { overflow: visible; }
.ss-upgrade__optrow { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) minmax(220px, 1.4fr); align-items: center; gap: 8px 18px; padding: 14px 22px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-upgrade__optrow--head { border-top: 0; background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ss-upgrade__optname { font-weight: 700; color: var(--ink); }
.ss-upgrade__optcur { color: var(--ink-secondary); unicode-bidi: plaintext; }
.ss-upgrade__optlabel { display: none; }
.ss-upgrade__check { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.ss-upgrade__qty { display: flex; align-items: center; gap: 8px; }
.ss-upgrade__qty .form-control { width: 110px; }

/* Summary */
.ss-upgrade__summary { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.ss-upgrade__bill { overflow: visible; }
.ss-upgrade__lines { margin: 0; padding: 0; list-style: none; }
.ss-upgrade__lines li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--divider); font-size: 14px; }
.ss-upgrade__change { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--ink-secondary); }
.ss-upgrade__change b { color: var(--ink); }
.ss-upgrade__arrow { color: var(--brand-600); font-weight: 800; }
.ss-upgrade__amount { flex: none; font-weight: 800; unicode-bidi: plaintext; }
.ss-upgrade__totals { margin: 0; padding: 12px 24px; }
.ss-upgrade__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.ss-upgrade__totals dt { font-weight: 500; color: var(--ink-secondary); }
.ss-upgrade__totals dd { margin: 0; font-weight: 700; unicode-bidi: plaintext; }
.ss-upgrade__due { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--divider); }
.ss-upgrade__due dt { font-size: 15px; font-weight: 800 !important; color: var(--ink) !important; }
.ss-upgrade__due dd { font-size: 22px; font-weight: 800; color: var(--ink); }
.ss-upgrade__words { margin: 0 24px; text-align: left; }
.ss-upgrade__logic { margin: 12px 24px 20px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--brand-025); font-size: 13px; line-height: 1.9; color: var(--ink-secondary); }
.ss-upgrade__side { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 16px; }
.ss-upgrade__promo, .ss-upgrade__pay { display: flex; flex-direction: column; gap: 8px; padding: 20px; overflow: visible; }
.ss-upgrade__promorow { display: flex; gap: 8px; }
.ss-upgrade__promorow .form-control { flex: 1 1 auto; min-width: 0; }
.ss-upgrade__pay .ss-btn--primary { margin-top: 8px; justify-content: center; }
.ss-upgrade__back { align-self: center; display: inline-flex; align-items: center; min-height: 40px; font-size: 13.5px; font-weight: 600; text-decoration: none; }

/* Cancellation */
.ss-cancel__form { display: flex; flex-direction: column; gap: 20px; max-width: 760px; padding: 24px; overflow: visible; }
.ss-cancel__service { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 16px; border-bottom: 1px solid var(--divider); }
.ss-cancel__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.ss-cancel__types legend { grid-column: 1 / -1; margin: 0 0 4px; padding: 0; border: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-cancel__type { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-weight: 400; cursor: pointer; }
.ss-cancel__type input { flex: none; margin-top: 5px; accent-color: var(--danger-700); }
.ss-cancel__type span { display: flex; flex-direction: column; gap: 2px; }
.ss-cancel__type strong { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ss-cancel__type small { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ss-cancel__type:has(input:checked) { border: 2px solid var(--danger-700); background: var(--danger-050); padding: 13px 15px; }
.ss-cancel__domain { padding: 16px; border: 1px solid var(--accent-200); border-radius: var(--radius-md); background: var(--accent-050); color: var(--accent-900); }
.ss-cancel__domain p { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.9; }
.ss-cancel__check { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; }
.ss-cancel__warn { margin: 0; }
.ss-cancel__actions { justify-content: flex-end; }
.ss-cancel__done { align-self: center; width: 100%; max-width: 560px; margin-top: var(--space-4); padding: 32px 28px; text-align: center; overflow: visible; box-sizing: border-box; }
.ss-cancel__doneicon { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: var(--success-050); color: var(--success-700); display: flex; align-items: center; justify-content: center; }
.ss-cancel__done h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.ss-cancel__done p { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.ss-cancel__done .ss-cancel__actions { justify-content: center; }

@media (max-width: 1023.98px) {
  .ss-upgrade__summary { grid-template-columns: minmax(0, 1fr); }
  .ss-upgrade__side { position: static; }
}
@media (max-width: 767.98px) {
  .ss-upgrade__optrow--head { display: none; }
  .ss-upgrade__optrow { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .ss-upgrade__optrow:nth-child(5) { border-top: 0; }
  .ss-upgrade__optlabel { display: inline; color: var(--muted); }
  .ss-upgrade__submit { padding: 14px 16px; }
  .ss-upgrade__submit .ss-btn, .ss-cancel__actions .ss-btn, .ss-upgrade__actions .ss-btn { flex: 1 1 auto; justify-content: center; }
  .ss-upgrade__lines li { padding: 12px 16px; }
  .ss-upgrade__totals { padding: 10px 16px; }
  .ss-upgrade__current--inline { padding: 0 16px 14px; }
  .ss-upgrade__words { margin: 0 16px; }
  .ss-upgrade__logic { margin: 10px 16px 16px; }
  .ss-cancel__form { padding: 18px 16px; }
  .ss-cancel__types { grid-template-columns: minmax(0, 1fr); }
}


/* 31. Mass payment (masspay.tpl) and the BEP20 crypto payment page (bep20-crypto-payment.tpl) */
.ss-masspay { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-masspay__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; margin: 0; }
.ss-masspay__list { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ss-masspay__invoice { overflow: visible; }
.ss-masspay__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--divider); }
.ss-masspay__head strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.ss-masspay__view { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; font-weight: 700; text-decoration: none; }
.ss-masspay__lines { margin: 0; padding: 0; list-style: none; }
.ss-masspay__lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--divider); font-size: 13.5px; }
.ss-masspay__lines li:first-child { border-top: 0; }
.ss-masspay__desc { min-width: 0; line-height: 1.8; color: var(--ink-secondary); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ss-masspay__amount { flex: none; font-weight: 700; color: var(--ink); unicode-bidi: plaintext; }
.ss-masspay__empty { padding: 28px; text-align: center; color: var(--muted); }
.ss-masspay__side { position: sticky; top: 16px; overflow: visible; }
.ss-masspay__totals { margin: 0; padding: 4px 22px 8px; }
.ss-masspay__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.ss-masspay__totals dt { font-weight: 500; color: var(--ink-secondary); }
.ss-masspay__totals dd { margin: 0; font-weight: 700; unicode-bidi: plaintext; }
.ss-masspay__due { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--divider); }
.ss-masspay__due dt { font-size: 15px; font-weight: 800 !important; color: var(--ink) !important; }
.ss-masspay__due dd { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ss-masspay__words { margin: 0 22px; text-align: left; }
.ss-masspay__pay { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 22px; }
.ss-masspay__pay label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-secondary); }
.ss-masspay__pay .ss-btn { margin-top: 6px; justify-content: center; }
.ss-masspay__hint { margin: 4px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }

.ss-bep20 { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-bep20 .bep20-crypto-payment-container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
.ss-bep20 .bep20-crypto-payment-container .bep20-crypto-payment-step { box-sizing: border-box; width: 100%; margin: 0; padding: 28px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); text-align: right; }
.ss-bep20 .bep20-crypto-payment-step .qr-code { float: none; width: auto; margin: 0 0 18px; text-align: center; }
.ss-bep20 .bep20-crypto-payment-step .qr-code img { width: 168px; height: 168px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.ss-bep20 .bep20-crypto-payment-step .instructions { float: none; width: auto; margin: 0; }
.ss-bep20 .bep20-crypto-payment-step p { margin: 0 0 10px; font-size: 14px; line-height: 1.9; color: var(--ink-secondary); }
.ss-bep20 .bep20-crypto-payment-step h3 { margin: 6px 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.ss-bep20 .bep20-crypto-payment-step .input-group { display: flex; direction: ltr; width: 100%; margin: 6px 0 14px; }
.ss-bep20 .bep20-crypto-payment-step .input-group .form-control { flex: 1 1 auto; min-width: 0; height: 48px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-mono); font-size: 13.5px; direction: ltr; text-align: left; background: var(--surface-sunken); }
.ss-bep20 .bep20-crypto-payment-step .input-group-btn { display: flex; width: auto; }
.ss-bep20 .bep20-crypto-payment-step .btn-copy { display: inline-flex; align-items: center; gap: 6px; height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--brand-600); border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--brand-600); color: var(--surface); font-weight: 700; }
.ss-bep20 .bep20-crypto-payment-step .input-group .btn-copy { min-width: 0; }
.ss-bep20 .bep20-crypto-payment-step .btn-copy:hover { background: var(--brand-800); color: var(--surface); }
.ss-bep20 .bep20-crypto-payment-step .ss-bep20__copy { font-family: var(--font-sans); font-size: 13px; }
.ss-bep20 .bep20-crypto-payment-step input[name="tx_id"] { height: 48px; font-family: var(--font-mono); direction: ltr; text-align: left; }
.ss-bep20 .bep20-crypto-payment-step .alert-danger { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--danger-200); border-radius: var(--radius-md); background: var(--danger-050); color: var(--danger-700); font-weight: 600; }
.ss-bep20 .bep20-crypto-payment-step .text-info { color: var(--brand-700); }
.ss-bep20 .bep20-crypto-payment-step .text-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.ss-bep20 .bep20-crypto-payment-step .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 140px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; }
.ss-bep20 .bep20-crypto-payment-step button[type="submit"].btn-default, .ss-bep20 .bep20-crypto-payment-step .btn-success { border: 1px solid var(--brand-600); background: var(--brand-600); color: var(--surface); }
.ss-bep20 .bep20-crypto-payment-step .btn-back, .ss-bep20 .bep20-crypto-payment-step a.btn-default { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); }
.ss-bep20 .bep20-crypto-payment-step .icon-spinner, .ss-bep20 .bep20-crypto-payment-step .icon-success { margin: 0 auto 8px; text-align: center; font-size: 44px; }
.ss-bep20 .bep20-crypto-payment-step .icon-success { color: var(--success-700); }
.ss-bep20 .table-transaction { width: 100%; margin: 14px 0 0; border: 1px solid var(--divider); border-radius: var(--radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 13.5px; }
.ss-bep20 .table-transaction th, .ss-bep20 .table-transaction td { padding: 10px 14px; border: 0; border-top: 1px solid var(--divider); vertical-align: middle; }
.ss-bep20 .table-transaction tr:first-child th, .ss-bep20 .table-transaction tr:first-child td { border-top: 0; }
.ss-bep20 .table-transaction th { width: 40%; background: var(--surface-sunken); color: var(--muted); font-weight: 600; text-align: right; }
.ss-bep20 .table-transaction td { color: var(--ink); font-weight: 600; }
.ss-bep20 .table-transaction .ltr { direction: ltr; text-align: right; font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }

@media (max-width: 1023.98px) {
  .ss-masspay__layout { grid-template-columns: minmax(0, 1fr); }
  .ss-masspay__side { position: static; }
}
@media (max-width: 767.98px) {
  .ss-masspay__head, .ss-masspay__lines li { padding-right: 16px; padding-left: 16px; }
  .ss-masspay__totals { padding: 4px 16px 8px; }
  .ss-masspay__words { margin: 0 16px; }
  .ss-masspay__pay { padding: 14px 16px 18px; }
  .ss-bep20 .bep20-crypto-payment-container .bep20-crypto-payment-step { padding: 20px 16px; }
  .ss-bep20 .bep20-crypto-payment-step .btn { flex: 1 1 auto; }
}


/* 32. Two-step login (two-factor-challenge.tpl, two-factor-new-backup-code.tpl) and mobile verification (mobile_verify.tpl) */
.ss-2fa { display: flex; flex-direction: column; gap: 16px; }
.ss-2fa__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ss-2fa__form.hidden { display: none; }
/* {$challenge} comes from the second-factor module: a code field and a button with Bootstrap classes */
.ss-2fa__challenge { display: flex; flex-direction: column; gap: 12px; }
.ss-2fa__challenge .margin-bottom, .ss-2fa__challenge .form-group { margin: 0; }
.ss-2fa__challenge input[type="text"], .ss-2fa__challenge input[type="tel"], .ss-2fa__challenge input[type="number"], .ss-2fa__form input[name="twofabackupcode"] { width: 100%; height: 54px; font-family: var(--font-mono); font-size: 22px; letter-spacing: .3em; text-align: center; direction: ltr; }
.ss-2fa__form input[name="twofabackupcode"] { font-size: 16px; letter-spacing: .05em; }
.ss-2fa__form input[name="twofabackupcode"]::placeholder { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; direction: rtl; }
.ss-2fa__challenge .btn, .ss-2fa__challenge button, .ss-2fa__challenge input[type="submit"] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: var(--radius-sm); background: var(--brand-600); color: var(--surface); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.ss-2fa__challenge .btn:hover, .ss-2fa__challenge button:hover { background: var(--brand-800); }
.ss-2fa__alt { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.ss-2fa__alt a { font-weight: 700; text-decoration: none; }
.ss-2fa__code { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border: 1px dashed var(--brand-200); border-radius: var(--radius-md); background: var(--brand-025); }
.ss-2fa__code bdi { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: .08em; color: var(--ink); overflow-wrap: anywhere; }

.ss-mverify { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-mverify__card { display: flex; flex-direction: column; gap: 18px; max-width: 720px; padding: 24px; overflow: visible; }
.ss-mverify__state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; text-align: center; font-size: 14px; color: var(--muted); }
.ss-mverify__state strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.ss-mverify__state .ss-btn { margin-top: 8px; }
.ss-mverify__icon { width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ss-mverify__state.is-ok .ss-mverify__icon { background: var(--success-050); color: var(--success-700); }
.ss-mverify__state.is-warn .ss-mverify__icon { background: var(--accent-050); color: var(--accent-700); }
.ss-mverify__number { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.ss-mverify__phone { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--divider); font-size: 13px; color: var(--muted); }
.ss-mverify__change { margin-inline-start: auto; font-size: 13px; font-weight: 700; text-decoration: none; }
.ss-mverify__steps { display: flex; flex-direction: column; gap: 12px; }
.ss-mverify__step { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ss-mverify__step--send { order: 1; }
.ss-mverify__step--code { order: 2; }
.ss-mverify__num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ss-mverify__body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.ss-mverify__body strong, .ss-mverify__body label { margin: 0; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ss-mverify__body .ss-btn { margin-top: 4px; }
.ss-mverify__body small { font-size: 12px; color: var(--muted); }
.ss-mverify__row { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.ss-mverify__code { flex: 0 1 200px; height: 48px; font-family: var(--font-mono); font-size: 20px; letter-spacing: .3em; text-align: center; direction: ltr; }
.ss-mverify__code::placeholder, .ss-2fa__challenge input::placeholder { font-family: var(--font-mono); }
.ss-mverify__help { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 767.98px) {
  .ss-mverify__card { padding: 18px 16px; }
  .ss-mverify__row { flex-wrap: wrap; }
  .ss-mverify__code { flex: 1 1 100%; }
  .ss-mverify__row .ss-btn, .ss-mverify__body > .ss-btn { width: 100%; justify-content: center; }
}


/* 33. Users of the account (account-user-management, account-user-permissions), user profile, switch account,
       e-mail verification and invitations (WHMCS 8 user pages) */
.ss-auth__icon--warning { background: var(--accent-050); color: var(--accent-700); }
.ss-users__count { font-size: 13px; color: var(--muted); }
.ss-users__list { margin: 0; padding: 0; list-style: none; }
.ss-users__row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--divider); }
.ss-users__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.ss-users__avatar.is-pending { background: var(--accent-050); color: var(--accent-700); font-family: var(--font-sans); }
.ss-users__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-users__email { align-self: flex-start; max-width: 100%; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ss-users__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.ss-users__actions { flex: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ss-users__actions [disabled] { opacity: .45; pointer-events: none; }
.ss-users__sub { padding: 12px 24px; border-top: 1px solid var(--divider); background: var(--surface-sunken); font-size: 13px; font-weight: 700; color: var(--ink-secondary); }
.ss-users__note { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); }
.ss-users__lead { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.ss-users__form, .ss-users__permform { display: flex; flex-direction: column; gap: 16px; }
.ss-users__invite .ss-field { max-width: 420px; }
.ss-users__perms { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.ss-users__perms legend { width: 100%; margin: 0 0 4px; padding: 0; border: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-users__choice { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.ss-users__choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-025); color: var(--brand-700); }
.ss-users__permlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ss-users__permlist.hidden { display: none; }
.ss-users__perm { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 400; cursor: pointer; }
.ss-users__perm input { flex: none; margin-top: 4px; accent-color: var(--brand-600); }
.ss-users__perm span { display: flex; flex-direction: column; gap: 2px; }
.ss-users__perm strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.ss-users__perm small { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ss-users__perm:has(input:checked) { border-color: var(--brand-200); background: var(--brand-025); }

.ss-userprofile { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-userprofile__lead { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.ss-userprofile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.ss-userprofile__grid form { display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.ss-userprofile__grid .ss-formcard__title { display: flex; align-items: center; gap: 10px; }

.ss-acctswitch { display: flex; flex-direction: column; gap: var(--space-5); max-width: 720px; }
.ss-acctswitch__lead { margin: 0; font-size: 14px; color: var(--muted); }
.ss-acctswitch__list { display: flex; flex-direction: column; gap: 10px; }
.ss-acctswitch__item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink); text-decoration: none; overflow: visible; transition: box-shadow .15s ease; }
.ss-acctswitch__item:hover { text-decoration: none; box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--brand-600); }
.ss-acctswitch__item.disabled { opacity: .55; pointer-events: none; }
.ss-acctswitch__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.ss-acctswitch__name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; unicode-bidi: plaintext; }
.ss-acctswitch__tags { display: flex; gap: 6px; }
.ss-acctswitch__go { color: var(--brand-600); font-size: 18px; font-weight: 800; }
.ss-acctswitch__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; font-size: 14px; color: var(--muted); overflow: visible; }
.ss-acctswitch__empty strong { font-size: 16px; color: var(--ink); }
.ss-acctswitch__target { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.ss-acctswitch__target strong { font-size: 15px; font-weight: 800; }
.ss-acctswitch__target bdi { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ss-acctswitch__form { display: flex; flex-direction: column; gap: 6px; }

.ss-invite { gap: var(--space-5); }
.ss-invite__intro { width: 560px; }
.ss-invite__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); width: 100%; max-width: 900px; align-items: start; }
.ss-invite__form { width: auto; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.ss-invite__form h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-invite__pass { display: flex; width: 100%; gap: 8px; }
.ss-invite__pass .form-control { flex: 1 1 auto; min-width: 0; border-radius: var(--radius-sm) !important; }
.ss-invite__pass .input-group-btn { width: auto; }

@media (max-width: 1023.98px) {
  .ss-userprofile__grid, .ss-invite__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .ss-users__row { flex-wrap: wrap; padding: 14px 16px; }
  .ss-users__actions { width: 100%; padding-inline-start: 54px; }
  .ss-users__sub, .ss-users__note { padding-right: 16px; padding-left: 16px; }
  .ss-acctswitch__item { padding: 14px 16px; }
  .ss-invite__form { padding: 20px 16px; }
}


/* 34. Contacts (account-contacts-manage / -new), saved payment methods (account-paymentmethods) and the payment method form */
.ss-contact__picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 16px 20px; overflow: visible; }
.ss-contact__picker label { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-secondary); }
.ss-contact__picker .form-control { flex: 1 1 320px; max-width: 520px; unicode-bidi: plaintext; }
.ss-contact__form { display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.ss-contact__lead { margin: -6px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.ss-contact__form .ss-field label small { font-weight: 500; color: var(--muted); }
.ss-contact__emails { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.ss-contact__emails legend { grid-column: 1 / -1; width: 100%; margin: 0 0 4px; padding: 0; border: 0; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ss-contact__email { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; font-weight: 700; cursor: pointer; }
.ss-contact__email input[type="checkbox"] { flex: none; margin-top: 4px; accent-color: var(--brand-600); }
.ss-contact__email span { display: flex; flex-direction: column; gap: 2px; }
.ss-contact__email small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ss-contact__email:has(input[type="checkbox"]:checked) { border-color: var(--brand-200); background: var(--brand-025); }
.ss-contact__delete { margin-inline-start: auto; }

.ss-paymethods__add { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-paymethods__lead { margin: 0; padding: 0 24px 14px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.ss-paymethods__list { margin: 0; padding: 0; list-style: none; }
.ss-paymethods__item { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--divider); }
.ss-paymethods__item.is-default { background: var(--brand-025); }
.ss-paymethods__item.is-expired { opacity: .7; }
.ss-paymethods__icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-secondary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ss-paymethods__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-paymethods__name { align-self: flex-start; max-width: 100%; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--ink); }
.ss-paymethods__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.ss-paymethods__actions { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ss-paymethods__actions .disabled { opacity: .45; pointer-events: none; }
.ss-paymethods__empty { padding: 28px 24px; border-top: 1px solid var(--divider); font-size: 14px; line-height: 1.9; color: var(--muted); text-align: center; }

/* Payment method form: six's form-horizontal rows as label above field */
.ss-pmform { overflow: visible; }
.ss-pmform .form-horizontal .form-group { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.ss-pmform .form-horizontal .form-group::before, .ss-pmform .form-horizontal .form-group::after, .ss-pmform .row::before, .ss-pmform .row::after { display: none; }
.ss-pmform .form-horizontal .control-label { float: none; width: auto; padding: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-secondary); }
.ss-pmform [class*="col-sm-"], .ss-pmform [class*="col-xs-"] { float: none; width: auto; max-width: 420px; margin: 0; padding: 0; }
.ss-pmform .row { margin: 0; }
.ss-pmform .radio-inline, .ss-pmform .icheck-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px 8px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.ss-pmform .radio-inline + .radio-inline { margin-right: 0; }
.ss-pmform input[type="tel"], .ss-pmform #inputCardNumber, .ss-pmform #inputCardExpiry, .ss-pmform #inputCardCvc { font-family: var(--font-mono); direction: ltr; text-align: left; }
.ss-pmform .field-error-msg { display: none; font-size: 12.5px; color: var(--danger-700); }
.ss-pmform .has-error .field-error-msg { display: block; }
.ss-pmform .submit-container > div { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-pmform #billingContactsContainer label.icheck-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: 100%; max-width: 560px; min-height: 0; margin: 0 0 8px; padding: 12px 14px; font-weight: 400; line-height: 1.8; }
.ss-pmform #billingContactsContainer label.icheck-label strong { font-weight: 800; }
.ss-pmform #billingContactsContainer br { display: none; }
.ss-pmform .fieldgroup-remoteinput iframe { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); }

@media (max-width: 767.98px) {
  .ss-contact__picker .form-control { flex-basis: 100%; max-width: none; }
  .ss-contact__delete { margin-inline-start: 0; }
  .ss-paymethods__item { flex-wrap: wrap; padding: 14px 16px; }
  .ss-paymethods__actions { width: 100%; }
  .ss-paymethods__lead { padding: 0 16px 12px; }
}


/* 35. Domain sub-pages (private nameservers, e-mail forwarding, EPP code, addons), bulk management, price list, whois */
.ss-childns__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.ss-childns__fields--3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ss-childns__host { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ss-childns__host .form-control { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.ss-childns__host bdi { display: flex; align-items: center; padding: 0 12px; background: var(--surface-sunken); border-left: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.ss-childns .form-control, .ss-fwd .form-control, .ss-bulkdom__ns .form-control { font-family: var(--font-mono); }
.ss-childns > .ss-btn { align-self: flex-start; }

.ss-fwd { overflow: visible; }
.ss-fwd__lead { margin: 0; padding: 0 24px 14px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.ss-fwd__head, .ss-fwd__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 24px; }
.ss-fwd__head { background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-fwd__row { border-top: 1px solid var(--divider); }
.ss-fwd__row.is-new { background: var(--brand-025); }
.ss-fwd__from { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.ss-fwd__from .form-control { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.ss-fwd__from bdi { display: flex; align-items: center; padding: 0 10px; background: var(--surface-sunken); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ss-fwd__arrow { text-align: center; font-weight: 800; color: var(--brand-600); }
.ss-fwd__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--divider); }
.ss-domain__external { overflow: visible; }

.ss-epp__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px dashed var(--brand-200); border-radius: var(--radius-md); background: var(--brand-025); }
.ss-epp__code bdi { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ss-domaddonbuy__price { font-size: 22px; font-weight: 800; color: var(--brand-600); unicode-bidi: plaintext; }
.ss-domaddonbuy__price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ss-domaddonbuy .ss-btn { align-self: flex-start; }
.ss-domaddonbuy__back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 700; text-decoration: none; }

.ss-bulkdom { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-bulkdom__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); align-items: start; margin: 0; }
.ss-bulkdom__domains { order: 2; position: sticky; top: 16px; }
.ss-bulkdom__domains ul { display: flex; flex-direction: column; gap: 6px; max-height: 360px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.ss-bulkdom__domains li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 13.5px; }
.ss-bulkdom__main { order: 1; display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.ss-bulkdom__ns, .ss-bulkdom__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.ss-bulkdom__fields .form-control { unicode-bidi: plaintext; }

.ss-tldprice { display: flex; flex-direction: column; gap: var(--space-5); }
.ss-tldprice__lead { margin: 0; font-size: 14px; color: var(--muted); }
.ss-tldprice__currency .form-control { min-width: 200px; }
.ss-tldprice__featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-4); }
.ss-tldprice__feat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px; text-align: center; overflow: visible; }
.ss-tldprice__feat .ss-tldprice__tld { font-size: 22px; }
.ss-tldprice__tld { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ink); }
.ss-tldprice__price { font-size: 14px; font-weight: 800; color: var(--brand-600); unicode-bidi: plaintext; }
.ss-tldprice__price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ss-tldprice__table { overflow: visible; }
.ss-tldprice__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--divider); }
.ss-tldprice__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-tldprice__cat { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ss-tldprice__cat span { font-size: 11.5px; color: var(--faint); }
.ss-tldprice__cat.is-active { border-color: var(--brand-600); background: var(--brand-600); color: var(--surface); }
.ss-tldprice__cat.is-active span { color: var(--brand-200); }
.ss-tldprice__search { width: 240px; max-width: 100%; font-family: var(--font-mono); }
.ss-tldprice__search::placeholder { font-family: var(--font-sans); direction: rtl; }
.ss-tldprice__scroll { overflow-x: auto; }
.ss-tldprice__grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ss-tldprice__grid th { padding: 11px 16px; background: var(--surface-sunken); color: var(--muted); font-size: 12.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.ss-tldprice__grid td { padding: 12px 16px; border-top: 1px solid var(--divider); vertical-align: middle; color: var(--ink); }
.ss-tldprice__grid td small { display: block; font-size: 11.5px; color: var(--muted); unicode-bidi: plaintext; }
.ss-tldprice__grid tr[hidden] { display: none; }
.ss-tldprice__amt { font-weight: 700; unicode-bidi: plaintext; white-space: nowrap; }
.ss-tldprice__group { margin-inline-start: 6px; }
.ss-tldprice__none { margin: 0; padding: 24px; text-align: center; color: var(--muted); }

.ss-whois { max-width: 760px; margin: 0 auto; padding: 20px; }
.ss-whois__title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-whois__body { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }

@media (max-width: 1023.98px) {
  .ss-bulkdom__layout { grid-template-columns: minmax(0, 1fr); }
  .ss-bulkdom__domains { order: 0; position: static; }
}
@media (max-width: 767.98px) {
  .ss-childns__fields, .ss-childns__fields--3 { grid-template-columns: minmax(0, 1fr); }
  .ss-fwd__head { display: none; }
  .ss-fwd__row { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .ss-fwd__arrow { transform: rotate(-90deg); }
  .ss-fwd__lead { padding: 0 16px 12px; }
  .ss-fwd__actions { padding: 14px 16px; }
  .ss-tldprice__toolbar { padding: 12px 14px; }
  .ss-tldprice__search { width: 100%; }
}

/* ---------------------------------------------------------------------
   36. Quotes, contact, announcements, error pages   (no handoff design; built from Invoices.png, Invoice.png,
       TicketNew.png, KnowledgeBase.png and the sign-in card)
   --------------------------------------------------------------------- */
/* Quotes list */
.ss-quotes__lead { margin: 0; font-size: 14px; color: var(--muted); }
.ss-quotegrid { display: grid; grid-template-columns: 90px minmax(0, 1fr) 140px 140px 170px 170px; align-items: center; gap: 0 12px; }
.ss-quotegrid__num { font-weight: 800; color: var(--ink); text-decoration: none; }
.ss-quotegrid__subject { min-width: 0; color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-quotegrid__num:hover, .ss-quotegrid__num:focus, .ss-quotegrid__subject:hover, .ss-quotegrid__subject:focus { color: var(--brand-600); }
.ss-quotegrid__label { display: none; }
.ss-quotegrid__action { justify-self: end; display: flex; gap: 8px; }
.ss-quotegrid__pdf { margin: 0; }

/* Quote page (shares the invoice layout) */
.ss-quote__items .ss-invoice__row > .ss-quote__disc { flex: 0 0 150px; text-align: center; color: var(--muted); font-weight: 400; }
.ss-quote__items .ss-invoice__row > .ss-invoice__desc { flex: 1 1 auto; }
.ss-quote__disc small { font-size: 12px; }
.ss-quote__taxnote { margin: -16px 0 0; font-size: 12.5px; color: var(--muted); }
.ss-quote__proposal, .ss-quote__notes { padding: 18px 20px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; line-height: 1.9; color: var(--ink-secondary); overflow-wrap: anywhere; }
.ss-quote__proposal h2, .ss-quote__notes h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--brand-600); }
.ss-quote__hint { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.ss-quote__help { display: flex; flex-direction: column; gap: 12px; }
.ss-quote__help h2 { margin: 0; font-size: 16px; font-weight: 800; }
.ss-quote__help p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.ss-quote-modal .modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); font-family: var(--font-sans); }
.ss-quote-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--divider); }
.ss-quote-modal .modal-header::before, .ss-quote-modal .modal-header::after { display: none; }
.ss-quote-modal .modal-header .close { order: 2; float: none; margin: 0; font-size: 26px; }
.ss-quote-modal .modal-title { font-size: 17px; font-weight: 800; }
.ss-quote-modal .modal-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; font-size: 14px; line-height: 1.9; }
.ss-quote-modal .modal-body p { margin: 0; }
.ss-quote-modal .modal-body small { color: var(--muted); font-size: 12.5px; }
.ss-quote-modal__tos { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 600; cursor: pointer; }
.ss-quote-modal__tos input { flex-shrink: 0; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--brand-600); }
.ss-quote-modal .modal-footer { display: flex; justify-content: flex-start; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--divider); }
.ss-quote-modal .modal-footer::before, .ss-quote-modal .modal-footer::after { display: none; }

/* Contact */
.ss-contact__lead { margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.ss-contact__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ss-contact__list li { display: flex; align-items: center; gap: 12px; }
.ss-contact__list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ss-contact__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-contact__label { font-size: 12.5px; color: var(--muted); }
.ss-contact__value { align-self: flex-start; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ss-contact__value:hover, .ss-contact__value:focus { color: var(--brand-600); }
.ss-contact__sent { max-width: 560px; align-self: center; width: 100%; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ss-contact__sent h2 { margin: 0; font-size: 22px; font-weight: 800; }
.ss-contact__sent p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.ss-contact__sentactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* Announcements */
.ss-news { max-width: 880px; width: 100%; margin: 0 auto; }
.ss-news__list { display: flex; flex-direction: column; gap: var(--space-4); }
.ss-news__item { padding: 24px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ss-news__date { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ss-news__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.6; }
.ss-news__title a { color: var(--ink); text-decoration: none; }
.ss-news__title a:hover, .ss-news__title a:focus { color: var(--brand-600); }
.ss-news__text { margin: 0; font-size: 14.5px; line-height: 2; color: var(--ink-secondary); overflow-wrap: anywhere; }
.ss-news__text p { margin: 0 0 8px; }
.ss-news__text p:last-child { margin-bottom: 0; }
.ss-news__text img { max-width: 100%; height: auto; }
.ss-news__more { font-size: 14px; font-weight: 700; text-decoration: none; }
.ss-news__pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ss-news__page { font-size: 13.5px; color: var(--muted); }
.ss-news__empty { border-top: 0; }
.ss-news__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--divider); }
.ss-news__head .ss-pagehead__title { font-size: 26px; }
.ss-news__foot { padding-top: 16px; border-top: 1px solid var(--divider); }
/* Announcements may be in English (e.g. the WHMCS sample): each paragraph takes its own direction */
.ss-news__title, .ss-news__head .ss-pagehead__title, .ss-news__text, .ss-news__article .ss-kbarticle__content > * { unicode-bidi: plaintext; text-align: start; }

/* Error and notice pages: the sign-in card inside the page */
.ss-errorpage { align-items: center; justify-content: center; min-height: 50vh; }
.ss-errorcard { width: 520px; }
.ss-errorcard__code { font-size: 44px; font-weight: 800; line-height: 1.2; color: var(--brand-600); }
.ss-errorcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ss-errorcard__ref { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ss-errorcard__perms { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; }
.ss-errorcard__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ss-errorcard__perms ul { margin: 0; padding-right: 18px; line-height: 2; }
.ss-errorcard__facts { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.ss-errorcard__facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ss-errorcard__facts dt { font-weight: 400; color: var(--muted); }
.ss-errorcard__facts dd { margin: 0; font-weight: 700; text-align: left; }
.ss-errorcard__note { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.ss-errorcard__product { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--brand-025); font-weight: 700; }

@media (max-width: 1023.98px) {
  .ss-table__head.ss-quotegrid { display: none; }
  .ss-quotegrid { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ss-quotegrid__num { grid-column: 1; grid-row: 1; }
  .ss-quotegrid__status { grid-column: 2; grid-row: 1; justify-self: end; }
  .ss-quotegrid__subject { grid-column: 1 / -1; white-space: normal; }
  .ss-quotegrid__date { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .ss-quotegrid__label { display: inline; margin-left: 6px; }
  .ss-quotegrid__action { grid-column: 1 / -1; justify-self: stretch; }
  .ss-quotegrid__action > * { flex: 1 1 0; }
  .ss-quotegrid__pdf .ss-btn { width: 100%; }
  .ss-quote__items .ss-invoice__row > .ss-quote__disc { flex-basis: 90px; }
  .ss-contact__sent { padding: 28px 20px; }
  .ss-news__item { padding: 18px 16px; }
  .ss-news__head .ss-pagehead__title { font-size: 21px; }
  .ss-errorpage { min-height: 0; }
  .ss-errorcard__actions .ss-btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  .ss-quote__items .ss-invoice__row { flex-wrap: wrap; gap: 6px 16px; }
  .ss-quote__items .ss-invoice__row > .ss-invoice__desc { flex-basis: 100%; }
  .ss-quote__items .ss-invoice__row > .ss-quote__disc { flex: 1 1 auto; text-align: right; }
  .ss-quote__items .ss-invoice__row--head > .ss-quote__disc { display: none; }
}

/* ---------------------------------------------------------------------
   37. Downloads, affiliates, usage billing, e-mail view   (no handoff design; built from KnowledgeBase.png,
       Invoices.png and the service page)
   --------------------------------------------------------------------- */
/* Downloads (the knowledgebase parts + a file row) */
.ss-dl__empty { border-top: 0; }
.ss-dlrow { gap: 14px; }
.ss-dlrow__icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-dlrow .ss-kbrow__text { flex: 1 1 auto; }
.ss-dlrow__lock { margin-inline-start: 6px; vertical-align: middle; font-size: 11.5px; }
.ss-dlrow__size { flex-shrink: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Affiliates */
.ss-aff__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.ss-aff__link, .ss-aff__money, .ss-aff__banners { display: flex; flex-direction: column; gap: 14px; }
.ss-aff__link h2, .ss-aff__money h2, .ss-aff__banners h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--brand-600); }
.ss-aff__link p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.ss-aff__linkbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.ss-aff__linkbox bdi { flex: 1 1 auto; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ss-aff__linkbox .ss-btn { flex-shrink: 0; }
.ss-aff__amounts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ss-aff__amounts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ss-aff__amounts dt { font-weight: 400; color: var(--muted); }
.ss-aff__amounts dd { margin: 0; font-weight: 700; }
.ss-aff__available { padding: 10px 12px; border-radius: var(--radius-md); background: var(--success-050); }
.ss-aff__available dt { color: var(--success-700); font-weight: 600; }
.ss-aff__available dd { color: var(--success-700); font-size: 16px; font-weight: 800; }
.ss-aff__min { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.ss-affgrid { display: grid; grid-template-columns: 140px minmax(0, 1fr) 170px 170px 130px; align-items: center; gap: 0 12px; }
.ss-affgrid__service { min-width: 0; font-weight: 700; }
.ss-affgrid__label { display: none; }
.ss-affgrid__status { justify-self: end; }
.ss-table__head.ss-affgrid > span:last-child { justify-self: end; }
.ss-mailview__body[dir="ltr"] { text-align: left; }
/* Mixed Persian/English e-mails: each paragraph or cell takes the direction of its first word */
.ss-mailview__body :is(p, div, td, th, li, h1, h2, h3, h4) { unicode-bidi: plaintext; }
.ss-aff__code { overflow-x: auto; font-size: 13px; }
.ss-aff__code textarea { width: 100%; direction: ltr; font-family: var(--font-mono); font-size: 12.5px; }
.ss-affsignup__list { align-self: stretch; }

/* Usage billing (service page tab) */
.ss-metrics { padding: 4px 0; }
.ss-metrics__lead { margin: 0; padding: 16px 24px; font-size: 13.5px; color: var(--muted); }
.ss-metricgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.4fr) 150px; align-items: center; gap: 0 12px; padding: 14px 24px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-metrics__head { padding: 10px 24px; background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-metricgrid__label { display: none; }
.ss-metricgrid__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ss-metricgrid__price small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.ss-metricgrid__updated { font-size: 13px; color: var(--muted); }
.ss-metrics__tiers { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ss-metrics__tier { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--divider); font-size: 14px; }
.ss-metrics__tier:first-child { border-top: 0; }
.ss-metrics__tier--head { background: var(--surface-sunken); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ss-metrics__tier .ss-amount { font-weight: 700; }

/* E-mail pop-up (viewemail.tpl) */
body.ss-mailview { margin: 0; min-height: 100vh; padding: 16px; box-sizing: border-box; background: var(--ground); }
.ss-mailview__card { max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden; }
.ss-mailview__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--divider); }
.ss-mailview__icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ss-mailview__head h1 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.6; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ss-mailview__body { padding: 20px 22px; font-size: 14px; line-height: 1.9; overflow-x: auto; overflow-wrap: anywhere; }
.ss-mailview__body img { max-width: 100%; height: auto; }
.ss-mailview__body table { max-width: 100%; }
.ss-mailview__foot { display: flex; justify-content: center; padding: 14px 22px; border-top: 1px solid var(--divider); background: var(--surface-sunken); }

@media (max-width: 1023.98px) {
  .ss-aff__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ss-summarycards.ss-aff__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ss-aff__stats .ss-summarycard { padding: 12px; }
  .ss-aff__stats .ss-summarycard__text span { font-size: 11.5px; line-height: 1.6; }
  .ss-table__head.ss-affgrid { display: none; }
  .ss-affgrid { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ss-affgrid__service { grid-column: 1; grid-row: 1; }
  .ss-affgrid__status { grid-column: 2; grid-row: 1; }
  .ss-affgrid__date, .ss-affgrid__amount { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .ss-affgrid__label { display: inline; margin-left: 6px; }
  .ss-metrics__head { display: none; }
  .ss-metricgrid { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .ss-metricgrid__label { display: inline; margin-left: 6px; font-size: 12.5px; color: var(--muted); }
  .ss-metrics__lead { padding: 14px 16px; }
  .ss-dlrow__size { display: none; }
}

/* ---------------------------------------------------------------------
   38. Sign in / sign up with Google (includes/linkedaccounts.tpl; WHMCS Setup › Sign-In Integrations)
   --------------------------------------------------------------------- */
.ss-social__or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ss-social__or::before, .ss-social__or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--divider); }
.ss-social__hint { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); text-align: center; }
.ss-social { margin: 0; }
.ss-social__btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ss-social__btns > * { max-width: 100%; }
.ss-social__btns iframe { max-width: 100%; }
.ss-social__btns .btn { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-weight: 700; }
.ss-social__btns .btn:hover, .ss-social__btns .btn:focus { border-color: var(--brand-300); background: var(--brand-025); }
.ss-social__feedback:empty { display: none; }
.ss-social__feedback .alert, .providerLinkingFeedback .alert { display: block; margin: 0; padding: 12px 14px; border: 0; border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.8; }
.providerLinkingFeedback .alert-success { background: var(--success-050); color: var(--success-700); }
.providerLinkingFeedback .alert-danger, .providerLinkingFeedback .alert-error { background: var(--danger-050); color: var(--danger-700); }
.providerLinkingFeedback .alert-info, .providerLinkingFeedback .alert-warning { background: var(--brand-050); color: var(--brand-700); }
.providerLinkingFeedback .alert p { margin: 0; }
.ss-linked__table { width: 100%; font-size: 13px; }
.ss-linked__table th { padding: 10px 12px; background: var(--surface-sunken); color: var(--muted); font-weight: 700; text-align: right; }
.ss-linked__table td { padding: 10px 12px; border-top: 1px solid var(--divider); }
.ss-social__title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-secondary); text-align: center; }
.ss-linked { display: flex; flex-direction: column; gap: 12px; }
/* WHMCS wraps the Google button (an iframe drawn by Google) in a div with the .btn class: no frame of our own around it */
.ss-social__btns .g_id_signin, .ss-social__btns .btn-google { width: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ss-social__btns .g_id_signin:hover, .ss-social__btns .g_id_signin:focus { background: none; }

/* reCAPTCHA (304px box from Google) centred: its container is full width and RTL pushed the box to the right */
.ss-auth__captcha .recaptcha-container, .ss-ticketform__captcha .recaptcha-container { display: flex; justify-content: center; width: 100%; margin: 0; }
.ss-auth__captcha .text-center.row { display: flex; justify-content: center; }

/* Custom-field tick boxes (e.g. «ثبت شماره موبایل اجباری می باشد»): a normal check box beside its label, not a stretched input */
.ss-field input[type="checkbox"], .ss-field input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; border-radius: 4px; accent-color: var(--brand-600); cursor: pointer; }
.ss-custom:has(> .control > input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 10px; align-self: start; margin-top: 29px; min-height: 46px; } /* in line with the inputs beside it */
.ss-auth .ss-custom:has(> .control > input[type="checkbox"]) { margin-top: 0; min-height: 0; } /* sign-up: the field has a row of its own */
.ss-custom:has(> .control > input[type="checkbox"]) > .control { order: -1; flex-direction: row; }
.ss-custom:has(> .control > input[type="checkbox"]) > label { margin: 0; cursor: pointer; }
/* Google draws its button 20px narrower than its iframe and offsets it with margin: 0 -10px, which assumes LTR */
.ss-social__btns .g_id_signin { direction: ltr; padding-left: 10px; box-sizing: border-box; }
@media (max-width: 1023.98px) { .ss-custom:has(> .control > input[type="checkbox"]) { margin-top: 0; min-height: 0; } } /* one column: no input beside it */

/* Old theme dark-mode switch (hook on the live site, bootstrap-switch on input.twofa-toggle-switch) placed in the sign-in box */
.login-form > .bootstrap-switch { display: none !important; }

/* Domain sub-pages without a side card (the nameserver card is only on the overview): main column takes the full width */
.ss-domain__side:not(:has(*)) { display: none; }
.ss-domain__grid:not(:has(> .ss-domain__side *)) { grid-template-columns: minmax(0, 1fr); }

/* New ticket: common questions of the chosen department in the side card (includes/ss-ticket-faq.tpl) */
.ss-faq { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.ss-faq[hidden], .ss-faq__list[hidden] { display: none; }
.ss-faq__title { margin: 0 0 2px; font-size: 14px; font-weight: 800; color: var(--ink); }
.ss-faq__title span { color: var(--brand-600); }
.ss-faq__list { display: flex; flex-direction: column; gap: 6px; }
.ss-faq__note { margin: 0 0 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-050); color: var(--accent-900); font-size: 12.5px; line-height: 1.9; }
.ss-faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.ss-faq details[open] { border-color: var(--brand-200); background: var(--brand-025); }
.ss-faq summary { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 700; line-height: 1.8; color: var(--ink); cursor: pointer; list-style: none; }
.ss-faq summary::-webkit-details-marker { display: none; }
.ss-faq summary::before { content: '+'; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); font-size: 14px; line-height: 18px; text-align: center; font-weight: 800; }
.ss-faq details[open] summary::before { content: '−'; }
.ss-faq details p { margin: 0; padding: 0 38px 12px 12px; font-size: 12.5px; line-height: 1.95; color: var(--ink-secondary); }
.ss-faq__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; font-size: 12.5px; }
.ss-faq__links a { color: var(--brand-600); font-weight: 700; }

/* WHMCS markdown editor (tickets): the fullscreen button is removed — in RTL its exit control lands off screen and the
   editor cannot be made small again (seen on the live site 2026-10-24); the English "lines: n words: n" counter that
   WHMCS writes next to «ذخیره شد» is hidden, the saved label stays */
.md-editor .md-control-fullscreen, .md-editor .md-fullscreen-controls, .md-editor .exit-fullscreen { display: none !important; }
.md-editor .markdown-editor-status .small-font { font-size: 0; }
.md-editor .markdown-editor-status .markdown-save { font-size: 12px; }
