:root {
  --tc-primary: #006eff;
  --tc-primary-hover: #2684ff;
  --tc-primary-deep: #0052d9;
  --tc-sidebar: #182233;
  --tc-sidebar-active: #0052d9;
  --tc-body-bg: #f3f5f8;
  --tc-card-bg: #fff;
  --tc-border: #e5e8ef;
  --tc-border-strong: #d8dde8;
  --tc-text: #1f2733;
  --tc-text-2: #5f6b7a;
  --tc-text-3: #8a95a6;
  --tc-success: #00a870;
  --tc-warning: #ed7b2f;
  --tc-danger: #d54941;
  --tc-info: #2f7ff6;
  --tc-radius: 4px;
  --tc-radius-lg: 6px;
  --tc-shadow: 0 1px 2px rgba(31, 39, 51, .04);
  --tc-header-h: 56px;
  --tc-sidebar-w: 232px;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--tc-text);
  background: var(--tc-body-bg);
  font-family: "Inter", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

a {
  text-decoration: none;
}

.tc-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--tc-header-h);
  border-bottom: 1px solid var(--tc-border);
  background: #fff;
}

.tc-logo {
  width: var(--tc-sidebar-w);
  height: var(--tc-header-h);
  padding: 0 20px;
  border-right: 1px solid var(--tc-border);
  color: var(--tc-text);
  font-weight: 600;
}

.tc-logo-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--tc-radius);
  color: #fff;
  background: var(--tc-primary);
}

.tc-search {
  max-width: 360px;
}

.tc-icon-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--tc-radius);
  color: var(--tc-text-2);
  background: transparent;
}

.tc-icon-btn:hover {
  color: var(--tc-primary);
  border-color: var(--tc-border);
  background: #f7f9fc;
}

.tc-shell {
  display: flex;
  min-height: calc(100vh - var(--tc-header-h));
}

.tc-sidebar {
  position: sticky;
  top: var(--tc-header-h);
  width: var(--tc-sidebar-w);
  height: calc(100vh - var(--tc-header-h));
  flex: 0 0 var(--tc-sidebar-w);
  padding: 12px 10px;
  background: var(--tc-sidebar);
  overflow-y: auto;
}

.tc-nav-title {
  padding: 14px 12px 6px;
  color: #7d8aa0;
  font-size: 12px;
}

.tc-nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--tc-radius);
  color: #c7d0df;
}

.tc-nav-link i {
  font-size: 18px;
}

.tc-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.tc-nav-link.active {
  color: #fff;
  background: var(--tc-sidebar-active);
}

.tc-main {
  min-width: 0;
  flex: 1 1 auto;
  padding: 20px 24px 28px;
}

.tc-breadcrumb {
  --bs-breadcrumb-divider-color: var(--tc-text-3);
  margin-bottom: 10px;
  font-size: 13px;
}

.tc-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.tc-page-desc {
  margin: 4px 0 0;
  color: var(--tc-text-2);
}

.tc-panel {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-card-bg);
  box-shadow: var(--tc-shadow);
}

.tc-panel-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tc-panel-body {
  padding: 16px;
}

.tc-stat {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.tc-stat-label {
  color: var(--tc-text-2);
}

.tc-stat-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.tc-stat-foot {
  color: var(--tc-text-3);
  font-size: 13px;
}

.tc-stat-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--tc-radius);
  color: var(--tc-primary);
  background: #edf5ff;
  font-size: 18px;
}

.btn {
  --bs-btn-border-radius: var(--tc-radius);
  --bs-btn-font-size: 13px;
  --bs-btn-line-height: 1;
  --bs-btn-padding-y: 0.4375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1;
  vertical-align: middle;
}

.btn i[class^="ri-"],
.btn i[class*=" ri-"] {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 1;
}

.btn-sm {
  --bs-btn-line-height: 1;
  --bs-btn-padding-y: 0.3125rem;
}

.btn-lg {
  --bs-btn-line-height: 1;
}

.btn-primary {
  --bs-btn-bg: var(--tc-primary);
  --bs-btn-border-color: var(--tc-primary);
  --bs-btn-hover-bg: var(--tc-primary-hover);
  --bs-btn-hover-border-color: var(--tc-primary-hover);
  --bs-btn-active-bg: var(--tc-primary-deep);
  --bs-btn-active-border-color: var(--tc-primary-deep);
}

.form-control,
.form-select {
  border-radius: var(--tc-radius);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 2px rgba(0, 110, 255, .12);
}

.tc-table {
  margin: 0;
  vertical-align: middle;
}

.tc-table thead th {
  border-bottom: 1px solid var(--tc-border);
  color: var(--tc-text-2);
  background: #f7f8fb;
  font-size: 13px;
  font-weight: 500;
}

.tc-table tbody td {
  border-color: var(--tc-border);
}

.tc-table tbody tr:hover td {
  background: #f9fbff;
}

.tc-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.tc-status-success {
  color: #05794f;
  background: #e8f7f1;
}

.tc-status-warning {
  color: #a85500;
  background: #fff3e0;
}

.tc-status-danger {
  color: #b42318;
  background: #fff0ee;
}

.tc-status-info {
  color: #0757c2;
  background: #edf5ff;
}

.tc-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tc-border);
}

.tc-list-row:last-child {
  border-bottom: 0;
}

.tc-service-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--tc-radius);
  color: var(--tc-primary);
  background: #edf5ff;
  font-size: 18px;
}

.tc-filter .btn {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .75rem;
  --bs-btn-font-size: 13px;
}

.tc-empty {
  padding: 42px 16px;
  color: var(--tc-text-2);
  text-align: center;
}

.tc-mobile-nav {
  --bs-offcanvas-width: 280px;
  background: var(--tc-sidebar);
}

.tc-mobile-nav .offcanvas-header {
  color: #fff;
}

.tc-starter-index {
  background: #eee;
  font-family: "pingfang sc", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.tc-starter-index .tc-topbar {
  height: 56px;
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
}

.tc-starter-index .tc-logo {
  width: 232px;
  border-right: 0;
  color: #111;
  font-size: 18px;
  font-style: italic;
  white-space: nowrap;
  letter-spacing: -.3px;
}

.tc-starter-index .tc-logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0052d9 0 50%, #00a870 50% 100%);
  font-size: 0;
  transform: skew(-10deg);
}

.tc-starter-index .tc-search {
  max-width: 196px;
}

.tc-starter-index .tc-search .form-control,
.tc-starter-index .tc-search .input-group-text {
  height: 32px;
  border-color: #dcdcdc;
  font-size: 13px;
}

.tc-starter-index .tc-icon-btn {
  width: 34px;
  height: 34px;
  color: #1f2329;
  font-size: 20px;
}

.tc-starter-index .tc-icon-btn:hover {
  color: #0052d9;
  border-color: transparent;
  background: #f3f3f3;
}

.tc-starter-index .badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
}

.tc-starter-index .tc-sidebar {
  width: 232px;
  flex-basis: 232px;
  padding: 16px 6px;
  background: #fff;
  border-right: 1px solid #e7e7e7;
}

.tc-starter-index .tc-nav-title {
  display: none;
}

.tc-starter-index .tc-nav-section {
  padding: 14px 16px 8px;
  color: #8c8c8c;
  font-size: 12px;
  line-height: 20px;
}

.tc-starter-index .tc-nav-accordion {
  margin-bottom: 6px;
}

.tc-starter-index .tc-nav-item {
  margin-bottom: 2px;
}

