@font-face {
  font-family: "Vazirmatn";
  src: url("../../../assets/fonts/vazirmatn/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --iptak-blue: #2563eb;
  --iptak-blue-dark: #1746b5;
  --iptak-ink: #10203d;
  --iptak-muted: #60718c;
  --iptak-line: #e3eaf4;
  --iptak-surface: #fff;
  --iptak-soft: #f4f7fc;
  --iptak-radius: 16px;
  --iptak-shadow: 0 12px 34px rgba(18, 42, 82, .07);
}

html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: "Vazirmatn", Tahoma, Arial, sans-serif; }
/* Keep one Persian typeface throughout every WHMCS client-area component. */
html body, html body * { font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important; }
body { background: var(--iptak-soft); color: var(--iptak-ink); line-height: 1.75; }
a { color: var(--iptak-blue); transition: color .16s ease; }
a:hover, a:focus { color: var(--iptak-blue-dark); }

/* Storefront shell */
#header { position: relative; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--iptak-line); box-shadow: 0 5px 24px rgba(18,35,72,.045); }
#header .navbar-light, #header .main-navbar-wrapper { background: transparent; }
#header .navbar { min-height: 72px; }
#header .navbar-brand { color: var(--iptak-ink); font-size: 1.15rem; font-weight: 800; }
#header .logo-img { max-height: 42px; width: auto; }
#header .main-navbar-wrapper { border-top: 1px solid #f0f3f8; }
#header .main-navbar-wrapper .navbar-nav > li > a { padding: .85rem .9rem; color: #34445f; font-weight: 650; }
#header .main-navbar-wrapper .navbar-nav > li > a:hover,
#header .main-navbar-wrapper .navbar-nav > li.active > a { color: var(--iptak-blue); }
/* Give every desktop navigation item one shared vertical alignment and height;
   this includes the overflow "More" item with its custom image icon. */
@media (min-width: 992px) {
  #header .main-navbar-wrapper .navbar-nav > li {
    align-self: stretch;
  }
  #header .main-navbar-wrapper .navbar-nav > li > a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .85rem .9rem;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
  }
  #header .main-navbar-wrapper .navbar-nav > li > a > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
  }
  #header .main-navbar-wrapper .navbar-nav > li > a .iptak-nav-personal-icon {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin: 0;
  }
  #header .main-navbar-wrapper .navbar-nav > li > a::after {
    align-self: center;
    margin-block: 0;
    vertical-align: middle;
  }
}
#header .dropdown-menu, .navbar .dropdown-menu { border: 1px solid var(--iptak-line); border-radius: 12px; box-shadow: var(--iptak-shadow); }
#header .dropdown-item { color: var(--iptak-ink); }
#header .dropdown-item:hover, #header .dropdown-item:focus { color: var(--iptak-blue-dark); background: #edf3ff; }
#header .btn-primary, #header .btn.btn-primary { color: #fff; background: var(--iptak-blue); border-color: var(--iptak-blue); }
#header .topbar { background: #f7f9fd; border-bottom: 1px solid var(--iptak-line); }
#header .topbar .btn { color: #3d4c66; }
#header .cart-btn { color: var(--iptak-ink); }