.tc-starter-index .tc-nav-link {
  width: 100%;
  min-height: 38px;
  margin-bottom: 2px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: #4f4f4f;
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.tc-starter-index .tc-nav-link i {
  color: #6f6f6f;
  font-size: 18px;
}

.tc-starter-index .tc-nav-link:hover {
  color: #0052d9;
  background: #f3f3ff;
}

.tc-starter-index .tc-nav-link.active {
  color: #0052d9;
  background: #f0f1ff;
}

.tc-starter-index .tc-nav-link.active i {
  color: #0052d9;
}

.tc-starter-index .tc-nav-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.tc-starter-index .tc-nav-main i {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.tc-starter-index .tc-nav-arrow {
  width: 16px;
  margin-left: auto;
  flex: 0 0 16px;
  color: #8c8c8c;
  font-size: 16px;
  transition: transform .18s ease;
}

.tc-starter-index .tc-nav-link:not(.collapsed) .tc-nav-arrow {
  transform: rotate(180deg);
}

.tc-starter-index .tc-subnav {
  padding: 2px 0 6px 46px;
}

.tc-starter-index .tc-subnav-link {
  display: block;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 4px;
  color: #5f5f5f;
  font-size: 13px;
  line-height: 20px;
}

.tc-starter-index .tc-subnav-link:hover,
.tc-starter-index .tc-subnav-link.active {
  color: #0052d9;
  background: #f0f1ff;
}

.tc-starter-index .tc-main {
  padding: 24px;
  background: #eee;
}

.tc-starter-index .tc-breadcrumb,
.tc-starter-index .tc-page-title,
.tc-starter-index .tc-page-desc {
  display: none;
}

.tc-starter-index .tc-panel {
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.tc-starter-index .tc-stat {
  min-height: 168px;
  padding: 28px 32px;
  border-radius: 6px;
}

.tc-starter-index .tc-stat-label {
  color: #111827;
}

.tc-starter-index .tc-stat-value {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 500;
}

.tc-starter-index .tc-stat-foot {
  color: #8a8f99;
}

.tc-starter-index .tc-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #0052d9;
  background: #f0f1ff;
  font-size: 26px;
}

.tc-starter-index .tc-stat-primary {
  color: #fff;
  background: #0052d9;
}

.tc-starter-index .tc-stat-primary .tc-stat-label,
.tc-starter-index .tc-stat-primary .tc-stat-foot {
  color: rgba(255, 255, 255, .78);
}

.tc-starter-index .tc-stat-primary .tc-stat-icon {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.tc-starter-index .tc-panel-header {
  min-height: 56px;
  padding: 0 32px;
}

.tc-starter-index .tc-panel-title {
  font-size: 20px;
  font-weight: 500;
}

.tc-starter-index .tc-panel-body {
  padding: 24px 32px;
}

.tc-starter-index .tc-list-row {
  min-height: 44px;
}

.tc-starter-index .tc-fixed-panel {
  height: 286px;
  overflow: hidden;
}

.tc-starter-index .tc-fixed-panel-body {
  height: calc(286px - 56px);
  overflow-y: auto;
}

.tc-starter-index .tc-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.tc-starter-index .tc-sidebar-body {
  flex: 1 1 auto;
  padding: 12px 10px;
  overflow-y: auto;
}

.tc-starter-index .tc-sidebar-footer {
  flex-shrink: 0;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #7d8aa0;
  font-size: 11px;
  line-height: 1.4;
}

.tc-starter-index .tc-news-list .tc-news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--tc-border);
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.4;
}

.tc-starter-index .tc-news-list .tc-news-row:last-child {
  border-bottom: 0;
}

.tc-starter-index .tc-news-list .tc-news-row:hover {
  background: #f7f9fc;
}

.tc-starter-index .tc-news-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-starter-index .tc-news-date {
  flex: 0 0 auto;
  color: var(--tc-text-2);
  font-size: 12px;
  white-space: nowrap;
}

.tc-starter-index .tc-news-row-html {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.tc-starter-index .tc-news-row-html .pull-right,
.tc-starter-index .tc-news-row-html .text-right,
.tc-starter-index .tc-news-row-html .float-right {
  flex: 0 0 auto;
  color: var(--tc-text-2);
  font-size: 12px;
  white-space: nowrap;
}

.tc-starter-index .tc-news-row-html > :first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-starter-index .tc-product-table {
  border-top: 1px solid var(--tc-border);
}

.tc-starter-index .tc-product-grid-row {
  display: grid;
  grid-template-columns: minmax(160px, 2.2fr) minmax(96px, 1fr) minmax(120px, 1.2fr) minmax(88px, .9fr) minmax(88px, .8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid var(--tc-border);
  font-size: 13px;
  line-height: 1.4;
}

.tc-starter-index .tc-product-grid-head {
  background: #fafafa;
  color: var(--tc-text-2);
  font-size: 12px;
  font-weight: 500;
}

.tc-starter-index .tc-product-grid-body .tc-product-grid-row:last-child {
  border-bottom: 0;
}

.tc-starter-index .tc-product-grid-row.div-service-item {
  cursor: pointer;
}

.tc-starter-index .tc-product-grid-row.div-service-item:hover {
  background: #f7f9fc;
}

.tc-starter-index .tc-product-cell-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.tc-starter-index .tc-product-cell {
  min-width: 0;
  color: var(--tc-text);
}

.tc-starter-index .tc-product-cell-due,
.tc-starter-index .tc-product-cell-domain,
.tc-starter-index .tc-product-cell-cycle {
  color: var(--tc-text-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-starter-index .tc-product-cell-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.tc-starter-index .tc-product-cell-actions .btn {
  padding: 2px 8px;
  font-size: 12px;
}

.tc-starter-index .client-home-your-info .btn {
  border-radius: 4px;
  font-size: 13px;
}

.tc-starter-index .client-home-your-info p {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .tc-starter-index .tc-product-grid-row {
    grid-template-columns: minmax(140px, 2fr) minmax(88px, 1fr) minmax(100px, 1fr) minmax(72px, .8fr) auto;
  }

  .tc-starter-index .tc-product-cell-cycle {
    display: none;
  }

  .tc-starter-index .tc-product-grid-head .tc-product-cell-cycle {
    display: none;
  }
}

.tc-component-preview {
  background: #eee;
  font-family: "pingfang sc", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.tc-preview-section {
  margin-bottom: 24px;
}

.tc-preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tc-preview-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.tc-preview-name {
  color: #8c8c8c;
  font-size: 12px;
}

.tc-preview-frame {
  border: 1px dashed #c8cdd6;
  border-radius: 6px;
  background: #f7f8fa;
  overflow: hidden;
}

.tc-preview-sidebar {
  height: auto;
  min-height: 520px;
  position: static;
}

.tc-preview-overlay-box {
  position: relative;
  min-height: 120px;
  border-radius: 6px;
  background: #fff;
}

.tc-loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: #5f6b7a;
}

.tc-starter-index .tc-action-stack {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.tc-starter-index .tc-alert-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tc-starter-index .tc-alert {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  line-height: 18px;
}

.tc-starter-index .tc-alert i {
  flex: 0 0 auto;
  font-size: 16px;
}

.tc-starter-index .tc-alert-success {
  color: #067945;
  border-color: #bcebdc;
  background: #e8f7f1;
}

.tc-starter-index .tc-alert-danger {
  color: #ad352f;
  border-color: #f3c6c3;
  background: #fff0ee;
}

.tc-starter-index .tc-alert-warning {
  color: #ad5a00;
  border-color: #ffd9a3;
  background: #fff3e0;
}

.tc-starter-index .tc-alert-info {
  color: #0757c2;
  border-color: #bed7ff;
  background: #edf5ff;
}

@media (max-width: 991.98px) {
  .tc-logo {
    width: auto;
    border-right: 0;
  }

  .tc-sidebar {
    display: none;
  }

  .tc-main {
    padding: 16px;
  }

  .tc-search {
    display: none;
  }
}

.tc-announcement-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.tc-announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-announcement-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tc-announcement-meta i {
  font-size: 14px;
}

.tc-announcement-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tc-border);
  color: var(--tc-text);
  font-size: 14px;
  line-height: 1.75;
}

.tc-announcement-content > :first-child {
  margin-top: 0;
}

.tc-announcement-content > :last-child {
  margin-bottom: 0;
}

.tc-announcement-content p,
.tc-announcement-content ul,
.tc-announcement-content ol,
.tc-announcement-content blockquote,
.tc-announcement-content pre {
  margin-bottom: 12px;
}

.tc-announcement-content h2,
.tc-announcement-content h3,
.tc-announcement-content h4 {
  margin: 20px 0 10px;
  font-weight: 600;
}

.tc-announcement-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tc-radius);
}

.tc-announcement-content a {
  color: var(--tc-primary-deep);
}

.tc-announcement-content a:hover {
  color: var(--tc-primary);
}

.tc-announcement-share {
  flex: 0 0 auto;
}

.tc-announcement-social {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--tc-border);
}

.tc-announcement-actions .btn {
  min-width: 108px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--tc-radius);
  font-size: 13px;
}

.tc-announcement-list {
  display: flex;
  flex-direction: column;
}

.tc-announcement-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-announcement-item:last-child {
  border-bottom: 0;
}

.tc-announcement-item:hover {
  background: #f7f9fc;
}

.tc-announcement-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tc-announcement-item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.tc-announcement-item-title a {
  color: var(--tc-text);
}

.tc-announcement-item-title a:hover {
  color: var(--tc-primary-deep);
}

.tc-announcement-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-announcement-item-excerpt {
  margin-top: 12px;
  color: var(--tc-text-2);
  font-size: 13px;
  line-height: 1.7;
}

.tc-announcement-item-excerpt > :last-child {
  margin-bottom: 0;
}

.tc-announcement-item-more {
  margin-top: 14px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--tc-radius);
  font-size: 12px;
}

.tc-announcement-item-edit {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.tc-announcement-pagination .pagination {
  margin-bottom: 0;
}

.tc-announcement-pagination .page-link {
  font-size: 13px;
}

.tc-page-footer {
  margin-top: 16px;
  padding: 14px 0 2px;
  color: var(--tc-text-3);
  font-size: 12px;
  text-align: center;
}

.w-hidden {
  display: none;
}

.tc-panel-subtitle {
  margin: 4px 0 0;
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-money {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.tc-datatable-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.tc-starter-index .dataTables_wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

.tc-starter-index .dataTables_wrapper > .row {
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 16px;
}

.tc-starter-index .dataTables_wrapper table.table-list,
.tc-starter-index .dataTables_wrapper table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e8e8e8;
  border-collapse: collapse !important;
  color: var(--tc-text);
  font-size: 13px;
}

.tc-starter-index .dataTables_wrapper table.table-list thead th,
.tc-starter-index .dataTables_wrapper table.dataTable thead th {
  padding: 8px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-right: 1px solid #e8e8e8;
  background: #fafafa;
  color: var(--tc-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tc-starter-index .dataTables_wrapper table.table-list thead th:last-child,
.tc-starter-index .dataTables_wrapper table.table-list tbody td:last-child,
.tc-starter-index .dataTables_wrapper table.dataTable thead th:last-child,
.tc-starter-index .dataTables_wrapper table.dataTable tbody td:last-child {
  border-right: 0;
}

.tc-starter-index .dataTables_wrapper table.table-list tbody td,
.tc-starter-index .dataTables_wrapper table.dataTable tbody td {
  padding: 8px !important;
  border-top: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  color: var(--tc-text);
  font-size: 13px;
  vertical-align: middle;
}

.tc-starter-index .dataTables_wrapper table.table-list tbody tr,
.tc-starter-index .dataTables_wrapper table.dataTable tbody tr {
  cursor: pointer;
}

.tc-starter-index .dataTables_wrapper table.table-list tbody tr:hover > *,
.tc-starter-index .dataTables_wrapper table.dataTable tbody tr:hover > * {
  background: #f7faff !important;
}

.tc-starter-index .dataTables_wrapper table.table-list tbody tr:nth-of-type(odd) > *,
.tc-starter-index .dataTables_wrapper table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
  box-shadow: inset 0 0 0 9999px rgba(250, 250, 250, .48);
}

.tc-starter-index .dataTables_wrapper .tc-dt-toolbar {
  align-items: center;
  margin-bottom: 10px;
}

.tc-starter-index .dataTables_wrapper .tc-dt-toolbar .dataTables_info {
  padding: 0;
  text-align: left;
}

.tc-starter-index .dataTables_wrapper .tc-dt-footer {
  margin-top: 12px;
}

.tc-starter-index .dataTables_wrapper .dataTables_info {
  padding-top: 0;
  white-space: nowrap;
}

.tc-starter-index .dataTables_wrapper .dataTables_length,
.tc-starter-index .dataTables_wrapper .dataTables_length label,
.tc-starter-index .dataTables_wrapper .dataTables_filter label,
.tc-starter-index .dataTables_wrapper .dataTables_info {
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-starter-index .dataTables_wrapper .dataTables_length {
  text-align: left;
}

.tc-starter-index .dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.tc-starter-index .dataTables_wrapper .dataTables_paginate {
  margin: 0;
  text-align: right;
}

.tc-starter-index .dataTables_wrapper .dataTables_paginate .pagination {
  justify-content: flex-end;
  margin: 0;
}

.tc-starter-index .dataTables_wrapper .dataTables_length select,
.tc-starter-index .dataTables_wrapper .dataTables_filter input {
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: var(--tc-radius);
  color: var(--tc-text);
  font-size: 12px;
  box-shadow: none;
}

.tc-starter-index .dataTables_wrapper .tc-dt-length select,
.tc-starter-index .dataTables_wrapper .dataTables_length select {
  min-width: 72px;
  padding: 4px 28px 4px 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606a78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 500;
}

.tc-starter-index .dataTables_wrapper .tc-dt-length select:hover,
.tc-starter-index .dataTables_wrapper .dataTables_length select:hover {
  border-color: var(--tc-primary-deep);
  background-color: #f7faff;
}

.tc-starter-index .dataTables_wrapper .dataTables_length select:focus,
.tc-starter-index .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--tc-primary-deep);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .12);
  outline: 0;
}

.tc-starter-index .dataTables_wrapper .dataTables_filter {
  text-align: right;
}

.tc-starter-index .dataTables_wrapper .dataTables_filter label {
  position: relative;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.tc-starter-index .dataTables_wrapper .dataTables_filter input {
  width: 240px;
  margin-left: 0;
  padding: 4px 10px;
  font-size: 12px;
}

.tc-starter-index .dataTables_wrapper .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-color: var(--tc-border);
  color: var(--tc-text-2);
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
}

.tc-starter-index .dataTables_wrapper .page-link:hover {
  border-color: var(--tc-primary-deep);
  color: var(--tc-primary-deep);
  background: #f7faff;
}

.tc-starter-index .dataTables_wrapper .page-item.active .page-link {
  border-color: var(--tc-primary-deep);
  background: var(--tc-primary-deep);
  color: #fff;
}

.tc-starter-index .dataTables_wrapper .page-item.disabled .page-link {
  color: #b8c1d1;
  background: #fff;
}

.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc {
  cursor: pointer;
  position: relative;
  padding-right: 26px !important;
}

.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting::after,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc::after,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc::after {
  position: absolute;
  display: block;
  right: 8px;
  line-height: 9px;
  color: #9aa3b2;
  font-size: 10px;
  opacity: .45;
}

.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc::before {
  bottom: 50%;
  content: "▲";
}

.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting::after,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc::after,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc::after {
  top: 50%;
  content: "▼";
}

.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.table-list thead th.sorting_desc::after,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_asc::before,
.tc-starter-index .dataTables_wrapper table.dataTable thead > tr > th.sorting_desc::after {
  color: var(--tc-primary-deep);
  opacity: 1;
}

.tc-service-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.tc-service-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: -1px;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tc-text-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.tc-service-filter-tab:hover,
.tc-service-filter-tab:focus {
  color: var(--tc-primary-deep);
  background: transparent !important;
}

.tc-service-filter-tab.active,
.tc-service-filter-tab.active:hover,
.tc-service-filter-tab.active:focus {
  color: var(--tc-primary-deep);
  border-bottom-color: var(--tc-primary-deep) !important;
  font-weight: 600;
  background: transparent !important;
}

.tc-service-filter-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f0f0f0;
  color: var(--tc-text-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.tc-service-filter-tab.active .badge {
  background: rgba(0, 82, 217, .1);
  color: var(--tc-primary-deep);
}

.tc-starter-index .dataTables_wrapper table.tc-services-table {
  table-layout: fixed;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table tbody tr {
  cursor: default;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table thead th,
.tc-starter-index .dataTables_wrapper table.tc-services-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-id {
  width: 88px;
  max-width: 96px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-product {
  min-width: 160px;
  max-width: 320px;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-date {
  width: 110px;
  max-width: 120px;
  white-space: nowrap;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-cycle {
  width: 96px;
  max-width: 100px;
  text-align: center;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-price {
  width: 104px;
  max-width: 110px;
  text-align: right;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-actions {
  width: 132px;
  max-width: 140px;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
}

.tc-starter-index .dataTables_wrapper table.tc-services-table .tc-col-hidden,
.tc-starter-index .dataTables_wrapper table.tc-services-table thead .tc-col-hidden,
.tc-starter-index .dataTables_wrapper table.tc-services-table tbody .tc-col-hidden {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.tc-starter-index #tableLoading {
  padding: 24px 16px;
  color: var(--tc-text-2);
  font-size: 13px;
}

.tc-starter-index #tableLoading i {
  font-size: 18px;
  vertical-align: middle;
}

.tc-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.tc-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--tc-text-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.tc-page-tab:hover,
.tc-page-tab:focus {
  color: var(--tc-primary-deep);
}

.tc-page-tab.active {
  color: var(--tc-primary-deep);
  border-bottom-color: var(--tc-primary-deep);
  font-weight: 600;
}

.tc-product-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: var(--tc-radius);
  background: #fafafa;
}

.tc-product-summary-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tc-service-icon-lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
  flex-shrink: 0;
}

.tc-product-summary-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.tc-product-summary-group {
  margin-top: 4px;
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-product-actions .btn {
  justify-content: center;
}

.tc-product-actions-inline {
  flex-direction: row;
}

.tc-kv-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tc-kv-section {
  padding: 14px 0;
}

.tc-kv-section + .tc-kv-section {
  border-top: 1px solid #e8e8e8;
}

.tc-kv-section-plain {
  padding: 0;
  border-top: 0 !important;
}

.tc-kv-section-head {
  margin-bottom: 12px;
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tc-kv-cell {
  min-width: 0;
  margin-bottom: 0;
}

.tc-kv-label {
  margin-bottom: 4px;
  color: #888888;
  font-size: 12px;
  line-height: 1.4;
}

.tc-kv-value {
  color: #181a1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.tc-kv-value .tc-money {
  font-size: 14px;
  font-weight: 600;
}

.tc-kv-copyable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.tc-kv-copyable-text {
  min-width: 0;
  word-break: break-word;
}

.tc-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: var(--tc-radius);
  background: transparent;
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.tc-copy-btn:hover {
  color: var(--tc-primary-deep);
  background: #edf5ff;
}

.tc-copy-btn.is-copied {
  color: #05794f;
}

.tc-kv-value-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tc-primary-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tc-kv-value-link:hover {
  color: var(--tc-primary);
  text-decoration: underline;
}

.tc-os-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tc-os-badge i {
  color: var(--tc-primary-deep);
  font-size: 16px;
}

.tc-kv-quota {
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: var(--tc-radius);
  background: #fafafa;
}

.tc-kv-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tc-kv-quota-pct {
  color: #181a1e;
  font-size: 13px;
  font-weight: 600;
}

.tc-kv-quota-foot {
  margin-top: 6px;
  color: var(--tc-text-2);
  font-size: 12px;
}

.tc-kv-template[hidden] {
  display: none !important;
}

.tc-product-type-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px dashed #c9d4e6;
  border-radius: var(--tc-radius);
  background: #f7faff;
}

.tc-product-type-demo-label {
  color: var(--tc-text-2);
  font-size: 12px;
  font-weight: 600;
}

.tc-product-type-demo-btn {
  padding: 4px 10px;
  border: 1px solid #dcdfe6;
  border-radius: var(--tc-radius);
  background: #fff;
  color: var(--tc-text-2);
  font-size: 12px;
  cursor: pointer;
}

.tc-product-type-demo-btn:hover {
  border-color: var(--tc-primary);
  color: var(--tc-primary-deep);
}

.tc-product-type-demo-btn.active {
  border-color: var(--tc-primary-deep);
  background: #edf5ff;
  color: var(--tc-primary-deep);
  font-weight: 600;
}

.tc-expiry-countdown {
  color: #05794f;
  font-size: 14px;
  font-weight: 600;
}

.tc-kv-delivery-actions {
  margin-top: 2px;
}

.tc-kv-delivery-actions .btn {
  min-width: 132px;
  border-radius: var(--tc-radius);
  font-size: 13px;
  font-weight: 600;
}

.tc-module-panel .tc-panel-body {
  background: #fff;
}

.tc-desc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.tc-desc-grid-stacked {
  grid-template-columns: 1fr;
}

.tc-desc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tc-desc-item dt {
  margin: 0;
  color: var(--tc-text-2);
  font-size: 12px;
  font-weight: 400;
}

.tc-desc-item dd {
  margin: 0;
  color: var(--tc-text);
  font-size: 13px;
  word-break: break-word;
}

.tc-detail-tabs {
  margin-bottom: 0;
  padding: 0 24px;
}

.tc-detail-tab-panels {
  padding-top: 20px;
}

.tc-module-client-area {
  padding-top: 0;
  min-height: 48px;
}

.tc-usage-card {
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: var(--tc-radius);
  background: #fafafa;
}

.tc-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.tc-usage-head span {
  color: var(--tc-text-2);
}

.tc-usage-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf0f5;
}

.tc-usage-bar .progress-bar {
  border-radius: 999px;
  background: var(--tc-primary) !important;
}

.tc-download-item + .tc-download-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.tc-download-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.tc-download-desc {
  margin-bottom: 12px;
  font-size: 13px;
}

.tc-addon-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--tc-radius);
  overflow: hidden;
}

.tc-addon-card + .tc-addon-card {
  margin-top: 12px;
}

.tc-addon-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  font-size: 14px;
}

.tc-addon-card-body {
  padding: 14px 16px;
  font-size: 13px;
}

.tc-addon-card-foot {
  padding: 12px 16px;
  border-top: 1px solid #e8e8e8;
  background: #fcfcfc;
}

.tc-form-narrow {
  max-width: 560px;
}

@media (max-width: 767.98px) {
  .tc-desc-grid {
    grid-template-columns: 1fr;
  }
  .tc-detail-tabs {
    padding: 0 16px;
  }
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table {
  table-layout: fixed;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table tbody tr,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table tbody tr {
  cursor: default;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table .tc-col-invoice-num {
  width: 120px;
  max-width: 140px;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table .tc-col-date,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-date {
  width: 110px;
  max-width: 120px;
  white-space: nowrap;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table .tc-col-price,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-price {
  width: 104px;
  max-width: 110px;
  text-align: right;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table .tc-col-status,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-status {
  width: 108px;
  max-width: 120px;
  text-align: center;
}

.tc-starter-index .dataTables_wrapper table.tc-invoices-table .tc-col-actions,
.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-actions {
  width: 132px;
  max-width: 160px;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
}

.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-id {
  width: 88px;
  max-width: 96px;
}

.tc-starter-index .dataTables_wrapper table.tc-quotes-table .tc-col-subject {
  min-width: 160px;
}

/* ---- Add Funds recharge panel ---- */
.tc-addfunds {
  max-width: 960px;
}
.tc-addfunds-board .tc-panel-body {
  padding-top: 20px;
  padding-bottom: 20px;
}
.tc-addfunds-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 28px;
}
.tc-addfunds-balance-label {
  color: var(--tc-text-2);
  font-size: 13px;
  margin-bottom: 8px;
}
.tc-addfunds-balance-value {
  color: var(--tc-text);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  letter-spacing: -0.02em;
}
.tc-addfunds-balance-currency {
  font-size: 22px;
  font-weight: 500;
  margin-right: 2px;
}
.tc-addfunds-balance-unit {
  margin-left: 6px;
  color: var(--tc-text-2);
  font-size: 14px;
  font-weight: 400;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
.tc-addfunds-rules {
  border-left: 1px solid var(--tc-border);
  padding-left: 28px;
}
.tc-addfunds-rule-label {
  color: var(--tc-text-2);
  font-size: 12px;
  margin-bottom: 4px;
}
.tc-addfunds-rule-value {
  color: var(--tc-text);
  font-size: 15px;
  font-weight: 600;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}
.tc-addfunds-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tc-addfunds-pick-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 10px 16px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  background: #fff;
  color: var(--tc-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.tc-addfunds-pick-card:hover {
  border-color: rgba(0, 82, 217, .45);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .06);
}
.tc-addfunds-pick-card.is-active {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .1);
  color: var(--tc-primary);
}
.tc-addfunds-pick-amount {
  line-height: 1.3;
  text-align: center;
}
.tc-addfunds-pick-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent var(--tc-primary) transparent;
  opacity: 0;
  transition: opacity .18s ease;
}
.tc-addfunds-pick-check i {
  position: absolute;
  right: 1px;
  bottom: -20px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.tc-addfunds-pick-card.is-active .tc-addfunds-pick-check,
.tc-addfunds-gateway-card.is-active .tc-addfunds-pick-check {
  opacity: 1;
}
.tc-addfunds-custom .form-label {
  font-size: 13px;
  color: var(--tc-text-2);
  margin-bottom: 8px;
}
.tc-addfunds-amount-input {
  max-width: 320px;
}
.tc-addfunds-amount-input .form-control {
  height: 40px;
  font-size: 15px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}
.tc-addfunds-amount-input .input-group-text {
  min-width: 44px;
  justify-content: center;
  background: #fafafa;
  color: var(--tc-text-2);
  font-size: 13px;
}
.tc-addfunds-gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tc-addfunds-gateway-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin: 0;
  padding: 14px 16px 18px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tc-addfunds-gateway-card:hover {
  border-color: rgba(0, 82, 217, .45);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .06);
}
.tc-addfunds-gateway-card.is-active {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .1);
}
.tc-addfunds-gateway-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tc-addfunds-gateway-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--tc-radius);
  font-size: 22px;
}
.tc-addfunds-gateway-icon-mail {
  background: rgba(0, 82, 217, .08);
  color: var(--tc-primary);
}
.tc-addfunds-gateway-icon-alipay {
  background: rgba(22, 119, 255, .08);
  color: #1677ff;
}
.tc-addfunds-gateway-icon-wechat {
  background: rgba(7, 193, 96, .08);
  color: #07c160;
}
.tc-addfunds-gateway-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tc-addfunds-gateway-name {
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.tc-addfunds-gateway-desc {
  color: var(--tc-text-2);
  font-size: 12px;
  line-height: 1.35;
}
.tc-addfunds-submit-wrap {
  padding: 4px 0 8px;
}
.tc-addfunds-submit {
  min-width: 160px;
  height: 44px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--tc-radius);
}
.tc-addfunds-disclaimer {
  margin-top: 12px;
  color: var(--tc-text-2);
  font-size: 12px;
}
@media (max-width: 991.98px) {
  .tc-addfunds-balance {
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tc-border);
  }
  .tc-addfunds-rules {
    border-left: 0;
    padding-left: 0;
  }
  .tc-addfunds-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tc-addfunds-gateway-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .tc-addfunds-balance-value {
    font-size: 30px;
  }
  .tc-addfunds-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tc-addfunds-submit {
    width: 100%;
  }
}

/* ---- Account details form ---- */
.tc-account-details {
  max-width: 960px;
}
.tc-account-details .form-label {
  margin-bottom: 6px;
  color: var(--tc-text-2);
  font-size: 12px;
  font-weight: 500;
}
.tc-account-details .form-control,
.tc-account-details .form-select,
.tc-account-details select.form-control {
  height: 36px;
  border-color: var(--tc-border);
  border-radius: var(--tc-radius);
  font-size: 13px;
}
.tc-account-details .tc-form-control-wrap select,
.tc-account-details .tc-form-control-wrap .form-control {
  width: 100%;
}
.tc-account-details .form-control:focus,
.tc-account-details .form-select:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .1);
}
.tc-account-details .form-control:disabled,
.tc-account-details .form-select:disabled {
  background: #fafafa;
  color: var(--tc-text-2);
}
.tc-account-details .tc-form-control-wrap .form-control,
.tc-account-details .tc-form-control-wrap .form-select {
  width: 100%;
}
.tc-account-details .form-text {
  margin-top: 4px;
  font-size: 12px;
}
.tc-email-pref-list {
  display: flex;
  flex-direction: column;
}
.tc-email-pref-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.tc-email-pref-item:last-child {
  border-bottom: 0;
}
.tc-email-pref-text {
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.45;
}
.tc-account-details .form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.tc-account-details .form-switch .form-check-input {
  width: 36px;
  height: 20px;
}
.tc-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--tc-border);
}
.tc-form-actions .btn {
  min-width: 96px;
  height: 36px;
  font-size: 13px;
}
@media (max-width: 575.98px) {
  .tc-form-actions .btn {
    flex: 1 1 calc(50% - 5px);
  }
}