/* Client area and page hierarchy */
#main-body { min-height: 58vh; padding-block: 32px 52px; }
.primary-bg-color { background-color: transparent; }
.header-lined { margin-bottom: 24px; border-color: var(--iptak-line); }
.header-lined h1, h1, h2, h3, h4, h5 { color: var(--iptak-ink); }
.header-lined h1, #main-body h1 { font-weight: 800; letter-spacing: -.025em; }
.card, .panel, .well, .tile, .client-home-panels .panel,
.client-home-panels .panel > .panel-heading { border-color: var(--iptak-line); }
.card, .panel, .well, .tile, .client-home-panels .panel { border-radius: var(--iptak-radius); box-shadow: var(--iptak-shadow); }
.card, .panel-default, .well, .client-home-panels .panel { background: var(--iptak-surface); }
.panel-heading { border-radius: var(--iptak-radius) var(--iptak-radius) 0 0; }
.client-home-panels .panel > .panel-heading { background: #f8faff; }
.tiles .tile { min-height: 112px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.tiles .tile:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(18,42,82,.1); }
.tiles .tile .stat { color: var(--iptak-blue-dark); font-weight: 800; }

/* Forms, selectors and native dropdown menus */
.form-control, .field, select.form-control, .custom-select { min-height: 42px; border-color: #d6e0ee; border-radius: 10px; color: var(--iptak-ink); background-color: #fff; box-shadow: none; }
textarea.form-control { min-height: 110px; }
.form-control:focus, .field:focus, select.form-control:focus, .custom-select:focus { border-color: #7aa2ff; color: var(--iptak-ink); background-color: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.13); }
select, option { color: var(--iptak-ink); background-color: #fff; }
select option:checked, select option:hover { color: #10203d; background: #eaf1ff; }
label, .control-label { color: #253652; font-weight: 650; }
.input-group-text { color: #40516c; background: #f6f8fc; border-color: #d6e0ee; }
.custom-control-label::before { border-color: #b9c7dc; }

/* Actions, notices and data */
.btn { min-height: 42px; padding: 9px 16px; border-radius: 10px; font-weight: 700; line-height: 1.35; text-align: center; vertical-align: middle; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
a.btn, button.btn, .btn:not(input) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: normal; }
input.btn { min-height: 42px; padding: 9px 16px; line-height: normal; text-align: center; }
.btn.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9em; }
.btn.btn-xs { min-height: 31px; padding: 4px 9px; font-size: .82em; }
.btn > .iptak-personal-icon { flex: 0 0 auto; }
.btn + .btn { margin-inline-start: 9px; }
.btn-group > .btn + .btn, .input-group > .btn + .btn { margin-inline-start: 0; }
.btn-primary, .btn-success { color: #fff; background: linear-gradient(105deg, var(--iptak-blue), #6844dc); border-color: var(--iptak-blue); }
.btn-primary:hover, .btn-primary:focus, .btn-success:hover, .btn-success:focus { color: #fff; background: var(--iptak-blue-dark); border-color: var(--iptak-blue-dark); box-shadow: 0 8px 20px rgba(37,99,235,.2); transform: translateY(-1px); }
.btn-default, .btn-secondary { color: #34425c; background: #fff; border: 1px solid #d9e2f0; }
.btn-default:hover, .btn-secondary:hover { color: var(--iptak-blue-dark); background: #f5f7fd; border-color: #bfcdf0; }
.btn-danger { color: #fff; background: #d96875; border-color: #d96875; }
.btn-danger:hover, .btn-danger:focus { color:#fff; background:#c65262; border-color:#c65262; }
.btn:disabled, .btn.disabled { opacity:.58; box-shadow:none; transform:none; }
.form-group.text-center > .btn + .btn { margin-inline-start: 12px; }
.home-domain-search .input-group { align-items: stretch; }
.home-domain-search .input-group-append { display:flex; align-items:stretch; gap:8px; margin-inline-start:8px; }
.home-domain-search .input-group-append .btn { display:inline-flex; flex:0 0 96px; align-items:center; justify-content:center; min-width:96px; min-height:46px; height:100%; margin:0; padding:8px 12px; border:1px solid var(--iptak-blue); border-radius:10px !important; color:#fff; background:linear-gradient(105deg,var(--iptak-blue),#6844dc); box-shadow:0 5px 12px rgba(49,94,234,.12); font-size:14px; font-weight:750; line-height:1.35; text-align:center; white-space:normal; transform:none; }
.home-domain-search .input-group-append .btn + .btn { margin-inline-start:0; }
.home-domain-search .input-group-append .btn:hover,
.home-domain-search .input-group-append .btn:focus { color:#fff; border-color:var(--iptak-blue-dark); background:linear-gradient(105deg,var(--iptak-blue-dark),#5836c9); box-shadow:0 7px 16px rgba(49,94,234,.2); transform:none; }
.card + .card, .panel + .panel, .well + .well { margin-block-start: 16px; }
.table-responsive { margin-block: 12px; }
.list-group-item { color: var(--iptak-ink); background: #fff; border-color: var(--iptak-line); }
.list-group-item.active, .list-group-item.active:hover { color: var(--iptak-blue-dark); background: #edf3ff; border-color: #d8e5ff; }
.table { color: #263651; background: #fff; }
.table > thead > tr > th { color: #34445f; background: #f6f8fc; border-bottom-color: var(--iptak-line); }
.table > tbody > tr > td { border-top-color: #edf0f5; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfe; }
.alert { border-radius: 12px; }
.pagination > li > a, .pagination > li > span { color: var(--iptak-blue); }
.pagination > .active > a, .pagination > .active > span { color: #fff; background: var(--iptak-blue); border-color: var(--iptak-blue); }

/* Footer, keyboard and motion */
#footer { padding-block: 28px; color: var(--iptak-muted); background: #fff; border-top: 1px solid var(--iptak-line); }
#footer a { color: #34425c; }
#footer a:hover { color: var(--iptak-blue); }
:focus-visible { outline: 3px solid rgba(37,99,235,.58); outline-offset: 2px; }
[dir="rtl"] { direction: rtl; }
[dir="rtl"] body, [dir="rtl"] .text-left { text-align: right !important; }
[dir="rtl"] .text-right { text-align: left !important; }
[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .mr-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ml-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .float-left { float: right !important; }
[dir="rtl"] .float-right { float: left !important; }
[dir="rtl"] .input-group > .input-group-prepend { order: 2; }
[dir="rtl"] .input-group > .input-group-append { order: 0; }
[dir="rtl"] .input-group > .form-control:not(:first-child), [dir="rtl"] .input-group > .custom-select:not(:first-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
[dir="rtl"] .input-group > .form-control:not(:last-child), [dir="rtl"] .input-group > .custom-select:not(:last-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
[dir="rtl"] .dropdown-menu { text-align: right; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"], [dir="rtl"] input[name*="domain"], [dir="rtl"] input[name*="username"] { direction: ltr; text-align: left; }

@media (max-width: 767.98px) {
  #main-body { padding-block: 22px 36px; }
  #header .navbar { min-height: 60px; }
  #header .main-navbar-wrapper .navbar-nav > li > a { padding: .7rem .4rem; }
  .table-responsive { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Native WHMCS cart/order flow shares the client-area shell. */
.cart-body,.secondary-cart-body { color:var(--iptak-ink); }
.cart-sidebar,.secondary-cart-sidebar,.order-summary,.product,.panel-addon,.domain-checker-container,.view-cart-items { border:1px solid var(--iptak-line); border-radius:16px; }
.cart-sidebar,.secondary-cart-sidebar,.order-summary,.product,.panel-addon,.domain-checker-container { box-shadow:var(--iptak-shadow); }
.product { background:#fff; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.product:hover,.panel-addon:hover { transform:translateY(-2px); border-color:#b9ccf7; box-shadow:0 14px 32px rgba(20,42,83,.1); }
.product-title,.product-name,.sub-heading { color:var(--iptak-ink); }
.product .price,.product-pricing .price,.order-summary .amt { color:var(--iptak-blue-dark); font-weight:800; }
.view-cart-items .item:nth-child(even) { background:#f7f9fc; }

/* Standard Cart: explicit responsive grid and VPS product cards. */
#order-standard_cart { color:var(--iptak-ink); padding-bottom:48px; }
#order-standard_cart > .row { display:flex; flex-wrap:wrap; align-items:flex-start; }
#order-standard_cart > .row > .cart-sidebar { float:none; width:25%; padding-inline:14px; }
#order-standard_cart > .row > .cart-body { float:none; width:75%; padding-inline:18px; }
#order-standard_cart .header-lined { margin-bottom:24px; border-color:var(--iptak-line); }
#order-standard_cart .header-lined h1 { color:var(--iptak-ink); font-size:clamp(28px,3vw,40px); font-weight:800; letter-spacing:-.03em; }
#order-standard_cart .products > .row { display:flex; flex-wrap:wrap; }
#order-standard_cart .products .col-md-6 { display:flex; flex:0 0 50%; max-width:50%; margin-bottom:20px; }
#order-standard_cart .product { display:flex; flex:1 1 auto; flex-direction:column; width:100%; min-height:100%; overflow:hidden; border:1px solid var(--iptak-line); border-radius:16px; background:#fff; box-shadow:var(--iptak-shadow); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
#order-standard_cart .product:hover { transform:translateY(-3px); border-color:#b9ccf7; box-shadow:0 18px 40px rgba(20,42,83,.11); }
#order-standard_cart .product header { padding:18px 20px; color:var(--iptak-ink); background:#f8faff; border-bottom:1px solid var(--iptak-line); font-size:18px; font-weight:800; }
#order-standard_cart .product .product-desc { flex:1 1 auto; padding:18px 20px; color:#475873; line-height:1.9; }
#order-standard_cart .product .product-desc ul { padding-inline-start:20px; }
#order-standard_cart .product footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 20px; border-top:1px solid #edf0f5; }
#order-standard_cart .product .product-pricing { color:var(--iptak-muted); line-height:1.65; }
#order-standard_cart .product .price { color:var(--iptak-blue-dark); font-size:21px; font-weight:850; }
#order-standard_cart .sidebar .panel { border:1px solid var(--iptak-line); border-radius:15px; box-shadow:var(--iptak-shadow); overflow:hidden; }
#order-standard_cart .sidebar .panel-heading { background:#f8faff; color:var(--iptak-ink); font-weight:750; }
#order-standard_cart .sidebar .list-group-item { color:#34445f; border-color:#edf0f5; }
#order-standard_cart .sidebar .list-group-item.active { color:var(--iptak-blue-dark); background:#edf3ff; border-color:#d8e5ff; }
#order-standard_cart .order-summary,#order-standard_cart .view-cart-items { border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
[dir="rtl"] #order-standard_cart > .row > .cart-sidebar { order:0; }
[dir="rtl"] #order-standard_cart > .row > .cart-body { order:1; }
@media(max-width:1199px) { #order-standard_cart > .row > .cart-sidebar { display:none; } #order-standard_cart > .row > .cart-body { width:100%; } }
@media(max-width:767px) { #order-standard_cart > .row > .cart-body { padding-inline:10px; } #order-standard_cart .products .col-md-6 { flex-basis:100%; max-width:100%; } #order-standard_cart .product footer { align-items:stretch; flex-direction:column; } #order-standard_cart .product footer .btn { width:100%; } }

/* Shared client-area pages: authentication, account dashboard and support. */
#main-body { background:transparent; }
#main-body > .container { max-width:1220px; }
.iptak-breadcrumb { display:flex; align-items:center; gap:12px; min-height:48px; margin:0 0 24px; padding:10px 16px; color:#52637d; background:linear-gradient(110deg,#f8faff 0%,#eef4ff 100%); border:1px solid var(--iptak-line); border-radius:14px; box-shadow:0 6px 20px rgba(24,48,88,.045); }
.iptak-breadcrumb-mark { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border:1px solid #dce6ff; border-radius:9px; background:#fff; }
.iptak-breadcrumb-mark img { display:block; width:16px; height:16px; }
.iptak-breadcrumb .breadcrumb { display:flex; flex-wrap:wrap; align-items:center; min-width:0; margin:0; padding:0; color:#52637d; background:transparent; border:0; border-radius:0; }
.iptak-breadcrumb .breadcrumb-item { display:inline-flex; align-items:center; white-space:nowrap; }
.iptak-breadcrumb .breadcrumb a { color:#405573; text-decoration:none; transition:color .18s ease; }
.iptak-breadcrumb .breadcrumb a:hover { color:var(--iptak-blue); }
.iptak-breadcrumb .breadcrumb > .active { color:var(--iptak-ink); font-weight:750; }
.iptak-breadcrumb .breadcrumb-item + .breadcrumb-item::before { float:none; margin-inline:8px; padding:0; color:#91a2bd; }
.iptak-service-state-cell { width:54px; }
.iptak-service-state-icon { display:inline-grid; place-items:center; width:34px; height:34px; border:1px solid #dce6ff; border-radius:11px; background:linear-gradient(145deg,#f8faff,#edf3ff); vertical-align:middle; transition:transform .18s ease,box-shadow .18s ease; }
.iptak-service-state-icon img { display:block; width:22px; height:22px; object-fit:contain; }
.iptak-service-state-icon:hover { transform:translateY(-1px); box-shadow:0 5px 12px rgba(26,48,83,.12); }
.iptak-service-state-icon.is-active { border-color:#c7ead9; background:#effaf4; }
.iptak-service-state-icon.is-pending { border-color:#f1dfb4; background:#fff9e9; }
.iptak-service-state-icon.is-suspended,.iptak-service-state-icon.is-terminated,.iptak-service-state-icon.is-cancelled,.iptak-service-state-icon.is-fraud,.iptak-service-state-icon.is-expired { border-color:#f0d4d8; background:#fff5f6; }
.iptak-service-state-icon.is-other { border-color:#dce2ec; background:#f5f7fa; }
.iptak-service-product-illustration { display:inline-grid; place-items:center; width:54px; height:54px; margin:0 auto 10px; border:1px solid #dce6ff; border-radius:16px; background:linear-gradient(145deg,#f4f7ff,#eaf1ff); box-shadow:0 8px 20px rgba(48,86,180,.1); }
.iptak-service-product-illustration img { display:block; width:30px; height:30px; object-fit:contain; }
.login-form .card { max-width:540px; margin-inline:auto; overflow:hidden; border:1px solid var(--iptak-line); border-radius:20px; box-shadow:0 20px 54px rgba(18,42,82,.1); }
.login-form .card-body { padding:clamp(24px,4vw,44px); }
.login-form h6.h3 { font-size:1.7rem; font-weight:850; }
.login-form .card-footer { padding-block:18px; background:#f8faff; border-top:1px solid var(--iptak-line); }
.register-form .card,.password-reset-form .card,.two-factor-form .card { max-width:760px; margin-inline:auto; border:1px solid var(--iptak-line); border-radius:18px; box-shadow:var(--iptak-shadow); }

/* Client dashboard and account navigation */
.tiles .col-6 { padding:8px; }
.tiles .tile { position:relative; display:block; height:100%; min-height:134px; padding:22px; overflow:hidden; color:var(--iptak-ink); background:#fff; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
.tiles .tile > i { color:var(--iptak-blue); font-size:20px; }
.tiles .tile .stat { margin-top:10px; color:var(--iptak-blue-dark); font-size:1.7rem; font-weight:850; }
.tiles .tile .title { color:#52637d; font-weight:650; }
.tiles .tile .highlight { inset-inline:0; bottom:0; height:3px; }
/* Keep dashboard icons inside a compact badge; the stock theme enlarges them
   dramatically on hover, which makes them overlap the tile content. */
.tiles .tile {
  border: 1px solid var(--iptak-line);
  border-radius: 16px;
  box-shadow: var(--iptak-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.tiles .tile > i {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  inset-inline-end: auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--iptak-blue) !important;
  background: #edf2ff;
  font-size: 18px !important;
  line-height: 1;
  transform: none;
  transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.tiles .tile .stat {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  margin: 0 !important;
  color: var(--iptak-blue-deep);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tiles .tile .stat.iptak-credit-balance {
  left: 14px;
  right: 66px;
  width: auto;
  max-width: none;
  overflow: hidden;
  font-size: clamp(13px, 1.15vw, 16px);
  text-align: center;
  text-overflow: ellipsis;
}
.tiles .tile .title {
  display: block;
  margin-top: 58px;
  color: #52637d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.tiles .tile:hover,
.tiles .tile:focus-visible {
  background: #fff;
  border-color: #c8d6ff;
  box-shadow: 0 14px 32px rgba(35, 72, 160, .12);
  transform: translateY(-3px);
}
.tiles .tile:hover > i,
.tiles .tile:focus-visible > i {
  color: #fff !important;
  background: linear-gradient(140deg, var(--iptak-blue), var(--iptak-purple));
  box-shadow: 0 6px 14px rgba(49, 94, 234, .22);
  font-size: 18px !important;
  transform: scale(1.04);
}
.tiles .tile:focus-visible { outline: 3px solid rgba(49, 94, 234, .28); outline-offset: 3px; }
.tiles .tile:focus-visible > i { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tiles .tile, .tiles .tile > i { transition: none; }
  .tiles .tile:hover, .tiles .tile:focus-visible { transform: none; }
}
@media (max-width: 420px) {
  .tiles .tile { min-height: 112px; padding: 13px 12px 16px; }
  .tiles .tile > i { top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; }
  .tiles .tile .stat { top: 14px; inset-inline-end: 12px; font-size: 27px; }
  .tiles .tile .title { margin-top: 48px; font-size: 12px; }
}
.client-home-cards .card { overflow:hidden; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
.client-home-cards .card-header { padding:16px 20px; background:#f8faff; border-bottom:1px solid var(--iptak-line); }
.client-home-cards .card-title { color:var(--iptak-ink); font-size:1.08rem; font-weight:800; }
.client-home-cards .list-group-item { padding:14px 18px; }
.sidebar .list-group-item { color:#34445f; border-color:#edf0f5; }
.sidebar .card-sidebar { margin-bottom:16px !important; overflow:hidden; color:var(--iptak-ink); background:#fff; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:0 10px 28px rgba(23,43,77,.07); }
.sidebar .card-sidebar > .card-header { display:flex; align-items:center; min-height:54px; padding:12px 16px; color:var(--iptak-ink); background:linear-gradient(110deg,#fbfcff 0%,#f2f6ff 100%); border:0; border-bottom:1px solid #e4eaf4; }
.sidebar .card-sidebar > .card-header .card-title { display:flex; align-items:center; width:100%; gap:8px; margin:0; color:inherit; font-size:15px; font-weight:750; line-height:1.45; }
.sidebar .card-sidebar > .card-header .card-minimise { margin-inline-start:auto; float:none !important; flex:0 0 auto; color:#657792; }
.sidebar .card-sidebar .collapsable-card-body,.sidebar .card-sidebar .card-body { background:#fff; }
.sidebar .card-sidebar .list-group { margin:0; background:#fff; }
.sidebar .card-sidebar .list-group-item { display:flex; align-items:center; min-height:48px; padding:11px 16px; color:#40516c; background:#fff; border-color:#e9eef5; line-height:1.55; transition:background-color .16s ease,color .16s ease; }
.sidebar .card-sidebar .list-group-item:hover,.sidebar .card-sidebar .list-group-item:focus { color:var(--iptak-blue-dark); background:#f7f9ff; }
.sidebar .card-sidebar .list-group-item.active,.sidebar .card-sidebar .list-group-item.active:hover,.sidebar .card-sidebar .list-group-item.active:focus { color:#2455d6; background:#edf3ff; border-color:#dce7ff; }
.sidebar .card-sidebar > .card-footer { padding:12px 16px; background:#f8faff; border:0; border-top:1px solid #e9eef5; }

/* Account details sidebar card */
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) {
  border-color: #d8e3f6;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 55, 105, .09);
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) > .card-header {
  position: relative;
  min-height: 58px;
  padding: 14px 18px;
  background: linear-gradient(115deg, #f7f9ff 0%, #eef3ff 100%);
  border-bottom: 1px solid #dfe8f7;
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) > .card-header::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(180deg, #3476f6, #6843dc);
  content: "";
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) .collapsable-card-body > .card-body {
  padding: 16px 18px 18px;
  color: #536783;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) .card-body strong,
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) .card-body b {
  color: #142d53;
  font-size: 15px;
  font-weight: 800;
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) > .card-footer {
  padding: 12px 16px 14px;
  background: #f7f9ff;
  border-top: 1px solid #e3eaf5;
}
.sidebar .card-sidebar:has(> .card-footer a[href*="action=details"]) > .card-footer a {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(63, 84, 225, .18);
}

/* Service, domain, invoice and ticket tables */
.table-container { padding:4px; overflow-x:auto; background:#fff; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
.table-list { margin-bottom:0; }
.table-list > thead > tr > th { padding:14px 12px; color:#40516c; background:#f6f8fc; border-bottom:1px solid var(--iptak-line); white-space:nowrap; }
.table-list > tbody > tr > td { padding:14px 12px; vertical-align:middle; }
.table-list > tbody > tr:hover { background:#f8faff; }
.table-list > tbody > tr[onclick] { cursor:pointer; }
.iptak-currency-value { display:inline-block; direction:ltr; unicode-bidi:isolate; white-space:nowrap; }
#tableInvoicesList thead th { position:relative; padding-inline-end:30px !important; background-image:none !important; }
#tableInvoicesList thead th.sorting::after,
#tableInvoicesList thead th.sorting_asc::after,
#tableInvoicesList thead th.sorting_desc::after { position:absolute; inset-inline-end:10px; top:50%; transform:translateY(-50%); color:#91a0b5; font-size:12px; line-height:1; }
#tableInvoicesList thead th.sorting::after { content:'↕'; }
#tableInvoicesList thead th.sorting_asc::after { content:'↑'; color:#315eea; }
#tableInvoicesList thead th.sorting_desc::after { content:'↓'; color:#315eea; }
.dataTables_wrapper .dataTables_filter input,.dataTables_wrapper .dataTables_length select { min-height:38px; padding:6px 10px; color:var(--iptak-ink); background:#fff; border:1px solid #d6e0ee; border-radius:9px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius:8px; }
.label,.badge { border-radius:999px; font-weight:700; }
.status-active,.status-paid,.status-open,.status-answered { color:#126b45; background:#e8f7ef; }
.status-pending,.status-unpaid,.status-inprogress,.status-customer-reply { color:#875600; background:#fff4d6; }
.status-suspended,.status-cancelled,.status-terminated,.status-closed,.status-overdue { color:#a3313a; background:#fff0f0; }

/* Ticket conversation, knowledge base, invoice and checkout surfaces */
.ticket-reply,.ticket-reply .well,.ticket-reply .card { border-color:var(--iptak-line); border-radius:14px; }
.ticket-reply.staff { background:#f3f7ff; }
.ticket-reply .ticket-reply-header { color:#40516c; background:#f8faff; }
.knowledgebase-search,.kb-search { padding:22px; background:#fff; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
.view-invoice .invoice-container,.invoice-container { background:#fff; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:var(--iptak-shadow); }
#order-standard_cart .view-cart-items .item { padding:16px; border-bottom:1px solid #edf0f5; }
#order-standard_cart .order-summary { padding:18px; background:#fff; }
#order-standard_cart .checkout-summary { position:sticky; top:18px; }
#order-standard_cart .stepwizard .stepwizard-row .stepwizard-step .btn { border-radius:999px; }

/* Dropdowns, dialogs and notices */
.dropdown-menu { padding:6px; color:var(--iptak-ink); background:#fff; border:1px solid var(--iptak-line); border-radius:12px; box-shadow:var(--iptak-shadow); }
.dropdown-menu .dropdown-item { padding:9px 12px; color:#34445f; border-radius:8px; }
.dropdown-menu .dropdown-item:hover,.dropdown-menu .dropdown-item:focus { color:var(--iptak-blue-dark); background:#edf3ff; }
.modal-content { overflow:hidden; border:1px solid var(--iptak-line); border-radius:16px; box-shadow:0 24px 65px rgba(10,28,56,.2); }
.modal-header { background:#f8faff; border-bottom-color:var(--iptak-line); }
.alert { color:#34445f; border:1px solid transparent; }
.alert-info { color:#174a8b; background:#edf5ff; border-color:#d8e8ff; }
.alert-success { color:#126b45; background:#e8f7ef; border-color:#ccebd9; }
.alert-warning { color:#875600; background:#fff7e2; border-color:#f6e3ad; }
.alert-danger { color:#a3313a; background:#fff0f0; border-color:#f3d2d4; }

/* Deliberate RTL alignment; keep technical identifiers LTR. */
[dir="rtl"] .iptak-breadcrumb { direction:rtl; }
[dir="rtl"] .iptak-breadcrumb .breadcrumb { direction:rtl; text-align:right; }
[dir="rtl"] .tiles .tile, [dir="rtl"] .client-home-cards, [dir="rtl"] .sidebar { text-align:right; }
[dir="rtl"] .table-list th, [dir="rtl"] .table-list td { text-align:right; }
[dir="rtl"] .dataTables_wrapper .dataTables_filter { float:left; text-align:left; }
[dir="rtl"] .dataTables_wrapper .dataTables_length { float:right; text-align:right; }
[dir="rtl"] .pagination { padding-right:0; }
[dir="rtl"] .input-group-prepend { margin-left:-1px; margin-right:0; }
[dir="rtl"] .input-group-append { margin-right:-1px; margin-left:0; }
[dir="rtl"] .dropdown-menu { right:0; left:auto; text-align:right; }
[dir="rtl"] code,[dir="rtl"] pre,[dir="rtl"] .ticket-number,[dir="rtl"] .invoice-number { direction:ltr; unicode-bidi:plaintext; }
@media(max-width:767px) {
  #main-body > .container { padding-inline:12px; }
  #main-body { padding-block:18px 32px; }
  .tiles .col-6 { padding:5px; }
  .tiles .tile { min-height:118px; padding:16px; }
  .table-container { border-radius:12px; }
  .header-lined h1 { font-size:1.8rem; }
  #footer { text-align:center; }
}
/* Page Builder pages use the same WHMCS header and footer with a full-width canvas. */
body.pb-pagebuilder-shell .master-breadcrumb { display: none !important; }
body.pb-pagebuilder-shell #main-body,
body.pb-pagebuilder-shell #main-body > .container { width: 100%; max-width: none; padding: 0; margin: 0; }
body.pb-pagebuilder-shell #main-body > .container > .row { margin: 0; }
body.pb-pagebuilder-shell #main-body .sidebar { display: none !important; }
body.pb-pagebuilder-shell #main-body .primary-content { flex: 0 0 100%; max-width: 100%; padding: 0; }
body.pb-pagebuilder-shell .pb-whmcs-home-shell,
body.pb-pagebuilder-shell .pb-whmcs-shell-content { min-height: 60vh; }

@media (max-width: 767.98px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  #main-body, #main-body > .container, #main-body > .container > .row,
  #main-body .primary-content, #order-standard_cart { width: 100%; max-width: 100%; min-width: 0; }
  #main-body > .container { padding-inline: 12px; }
  #order-standard_cart > .row { display: flex; flex-direction: column; width: 100%; margin-inline: 0; }
  #order-standard_cart > .row > .cart-sidebar { display: none !important; }
  #order-standard_cart > .row > .cart-body {
    display: block; flex: 0 0 100%; float: none !important; width: 100% !important;
    max-width: 100%; margin: 0; padding: 0 4px !important;
  }
  #order-standard_cart .products > .row { margin-inline: 0; }
  #order-standard_cart .products .col-md-6 { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
/* Original IPTak hosting icon set */
.tiles .tile > .iptak-dashboard-icon { position:absolute; inset-inline-start:14px; inset-inline-end:auto; top:14px; display:block; width:42px; height:42px; margin:0; padding:6px; object-fit:contain; border:1px solid #e2e9ff; border-radius:12px; background:#edf2ff; }
.tiles .tile:hover > .iptak-dashboard-icon, .tiles .tile:focus-visible > .iptak-dashboard-icon { border-color:#cbd8ff; background:#e6edff; }
@media (max-width:420px) { .tiles .tile > .iptak-dashboard-icon { inset-inline-start:12px; top:12px; width:36px; height:36px; padding:5px; } }

/* Login credentials: one aligned control with consistent icon buttons. */
.login-form .input-group-merge {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #d6e0ee;
  border-radius: 11px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.login-form .input-group-merge:focus-within {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.login-form .input-group-merge > .input-group-prepend,
.login-form .input-group-merge > .input-group-append {
  display: flex;
  flex: 0 0 44px;
  align-items: stretch;
  margin: 0 !important;
}
.login-form .input-group-merge > .input-group-prepend > .input-group-text,
.login-form .input-group-merge > .input-group-append > .btn-reveal-pw {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #526783;
  background: #f3f6fc;
  box-shadow: none;
  line-height: 1;
}
.login-form .input-group-merge > .input-group-prepend > .input-group-text {
  border-inline-end: 1px solid #e2e9f3;
}
.login-form .input-group-merge > .input-group-append > .btn-reveal-pw {
  border-inline-start: 1px solid #e2e9f3;
}
.login-form .input-group-merge > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.login-form .input-group-merge > .form-control:focus {
  border: 0;
  box-shadow: none;
}
.login-form .input-group-merge .iptak-personal-icon {
  width: 16px;
  height: 16px;
  margin: 0 !important;
}
.login-form .input-group-merge > .input-group-append > .btn-reveal-pw:hover,
.login-form .input-group-merge > .input-group-append > .btn-reveal-pw:focus-visible {
  color: var(--iptak-blue-dark);
  background: #e9efff;
}
.login-form .input-group-merge > .input-group-append > .btn-reveal-pw:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: -3px;
}

/* Registration: keep decorative field icons in a reserved RTL gutter. */
[dir="rtl"] #registration .prepend-icon {
  position: relative;
  direction: rtl;
}
[dir="rtl"] #registration .prepend-icon > .field-icon {
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 3;
  display: flex;
  width: 42px;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #8292aa;
  line-height: 1;
  pointer-events: none;
}
[dir="rtl"] #registration .prepend-icon > .field-icon .iptak-personal-icon {
  display: block;
  width: 15px;
  height: 15px;
  max-width: 15px;
  margin: 0 !important;
  vertical-align: middle;
}
[dir="rtl"] #registration .prepend-icon > input.field,
[dir="rtl"] #registration .prepend-icon > select.field,
[dir="rtl"] #registration .prepend-icon > textarea.field {
  padding-right: 42px !important;
  padding-left: 13px !important;
  text-align: right;
}
/* The country selector already identifies the phone field; don't stack a phone
   glyph over it. Keep the country flag/code on the physical left in RTL. */
[dir="rtl"] #registration .prepend-icon:has(#inputPhone) > .field-icon {
  display: none !important;
}
[dir="rtl"] #registration .intl-tel-input {
  display: block;
  width: 100%;
  direction: ltr;
  text-align: left;
}
[dir="rtl"] #registration .intl-tel-input input[type="tel"] {
  width: 100%;
  min-width: 0;
  padding-right: 12px !important;
  padding-left: 56px !important;
  text-align: left !important;
  direction: ltr !important;
  border-radius: 10px;
}
[dir="rtl"] #registration .intl-tel-input.separate-dial-code input[type="tel"] {
  padding-left: 76px !important;
}
[dir="rtl"] #registration .intl-tel-input.separate-dial-code.iti-sdc-3 input[type="tel"] {
  padding-left: 84px !important;
}
[dir="rtl"] #registration .intl-tel-input.separate-dial-code.iti-sdc-4 input[type="tel"] {
  padding-left: 92px !important;
}
[dir="rtl"] #registration .intl-tel-input .flag-container {
  right: auto;
  left: 0;
}

/* Support ticket creation form and its markdown editor */
[dir="rtl"] .iptak-support-ticket-form .card-body.extra-padding {
  padding: clamp(20px, 3vw, 36px);
}
[dir="rtl"] .iptak-support-ticket-form .card-title {
  margin-bottom: 24px;
  color: var(--iptak-ink);
  font-size: 1.35rem;
  font-weight: 800;
}
[dir="rtl"] .iptak-support-ticket-form .form-group {
  margin-bottom: 22px;
}
[dir="rtl"] .iptak-support-ticket-form .form-group > label {
  display: block;
  margin-bottom: 9px;
  color: #243958;
  font-weight: 750;
}
[dir="rtl"] .iptak-support-ticket-form #inputName:disabled,
[dir="rtl"] .iptak-support-ticket-form #inputEmail:disabled {
  color: #526783;
  background: #f1f4fa;
  border-color: #dce4ef;
  opacity: 1;
}
[dir="rtl"] .iptak-support-ticket-form label[for="inputMessage"] {
  margin-bottom: 12px;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor {
  overflow: hidden;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 46, 87, .055);
  transition: border-color .16s ease, box-shadow .16s ease;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor:focus-within,
[dir="rtl"] .iptak-support-ticket-form .md-editor.active {
  border-color: #9bb4f5;
  box-shadow: 0 0 0 3px rgba(54, 96, 220, .10), 0 10px 26px rgba(22, 46, 87, .07);
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar {
  display: flex;
  min-height: 54px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 12px;
  direction: rtl;
  background: linear-gradient(110deg, #f8faff, #eef3ff) !important;
  border-bottom: 1px solid #e0e8f5;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0;
  color: #35527c;
  border: 1px solid #d6e1f1 !important;
  border-radius: 9px !important;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 52, 91, .04);
  line-height: 1;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn:hover,
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn:focus-visible {
  color: #214bc0;
  border-color: #a9bdf0 !important;
  background: #f1f5ff;
  transform: translateY(-1px);
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn:focus-visible {
  outline: 2px solid #89a8ff;
  outline-offset: 1px;
}
/* Restore WHMCS Font Awesome glyphs inside the editor; the site-wide Persian
   font rule otherwise replaces the icon font and makes toolbar icons repeat. */
[dir="rtl"] .iptak-support-ticket-form .md-editor .fa,
[dir="rtl"] .iptak-support-ticket-form .md-editor .fas,
[dir="rtl"] .iptak-support-ticket-form .md-editor .far,
[dir="rtl"] .iptak-support-ticket-form .md-editor .fal,
[dir="rtl"] .iptak-support-ticket-form .md-editor .fab {
  font-family: "Font Awesome 5 Pro" !important;
  font-style: normal !important;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor .fas { font-weight: 900 !important; }
[dir="rtl"] .iptak-support-ticket-form .md-editor .far { font-weight: 400 !important; }
[dir="rtl"] .iptak-support-ticket-form .md-editor .fal { font-weight: 300 !important; }
[dir="rtl"] .iptak-support-ticket-form .md-editor > textarea.markdown-editor,
[dir="rtl"] .iptak-support-ticket-form .md-editor > .md-preview {
  min-height: 250px;
  padding: 18px 20px !important;
  color: var(--iptak-ink);
  border: 0 !important;
  background: #fff !important;
  line-height: 1.85;
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .iptak-support-ticket-form .markdown-editor-status {
  padding: 8px 14px;
  color: #6e809a;
  border-top: 1px solid #e7edf6;
  background: #f8faff;
  font-size: 12px;
  text-align: left;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor .btn-primary {
  width: auto !important;
  min-width: 112px;
  height: 38px;
  padding: 7px 14px !important;
  color: #fff !important;
  border: 1px solid #315dde !important;
  border-radius: 9px !important;
  background: linear-gradient(110deg, #3469ed, #6243dc) !important;
  font-weight: 750;
}
[dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn.btn-primary {
  width: auto !important;
  min-width: 116px;
  padding-inline: 14px !important;
}
[dir="rtl"] .iptak-support-ticket-form .attachment-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
  gap: 12px;
  width: 100% !important;
  min-width: 0;
  margin-bottom: 10px !important;
  direction: rtl;
}
[dir="rtl"] .iptak-support-ticket-form .attachment-group > .custom-file {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
}
[dir="rtl"] .iptak-support-ticket-form .attachment-group .custom-file-label {
  width: 100%;
  height: 44px;
  padding: 10px 118px 10px 14px !important;
  color: #61748f;
  border: 1px solid #d6e0ee;
  border-radius: 10px !important;
  background: #fff;
  line-height: 22px;
  text-align: right;
}
[dir="rtl"] .iptak-support-ticket-form .attachment-group .custom-file-label::after {
  right: 0 !important;
  left: auto !important;
  height: 42px;
  min-width: 104px;
  padding: 9px 14px;
  color: #29466f;
  border: 0;
  border-left: 1px solid #d6e0ee;
  border-radius: 0 9px 9px 0;
  background: #f1f5ff;
  content: "انتخاب فایل";
  line-height: 24px;
}
[dir="rtl"] .iptak-support-ticket-form .attachment-group > .input-group-append {
  grid-column: 2;
  justify-self: stretch;
  width: 210px;
  margin: 0;
}
[dir="rtl"] .iptak-support-ticket-form #btnTicketAttachmentsAdd {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  color: #244db8;
  border: 1px solid #d3dfff;
  border-radius: 10px;
  background: #edf3ff;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
}
[dir="rtl"] .iptak-support-ticket-form #btnTicketAttachmentsAdd:hover,
[dir="rtl"] .iptak-support-ticket-form #btnTicketAttachmentsAdd:focus-visible {
  color: #173da8;
  border-color: #9db7ff;
  background: #e4edff;
}
[dir="rtl"] .iptak-support-ticket-form #fileUploadsContainer .attachment-group {
  margin-top: 10px;
}
[dir="rtl"] .iptak-support-ticket-form #fileUploadsContainer .attachment-group > .custom-file {
  grid-column: 1;
}
[dir="rtl"] .iptak-support-ticket-form .text-muted small {
  color: #71829a;
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 575.98px) {
  [dir="rtl"] .iptak-support-ticket-form .card-body.extra-padding { padding: 18px 14px; }
  [dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar { gap: 6px; padding: 8px; }
  [dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group { gap: 5px; }
  [dir="rtl"] .iptak-support-ticket-form .md-editor > .btn-toolbar .btn-group > .btn { width: 36px; min-width: 36px; height: 36px; }
  [dir="rtl"] .iptak-support-ticket-form .attachment-group { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  [dir="rtl"] .iptak-support-ticket-form .attachment-group > .input-group-append { grid-column: 1; width: 100%; }
  [dir="rtl"] .iptak-support-ticket-form #btnTicketAttachmentsAdd { width: 100%; }
}

/* Client dashboard: the native WHMCS domain registration panel. Keep the
   domain field separate from its two actions instead of compressing all three
   controls into one input-group row. */
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body {
  padding: 22px 20px 20px;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body form {
  margin: 0;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin: 0;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > input[name="domain"],
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .form-control {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d6e0ee;
  border-radius: 10px !important;
  background: #fff;
  box-shadow: none;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-append,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-btn,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .btn-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-append > .btn,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-btn > .btn,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .btn-group > .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  padding: 9px 14px;
  border-radius: 10px !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-append > .btn:hover,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .input-group-btn > .btn:hover,
.client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group > .btn-group > .btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 575.98px) {
  .client-home-cards .card:has(.card-body input[name="domain"]) .card-body {
    padding: 18px 14px 16px;
  }
  .client-home-cards .card:has(.card-body input[name="domain"]) .card-body .input-group {
    gap: 10px;
  }
}

/* Dashboard cards: make links identifiable before hover, and keep directional
   chevrons consistent with RTL reading order. */
[dir="rtl"] .client-home-cards .card-body a:not(.btn),
[dir="rtl"] .client-home-cards .card-footer a:not(.btn),
[dir="rtl"] .client-home-cards .card-header a:not(.btn) {
  color: var(--iptak-blue-dark, #2455d6);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(36, 85, 214, .38);
  text-underline-offset: 3px;
  transition: color .16s ease, background-color .16s ease, text-decoration-color .16s ease;
}
[dir="rtl"] .client-home-cards .card-body a:not(.btn):hover,
[dir="rtl"] .client-home-cards .card-body a:not(.btn):focus-visible,
[dir="rtl"] .client-home-cards .card-footer a:not(.btn):hover,
[dir="rtl"] .client-home-cards .card-footer a:not(.btn):focus-visible,
[dir="rtl"] .client-home-cards .card-header a:not(.btn):hover,
[dir="rtl"] .client-home-cards .card-header a:not(.btn):focus-visible {
  color: #173da8;
  text-decoration-color: currentColor;
}
[dir="rtl"] .client-home-cards .card-footer {
  padding: 12px 18px;
  background: #fbfcff;
  border-top: 1px solid var(--iptak-line, #e3eaf5);
  text-align: right;
}
[dir="rtl"] .client-home-cards .card-footer a:not(.btn) {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #d8e3ff;
  border-radius: 9px;
  background: #f1f5ff;
  text-decoration: none;
}
/* The upstream WHMCS theme sets every dashboard card-header .btn to white on
   a white header, then changes it only on hover. Override that root cause. */
[dir="rtl"] .client-home-cards .card-header .btn,
[dir="rtl"] .client-home-cards .card-header .btn:hover,
[dir="rtl"] .client-home-cards .card-header .btn:focus-visible {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  color: #2048b8;
  border: 1px solid #d3dfff;
  border-radius: 9px;
  background: #edf3ff;
  box-shadow: none;
  text-decoration: none;
  opacity: 1;
}
[dir="rtl"] .client-home-cards .card-header .btn:hover,
[dir="rtl"] .client-home-cards .card-header .btn:focus-visible {
  color: #173da8;
  border-color: #9db7ff;
  background: #e3ecff;
}
/* WHMCS panels sometimes render their actions as btn-default/btn-xs anchors;
   keep those visibly actionable in the resting state too. */
[dir="rtl"] .client-home-cards .card-body a.btn-default,
[dir="rtl"] .client-home-cards .card-body a.btn-xs,
[dir="rtl"] .client-home-cards .card-footer a.btn-default,
[dir="rtl"] .client-home-cards .card-footer a.btn-xs {
  color: var(--iptak-blue-dark, #2455d6);
  border: 1px solid #d4e0ff;
  background: #f1f5ff;
  box-shadow: 0 1px 2px rgba(28, 55, 105, .05);
  text-decoration: none;
}
[dir="rtl"] .client-home-cards .card-body a.btn-default:hover,
[dir="rtl"] .client-home-cards .card-body a.btn-xs:hover,
[dir="rtl"] .client-home-cards .card-footer a.btn-default:hover,
[dir="rtl"] .client-home-cards .card-footer a.btn-xs:hover {
  color: #173da8;
  border-color: #9db7ff;
  background: #e8efff;
}
[dir="rtl"] .client-home-cards .card-header a:not(.btn) {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #d8e3ff;
  border-radius: 8px;
  background: #f1f5ff;
  text-decoration: none;
}
[dir="rtl"] .client-home-cards .list-group-item-action {
  color: #29466f;
  background: #fbfcff;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
[dir="rtl"] .client-home-cards .list-group-item-action:hover,
[dir="rtl"] .client-home-cards .list-group-item-action:focus-visible {
  color: var(--iptak-blue-dark, #2455d6);
  background: #edf3ff;
}
[dir="rtl"] .client-home-cards .card-header .fa-chevron-right,
[dir="rtl"] .client-home-cards .card-header .fa-angle-right,
[dir="rtl"] .client-home-cards .card-header .fa-arrow-right,
[dir="rtl"] .client-home-cards .card-body .fa-chevron-right,
[dir="rtl"] .client-home-cards .card-body .fa-angle-right,
[dir="rtl"] .client-home-cards .card-body .fa-arrow-right,
[dir="rtl"] .client-home-cards .card-footer .fa-chevron-right,
[dir="rtl"] .client-home-cards .card-footer .fa-angle-right,
[dir="rtl"] .client-home-cards .card-footer .fa-arrow-right {
  transform: scaleX(-1);
}
[dir="rtl"] .client-home-cards .card-header .fa-arrow-circle-right,
[dir="rtl"] .client-home-cards .card-header .fa-long-arrow-alt-right,
[dir="rtl"] .client-home-cards .card-header .fa-caret-right,
[dir="rtl"] .client-home-cards .card-body .fa-arrow-circle-right,
[dir="rtl"] .client-home-cards .card-body .fa-long-arrow-alt-right,
[dir="rtl"] .client-home-cards .card-body .fa-caret-right,
[dir="rtl"] .client-home-cards .card-footer .fa-arrow-circle-right,
[dir="rtl"] .client-home-cards .card-footer .fa-long-arrow-alt-right,
[dir="rtl"] .client-home-cards .card-footer .fa-caret-right {
  transform: scaleX(-1);
}
/* The card-heading navigation arrows are WHMCS btn-icon extras. Target their
   actual wrapper rather than relying on a specific Font Awesome icon name. */
[dir="rtl"] .client-home-cards .card-header .card-title > .float-right .btn > i,
[dir="rtl"] .client-home-cards .card-header .card-title > .float-right .btn > svg {
  display: inline-block;
  transform: scaleX(-1);
}