/* ---- User management (CAM / RAM) ---- */
.tc-user-mgmt,
.tc-user-perms {
  max-width: 960px;
}
.tc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tc-text-2);
  font-size: 13px;
  text-decoration: none;
}
.tc-back-link:hover {
  color: var(--tc-primary);
}
.tc-cam-card {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 4px;
  overflow: hidden;
}
.tc-cam-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tc-border);
}
.tc-cam-card-title {
  margin: 0;
  color: #181a1e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.tc-cam-card-sub {
  margin: 2px 0 0;
  color: var(--tc-text-2);
  font-size: 12px;
}
.tc-cam-card-foot {
  padding: 10px 16px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  color: var(--tc-text-2);
  font-size: 12px;
}
.tc-cam-user-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tc-cam-user-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}
.tc-cam-user-row:last-child {
  border-bottom: 0;
}
.tc-cam-user-row:hover {
  background: #fafcff;
}
.tc-cam-user-row.is-pending {
  background: #fffdf8;
}
.tc-cam-user-row.is-pending:hover {
  background: #fff8ec;
}
.tc-cam-user-main {
  flex: 1 1 240px;
  min-width: 0;
}
.tc-cam-user-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.tc-cam-user-email {
  color: #181a1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}
.tc-cam-user-meta {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.45;
}
.tc-cam-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.tc-cam-tag-owner {
  background: #e8f3ff;
  color: #0052d9;
}
.tc-cam-tag-pending {
  background: #fff7e6;
  color: #d46b08;
}
.tc-cam-2fa {
  color: #c5c5c5;
  font-size: 15px;
  line-height: 1;
}
.tc-cam-2fa.is-on {
  color: #2ba471;
}
.tc-cam-user-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.tc-cam-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}
.tc-cam-user-divider {
  padding: 8px 16px;
  border-bottom: 1px solid #e8e8e8;
  background: #f5f7fa;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.tc-cam-invite-card {
  margin-top: 16px;
}
.tc-cam-invite-desc {
  margin: 0 0 16px;
  color: var(--tc-text-2);
  font-size: 13px;
  line-height: 1.6;
}
.tc-cam-invite-form .form-label {
  margin-bottom: 6px;
  color: #181a1e;
  font-size: 12px;
  font-weight: 500;
}
.tc-cam-invite-form .form-control {
  height: 36px;
  border-color: #dcdcdc;
  border-radius: 4px;
  font-size: 13px;
}
.tc-cam-invite-form .form-control:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .1);
}
.tc-cam-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 2px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
}
.tc-cam-segment-item {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.tc-cam-segment-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tc-cam-segment-item span {
  display: block;
  padding: 6px 16px;
  border-radius: 3px;
  color: #181a1e;
  font-size: 13px;
  line-height: 20px;
  transition: background .15s, color .15s;
}
.tc-cam-segment-item input:checked + span {
  background: #0052d9;
  color: #fff;
}
.tc-cam-segment-item:not(:has(input:checked)):hover span {
  background: #f3f3f3;
}
.tc-perm-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.tc-perm-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  cursor: pointer;
}
.tc-perm-item:last-child {
  border-bottom: 0;
}
.tc-perm-item:hover {
  background: #fafcff;
}
.tc-perm-item .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 2px;
}
.tc-perm-item .form-check-input:checked {
  background-color: #0052d9;
  border-color: #0052d9;
}
.tc-perm-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tc-perm-title {
  color: #181a1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.tc-perm-desc {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.45;
}
.tc-cam-perm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fafafa;
}
.tc-cam-perm-avatar {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #e8f3ff;
  color: #0052d9;
  font-size: 18px;
}
.tc-cam-perm-email {
  color: #181a1e;
  font-size: 14px;
  font-weight: 600;
}
.tc-cam-perm-label {
  color: #8b8b8b;
  font-size: 12px;
}
.tc-cam-perm-section-label {
  margin-bottom: 8px;
  color: #181a1e;
  font-size: 13px;
  font-weight: 600;
}
.tc-user-perms .tc-form-actions,
.tc-cam-invite-form .tc-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid #e8e8e8;
  margin-top: 16px;
}
.tc-user-perms .tc-form-actions .btn,
.tc-cam-invite-form .btn-primary {
  min-width: 96px;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 13px;
}
@media (max-width: 767.98px) {
  .tc-cam-user-row {
    align-items: flex-start;
  }
  .tc-cam-user-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .tc-cam-segment {
    display: flex;
    width: 100%;
  }
  .tc-cam-segment-item {
    flex: 1 1 50%;
  }
  .tc-cam-segment-item span {
    text-align: center;
  }
}

/* ---- Contacts ---- */
.tc-contact-page {
  max-width: 960px;
}
.tc-contact-switcher-form .form-label {
  margin-bottom: 6px;
  color: #181a1e;
  font-size: 12px;
  font-weight: 500;
}
.tc-contact-switcher-form .form-select {
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
}
.tc-contact-page .tc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 8px;
  border-top: 1px solid #e8e8e8;
}

/* ---- Email archive ---- */
.tc-emails-table .tc-col-date {
  width: 140px;
  white-space: nowrap;
}
.tc-emails-table .tc-col-subject {
  min-width: 200px;
}
.tc-emails-table .tc-col-actions {
  width: 120px;
  text-align: right;
  white-space: nowrap;
}
.tc-email-row {
  cursor: pointer;
}
.tc-email-row:hover > td {
  background: #fafcff;
}
.tc-email-subject-text {
  color: #181a1e;
  font-size: 13px;
  font-weight: 500;
}
.tc-email-attach-icon {
  margin-left: 6px;
  color: #8b8b8b;
  font-size: 14px;
  vertical-align: -2px;
}
.tc-email-view-page {
  margin: 0;
  background: #f5f7fa;
}
.tc-email-view {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.tc-email-view-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}
.tc-email-view-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #181a1e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.tc-email-view-title i {
  margin-top: 2px;
  color: #0052d9;
  font-size: 18px;
  flex-shrink: 0;
}
.tc-email-view-attachments {
  margin-top: 10px;
  color: #666;
  font-size: 12px;
}
.tc-email-view-attachments li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.tc-email-view-body {
  flex: 1 1 auto;
  min-height: 360px;
  padding: 0;
  background: #fff;
}
.tc-email-view-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  height: calc(100vh - 180px);
  border: 0;
  background: #fff;
}
.tc-email-view-foot {
  padding: 12px 20px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  text-align: center;
}
.tc-email-view-foot .btn {
  min-width: 120px;
  height: 32px;
  border-radius: 4px;
  font-size: 13px;
}
@media (max-width: 767.98px) {
  .tc-email-view {
    border: 0;
    box-shadow: none;
  }
  .tc-emails-table .tc-col-actions {
    width: auto;
    text-align: left;
  }
}

/* ---- User account pages ---- */
.tc-user-page {
  max-width: 960px;
}
.tc-center-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}
.tc-center-card {
  width: 100%;
  max-width: 540px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.tc-center-card-wide {
  max-width: 750px;
}
.tc-center-card-body {
  padding: 28px 32px;
}
.tc-center-card-body.is-centered {
  text-align: center;
}
.tc-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 28px;
}
.tc-result-icon.is-success {
  color: #00a870;
  background: rgba(0, 168, 112, .1);
}
.tc-result-icon.is-warning {
  color: #ed7b2f;
  background: rgba(237, 123, 47, .12);
}
.tc-result-icon.is-danger {
  color: #d54941;
  background: rgba(213, 73, 65, .1);
}
.tc-result-icon.is-info {
  color: #0052d9;
  background: rgba(0, 82, 217, .1);
}
.tc-result-title {
  margin: 0 0 8px;
  color: #181a1e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}
.tc-result-desc {
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}
.tc-select-account {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.tc-select-account-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  color: #181a1e;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
  transition: background .15s ease;
}
.tc-select-account-item:last-child {
  border-bottom: 0;
}
.tc-select-account-item:hover {
  background: #f5f7fa;
  color: #0052d9;
}
.tc-select-account-item.is-disabled {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}
.tc-select-account-item .tc-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 20px;
  vertical-align: 1px;
}
.tc-select-account-item .tc-tag-owner {
  color: #0052d9;
  background: rgba(0, 82, 217, .08);
}
.tc-select-account-item .tc-tag-closed {
  color: #666;
  background: #f0f0f0;
}
.tc-invite-layout {
  margin-top: 20px;
}
.tc-invite-box {
  height: 100%;
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
}
.tc-invite-box-title {
  margin: 0 0 16px;
  color: #181a1e;
  font-size: 15px;
  font-weight: 600;
}
.tc-pw-meter .progress {
  height: 8px;
}
.tc-email-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 22px;
}
.tc-email-status.is-verified {
  color: #00a870;
  background: rgba(0, 168, 112, .1);
}
.tc-email-status.is-unverified {
  color: #666;
  background: #f0f0f0;
}
.tc-user-security .tc-panel + .tc-panel {
  margin-top: 16px;
}
.tc-user-security .social-signin-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tc-forced-account {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
}
.tc-forced-account-name {
  margin: 0 0 4px;
  color: #181a1e;
  font-size: 15px;
  font-weight: 600;
}
.tc-forced-account-email {
  margin: 0;
  color: #666;
  font-size: 13px;
}
.tc-center-wrap.is-viewport {
  min-height: 100vh;
  align-items: center;
}
.tc-center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ---- WHMCS Ajax modal & 2FA ---- */
#modalAjax .modal-header {
  border-bottom: 1px solid #e8e8e8;
}
#modalAjax .modal-footer {
  border-top: 1px solid #e8e8e8;
}
#modalAjax .loader .ri-spin {
  vertical-align: -2px;
}
.twofa-setup .modal-body {
  min-height: 100px;
}
.twofa-setup .activation-msg {
  margin: 20px 0;
  padding: 14px;
  border: 1px dashed #dcdfe6;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.twofa-setup .backup-code {
  margin: 16px auto;
  padding: 10px;
  border-radius: 4px;
  background: #f5f7fa;
  color: #181a1e;
  text-align: center;
}
.twofa-module {
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
}
.twofa-module .col-radio {
  float: left;
  width: 32px;
  margin-top: 10px;
}
.twofa-module .col-logo {
  float: left;
  width: 72px;
  line-height: 40px;
  text-align: center;
}
.twofa-module .col-description {
  margin-left: 120px;
}
.twofa-module img {
  max-width: 100%;
  max-height: 40px;
}
.twofa-module.active {
  border-color: #0052d9;
  background: rgba(0, 82, 217, .04);
}
.tc-generate-password-modal .modal-header {
  border-bottom: 1px solid #e8e8e8;
}
.tc-generate-password-modal .modal-footer {
  border-top: 1px solid #e8e8e8;
}

/* ---- Payment methods ---- */
.tc-paymethods-page,
.tc-paymethod-manage {
  max-width: 1080px;
}
.tc-paymethods-table thead th {
  background: #fafafa;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tc-paymethods-table td {
  vertical-align: middle;
  font-size: 13px;
}
.tc-paymethods-table .tc-col-icon {
  width: 40px;
  text-align: center;
  color: #0052d9;
  font-size: 16px;
}
.tc-paymethods-table .tc-col-actions {
  min-width: 220px;
}
.tc-billing-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-billing-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tc-billing-contact-item:hover {
  border-color: #c9d8f8;
  background: #fafcff;
}
.tc-billing-contact-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}
.tc-billing-contact-addr {
  font-size: 12px;
}
.tc-paymethod-manage .tc-cvc-input {
  max-width: 120px;
}
.tc-paymethod-manage .field-error-msg {
  display: none;
}
.tc-paymethod-manage .has-error .field-error-msg {
  display: block;
}
.tc-paymethod-manage .has-error .form-control {
  border-color: #d54941;
}
.tc-paymethod-iframe {
  max-width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

/* ---- Support tickets ---- */
.tc-tickets-table .tc-ticket-subject-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.tc-tickets-table .tc-ticket-num {
  color: #8c8c8c;
  font-size: 12px;
}
.tc-tickets-table .tc-ticket-subject.is-unread {
  font-weight: 600;
  color: #1a1a1a;
}
.tc-ticket-row {
  cursor: pointer;
}
.tc-ticket-row:hover > td {
  background: #fafcff;
}

/* ---- Ticket view (timeline bubbles) ---- */
.tc-ticket-view-page {
  max-width: 960px;
}
.tc-ticket-view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}
.tc-ticket-view-subject {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #181a1e;
}
.tc-ticket-view-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: #6c757d;
}
.tc-ticket-view-id {
  font-weight: 600;
  color: #595959;
}
.tc-ticket-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-ticket-action-btn {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 26px;
  border-radius: 4px !important;
}
.tc-ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.tc-ticket-bubble {
  border-radius: 4px;
  overflow: hidden;
}
.tc-ticket-bubble.is-staff {
  background: #f0f6ff;
  border: 1px solid #d0e3ff;
}
.tc-ticket-bubble.is-owner {
  background: #fff;
  border: 1px solid #e8e8e8;
}
.tc-ticket-bubble-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid transparent;
}
.tc-ticket-bubble.is-staff .tc-ticket-bubble-head {
  border-bottom-color: #d0e3ff;
}
.tc-ticket-bubble.is-owner .tc-ticket-bubble-head {
  border-bottom-color: #f0f0f0;
  background: #fafafa;
}
.tc-ticket-bubble-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tc-ticket-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}
.tc-ticket-avatar.is-staff {
  background: #d0e3ff;
  color: #0052d9;
}
.tc-ticket-avatar.is-owner {
  background: #e8f8f0;
  color: #2ba471;
}
.tc-ticket-author {
  font-size: 13px;
  font-weight: 600;
  color: #181a1e;
}
.tc-ticket-staff-id {
  font-size: 11px;
  color: #8c8c8c;
}
.tc-ticket-bubble-time {
  font-size: 12px;
  color: #8c8c8c;
  white-space: nowrap;
}
.tc-ticket-bubble-body {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #181a1e;
}
.tc-ticket-bubble-body p:last-child {
  margin-bottom: 0;
}
.tc-ticket-bubble-body code {
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .04);
  font-size: 12px;
}
.tc-ticket-badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  background: #e8e8e8;
  color: #595959;
}
.tc-ticket-badge-operator {
  background: #e8f3ff;
  color: #0052d9;
}
.tc-ticket-badge-owner {
  background: #e8f8f0;
  color: #2ba471;
}
.tc-ticket-attachments {
  padding: 10px 14px 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #595959;
}
.tc-ticket-bubble.is-staff .tc-ticket-attachments {
  border-top-color: #d0e3ff;
  background: rgba(255, 255, 255, .35);
}
.tc-ticket-attach-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.tc-ticket-attach-list li + li {
  margin-top: 4px;
}
.tc-ticket-attach-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #0052d9;
  text-decoration: none;
}
.tc-ticket-attach-list a:hover {
  text-decoration: underline;
}
.tc-ticket-reply-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px;
}
.tc-ticket-reply-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.tc-ticket-reply-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #181a1e;
}
.tc-ticket-reply-panel-title i {
  margin-right: 4px;
  color: #0052d9;
}
.tc-ticket-reply-sender {
  font-size: 12px;
  color: #8c8c8c;
}
.tc-ticket-reply-form .form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.tc-ticket-reply-form .tc-form-textarea {
  min-height: 120px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
  border-color: #e8e8e8;
}
.tc-ticket-reply-form .tc-form-textarea:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .12);
}
.tc-upload-zone-ticket {
  min-height: 80px;
  padding: 12px;
}
.tc-upload-zone-ticket .tc-upload-icon {
  font-size: 24px;
  color: #0052d9;
}
.tc-upload-zone-ticket .tc-upload-text,
.tc-upload-zone-ticket .tc-upload-hint {
  font-size: 12px;
}
.tc-upload-zone-ticket .tc-upload-hint {
  color: #8c8c8c;
}
.tc-ticket-reply-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.tc-ticket-reply-actions .btn-primary {
  min-width: 96px;
}

/* legacy aliases (Smarty compat) */
.tc-ticket-view .tc-ticket-reply {
  border-bottom: 0;
}
.tc-ticket-reply-head {
  padding: 0;
  background: transparent;
  border-bottom: 0;
}
.tc-ticket-reply.is-staff .tc-ticket-reply-head {
  background: transparent;
}
.tc-ticket-reply-body {
  padding: 0;
}

/* ---- Ticket department grid (submitticket step 1) ---- */
.tc-ticket-dept-page {
  max-width: 1080px;
}
.tc-ticket-dept-head .tc-page-desc {
  max-width: 640px;
}
.tc-dept-grid {
  margin-bottom: 0;
}
.tc-dept-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  min-height: 132px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s ease;
}
.tc-dept-card:hover {
  border-color: #0052d9;
  color: inherit;
  text-decoration: none;
}
.tc-dept-card:hover .tc-dept-card-title {
  color: #0052d9;
}
.tc-dept-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: #0052d9;
}
.tc-dept-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tc-dept-card-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #181a1e;
  transition: color .2s ease;
}
.tc-dept-card-desc {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6c757d;
}

/* ---- Ticket submit form (step 2) ---- */
.tc-ticket-submit-form .form-label {
  font-size: 13px;
  font-weight: 500;
  color: #181a1e;
  margin-bottom: 6px;
}
.tc-form-compact .form-control,
.tc-form-compact .tc-form-select {
  min-height: 32px;
  height: 32px;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 4px;
  border-color: #e8e8e8;
}
.tc-form-compact .tc-form-textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
  border-color: #e8e8e8;
  resize: vertical;
}
.tc-form-compact .form-control:focus,
.tc-form-compact .tc-form-textarea:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, .12);
}
.tc-input-readonly,
.tc-input-readonly:disabled {
  background-color: #f5f7fa !important;
  color: #888 !important;
  border-color: #e8e8e8 !important;
  cursor: not-allowed;
  opacity: 1;
}
.tc-form-select-wrap {
  position: relative;
}
.tc-form-select-wrap .tc-form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: none;
  cursor: pointer;
}
.tc-form-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #8c8c8c;
  pointer-events: none;
}
.tc-upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.tc-upload-zone:hover,
.tc-upload-zone.is-dragover {
  border-color: #0052d9;
  background: #f3f7ff;
}
.tc-upload-zone.has-file {
  border-style: solid;
  border-color: #c9d8f8;
  background: #fff;
}
.tc-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.tc-upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
}
.tc-upload-icon {
  font-size: 28px;
  color: #0052d9;
  line-height: 1;
}
.tc-upload-text {
  font-size: 12px;
  color: #595959;
}
.tc-upload-hint {
  font-size: 12px;
  color: #8c8c8c;
}
.tc-upload-filename {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #0052d9;
  word-break: break-all;
}
.tc-upload-add-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 4px;
}
#fileUploadsContainer .tc-upload-zone {
  margin-top: 8px;
}
.tc-ticket-faq-sidebar {
  padding: 16px;
  background: #f5f7fa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}
.tc-ticket-faq-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #181a1e;
}
.tc-ticket-faq-title i {
  color: #0052d9;
  font-size: 16px;
}
.tc-ticket-faq-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #6c757d;
}
.tc-ticket-faq-list li + li {
  margin-top: 6px;
}
.tc-ticket-faq-divider {
  margin: 14px 0;
  border-color: #e8e8e8;
  opacity: 1;
}
.tc-ticket-faq-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-ticket-faq-links li + li {
  margin-top: 8px;
}
.tc-ticket-faq-links a {
  font-size: 12px;
  color: #0052d9;
  text-decoration: none;
}
.tc-ticket-faq-links a:hover {
  text-decoration: underline;
}
.tc-ticket-faq-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
  font-size: 12px;
  color: #8c8c8c;
}
.tc-ticket-faq-foot i {
  margin-right: 4px;
  color: #0052d9;
}
.tc-kb-suggestions .tc-kb-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.tc-kb-suggestions .tc-kb-item:first-child {
  border-top: 0;
}
.tc-kb-suggestions .tc-kb-item:last-child {
  border-bottom: 0;
}

/* ---- Invoice payment ---- */
.tc-invoice-payment .auth3d-area {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-top: 12px;
}
.tc-payment-summary .invoice-summary-table .table {
  margin-bottom: 0;
}
.tc-payment-summary .total-row {
  font-weight: 600;
}

/* ---- Public homepage ---- */
.tc-homepage {
  padding-bottom: 24px;
}
.tc-home-section-title {
  margin: 32px 0 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #1a1a1a;
}
.tc-home-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tc-home-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 16px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tc-home-action:hover {
  border-color: #c9d8f8;
  box-shadow: 0 4px 12px rgba(0, 82, 217, .08);
  transform: translateY(-2px);
  color: #0052d9;
}
.tc-home-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
}
.tc-home-action-label {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.tc-home-action-teal .tc-home-action-icon { background: #e8f8f5; color: #0d9f8a; }
.tc-home-action-red .tc-home-action-icon { background: #fdecee; color: #d54941; }
.tc-home-action-yellow .tc-home-action-icon { background: #fff7e6; color: #ed7b2f; }
.tc-home-action-gray .tc-home-action-icon { background: #f3f3f3; color: #595959; }
.tc-home-action-green .tc-home-action-icon { background: #e8f8f0; color: #2ba471; }
.tc-home-action-blue .tc-home-action-icon { background: #e8f3ff; color: #0052d9; }

/* ---- Domains list ---- */
.tc-domains-table .tc-col-check {
  width: 36px;
  text-align: center;
}
.tc-domains-table .tc-col-ssl {
  width: 40px;
}
.tc-domains-table .tc-col-domain {
  min-width: 180px;
}
.tc-domain-name {
  font-weight: 600;
  color: #181a1e;
  text-decoration: none;
}
.tc-domain-name:hover {
  color: #0052d9;
}
.tc-domain-autorenew {
  margin-top: 2px;
  color: #8c8c8c;
  font-size: 12px;
}
.tc-domain-row {
  cursor: pointer;
}
.tc-domain-row:hover > td {
  background: #fafcff;
}
.tc-domain-bulk-actions .btn {
  border-radius: 4px;
  font-size: 12px;
}
.tc-domain-detail .tc-page-tabs {
  margin-bottom: 16px;
}
.tc-domain-sub-page .tc-panel-title,
.tc-domain-sub-page .tc-page-title {
  font-size: 15px;
}
.tc-domain-addon-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--tc-radius-lg);
  background: #f2f6ff;
  color: var(--tc-primary);
  font-size: 24px;
}
.tc-domain-dns-table .form-control,
.tc-domain-dns-table .form-select {
  min-width: 80px;
}
.tc-domain-contact-tabs .nav-link {
  font-size: 13px;
}
.tc-upgrade-page .tc-page-title,
.tc-cancel-page .tc-page-title {
  font-size: 15px;
}
.tc-upgrade-table td {
  vertical-align: middle;
}
.tc-upgrade-configure .tc-upgrade-current {
  background: #fafcff;
  border-radius: var(--tc-radius-lg);
}
.tc-upgrade-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  overflow: hidden;
  background: var(--tc-card-bg);
  box-shadow: var(--tc-shadow);
}
.tc-upgrade-product-badge {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}
.tc-upgrade-product-badge.is-current {
  background: #ed7b2f;
}
.tc-upgrade-product-badge.is-recommended {
  background: var(--tc-primary);
}
.tc-upgrade-product-head {
  padding: 16px;
  background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
  color: #fff;
  min-height: 100px;
}
.tc-upgrade-product-features {
  padding: 12px 16px;
  border-top: 1px solid var(--tc-border);
  border-bottom: 1px solid var(--tc-border);
  flex: 1;
}
.tc-upgrade-product-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
}
.tc-upgrade-product-features li:last-child {
  border-bottom: 0;
}
.tc-upgrade-product-foot {
  padding: 12px 16px 16px;
}
.tc-masspay-table .tc-masspay-invoice-head td {
  background: #f5f7fa;
  border-top: 1px solid var(--tc-border);
}
tr.masspay-invoice-detail td {
  font-size: 13px;
}
tr.masspay-total td {
  border-top: 1px solid var(--tc-border);
  font-size: 13px;
}
.tc-twofa-backup-code {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.tc-3dsecure-frame {
  min-height: 500px;
  background: #fff;
}
.tc-resource-search .input-group-lg .form-control {
  font-size: 14px;
}
.tc-kb-category.card:hover,
.tc-featured-tld.card:hover {
  border-color: #b3c7ff;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.08);
}
.tc-kb-article-item .fw-medium,
.tc-download-item .fw-medium {
  font-size: 14px;
}
.tc-kb-article-content {
  font-size: 14px;
  line-height: 1.7;
}
.tc-affiliate-stat {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: #fafcff;
}
.tc-affiliate-summary td {
  font-size: 13px;
  padding: 10px 14px;
}
.tc-serverstatus-table {
  font-size: 13px;
}
.tc-tld-filters .badge {
  cursor: pointer;
}
.tc-featured-tld-price {
  font-size: 14px;
}
.tc-ssl-table .tc-col-actions {
  min-width: 140px;
}
.tc-ticket-feedback-staff {
  margin: 12px auto;
  padding: 16px;
  max-width: 92%;
  background: #f5f7fa;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
}
.tc-ticket-feedback-rating td {
  vertical-align: middle;
  font-size: 13px;
}
.tc-markdown-guide-title {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
}
.tc-markdown-guide-title:first-child {
  margin-top: 0;
}
.tc-markdown-guide-pre {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 14px;
  background: #f5f7fa;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  white-space: pre-wrap;
  word-break: break-word;
}
.tc-forward-progress {
  width: 220px;
  height: 6px;
}
.tc-access-denied-page .tc-panel {
  max-width: 480px;
  margin: 0 auto;
}
