/* PurifyGo compatibility layer for the supplied Zentic theme.
   Only presentation/layout is changed; legacy CI3 view IDs, form names and JS hooks stay intact. */

html[data-theme="light"], body.purify-zentic {
  background: var(--zc-body-bg, #f4f6fa);
  color: var(--zc-text-primary, #111827);
}

/* Global Flatpickr — Turkish, white Zentic calendar */
body.purify-zentic .flatpickr-calendar {
  width: 336px;
  padding: 14px;
  border: 1px solid #e4e7ec !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #1d2939 !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16) !important;
  overflow: hidden;
}
body.purify-zentic .flatpickr-calendar.open { z-index: 1100; }
body.purify-zentic .flatpickr-calendar.arrowTop::before,
body.purify-zentic .flatpickr-calendar.arrowTop::after { border-bottom-color: #fff !important; }
body.purify-zentic .flatpickr-calendar.arrowBottom::before,
body.purify-zentic .flatpickr-calendar.arrowBottom::after { border-top-color: #fff !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-months { margin-bottom: 8px; }
body.purify-zentic .flatpickr-calendar .flatpickr-innerContainer,
body.purify-zentic .flatpickr-calendar .flatpickr-rContainer,
body.purify-zentic .flatpickr-calendar .flatpickr-weekdays,
body.purify-zentic .flatpickr-calendar .flatpickr-days,
body.purify-zentic .flatpickr-calendar .dayContainer {
  border: 0 !important;
  background: #fff !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-month,
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  background: #fff !important;
  color: #1d2939 !important;
  fill: #667085 !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-month { height: 56px; }
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  top: 12px;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 10px;
}
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover { background: #f0f0ff !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
body.purify-zentic .flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg { fill: #5046e5 !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-current-month { padding-top: 0; }
body.purify-zentic .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body.purify-zentic .flatpickr-calendar .flatpickr-current-month input.cur-year {
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #e4e7ec !important;
  background: #fff !important;
  color: #1d2939 !important;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
}
body.purify-zentic .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  border-radius: 10px 0 0 10px;
}
body.purify-zentic .flatpickr-calendar .flatpickr-current-month input.cur-year {
  border-left: 0 !important;
  border-radius: 0 10px 10px 0;
}
body.purify-zentic .flatpickr-calendar .flatpickr-monthDropdown-month {
  background: #fff !important;
  color: #1d2939 !important;
}
body.purify-zentic .flatpickr-calendar span.flatpickr-weekday {
  background: #fff !important;
  color: #667085 !important;
  font-size: 12px;
  font-weight: 750;
}
body.purify-zentic .flatpickr-calendar .flatpickr-day {
  border-radius: 10px;
  color: #344054 !important;
  font-weight: 600;
}
body.purify-zentic .flatpickr-calendar .flatpickr-day.prevMonthDay,
body.purify-zentic .flatpickr-calendar .flatpickr-day.nextMonthDay,
body.purify-zentic .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
body.purify-zentic .flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover { color: #c3cbd8 !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-day:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-day:focus {
  border-color: #f0f0ff !important;
  background: #f0f0ff !important;
  color: #5046e5 !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-day.today {
  border-color: #5046e5 !important;
  background: #fff !important;
  color: #5046e5 !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-day.inRange {
  border-color: #eeecff !important;
  background: #eeecff !important;
  color: #4338ca !important;
  box-shadow: -5px 0 0 #eeecff, 5px 0 0 #eeecff !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-day.selected,
body.purify-zentic .flatpickr-calendar .flatpickr-day.startRange,
body.purify-zentic .flatpickr-calendar .flatpickr-day.endRange,
body.purify-zentic .flatpickr-calendar .flatpickr-day.selected:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-day.startRange:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-day.endRange:hover {
  border-color: #5046e5 !important;
  background: #5046e5 !important;
  color: #fff !important;
}
body.purify-zentic .flatpickr-calendar .numInputWrapper span.arrowUp::after { border-bottom-color: #667085 !important; }
body.purify-zentic .flatpickr-calendar .numInputWrapper span.arrowDown::after { border-top-color: #667085 !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-time {
  border-top-color: #e4e7ec !important;
  background: #fff !important;
}
body.purify-zentic .flatpickr-calendar .flatpickr-time input,
body.purify-zentic .flatpickr-calendar .flatpickr-time .flatpickr-time-separator,
body.purify-zentic .flatpickr-calendar .flatpickr-time .flatpickr-am-pm { color: #344054 !important; }
body.purify-zentic .flatpickr-calendar .flatpickr-time input:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-time input:focus,
body.purify-zentic .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
body.purify-zentic .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus { background: #f8f9fc !important; }

@media (max-width: 390px) {
  body.purify-zentic .flatpickr-calendar {
    width: calc(100vw - 24px);
    padding: 10px;
  }
}

body.purify-zentic {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--zc-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body.purify-zentic a { color: var(--zc-primary); }
body.purify-zentic a:hover { color: var(--zc-primary-dark); text-decoration: none; }

/* Theme shell */
.purify-zentic .brand-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 15px rgba(80, 70, 229, .16);
}
.purify-zentic .brand-icon img { width: 100%; height: 100%; display: block; }
.purify-zentic .brand-logo-full {
  display: block;
  width: 188px;
  height: auto;
  object-fit: contain;
}
.purify-zentic .brand-logo-mark {
  display: none;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.purify-zentic .brand-tag { font-size: 8px; letter-spacing: 1.15px; }
.purify-zentic .sidebar-brand { min-height: 78px; padding: 7px 14px 6px; }
.purify-zentic .sidebar-brand .brand-link { min-width: 0; }
.purify-zentic .zentic-sidebar.collapsed .brand-logo-full { display: none; }
.purify-zentic .zentic-sidebar.collapsed .brand-logo-mark { display: block; }
.purify-zentic .zentic-sidebar.collapsed .sidebar-brand { min-height: 68px; padding: 10px 17px; }
.purify-zentic .pg-system-status { min-height: 42px; }
.purify-zentic .sidebar-nav { padding-top: 6px; }
.purify-zentic .nav-list { padding-left: 0; margin: 0; list-style: none; }
.purify-zentic .nav-item { list-style: none; }
.purify-zentic .nav-link { text-decoration: none !important; }
.purify-zentic .pg-new-report-badge {
  padding: 2px 6px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.purify-zentic .nav-link.active .pg-new-report-badge { color: #4338ca; background: #fff; }
.purify-zentic .pg-old-report-menu > summary { list-style: none; }
.purify-zentic .pg-old-report-menu > summary::-webkit-details-marker { display: none; }
.purify-zentic .pg-old-report-summary.has-active { color: var(--zc-primary); background: var(--zc-primary-xlight); }
.purify-zentic .pg-old-report-arrow { width: 14px; height: 14px; margin-left: auto; transition: transform .18s ease; }
.purify-zentic .pg-old-report-menu[open] .pg-old-report-arrow { transform: rotate(180deg); }
.purify-zentic .pg-old-report-list { margin-top: 3px; padding-left: 13px; border-left: 1px solid var(--zc-border-light); }
.purify-zentic .pg-old-report-list .nav-link { padding-top: 7px; padding-bottom: 7px; font-size: 12px; }
.purify-zentic .pg-old-report-list .nav-icon { width: 14px; height: 14px; min-width: 14px; }
.purify-zentic .zentic-sidebar.collapsed .pg-old-report-list,
.purify-zentic .zentic-sidebar.collapsed .pg-old-report-arrow,
.purify-zentic .zentic-sidebar.collapsed .pg-new-report-badge { display: none; }
.purify-zentic .nav-icon {
  width: 17px;
  height: 17px;
  min-width: 17px;
  stroke-width: 2;
  color: currentColor;
  margin-right: 10px;
}
.purify-zentic .nav-section-arrow { width: 14px; height: 14px; transition: transform .18s ease; }
.purify-zentic .nav-section.collapsed .nav-section-arrow { transform: rotate(-90deg); }
.purify-zentic .sidebar-close-btn svg,
.purify-zentic .sidebar-user-settings svg,
.purify-zentic .spp-close svg { width: 16px; height: 16px; }

.purify-zentic .pg-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--zc-primary), var(--zc-secondary));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 5px 14px rgba(80, 70, 229, .22);
}
.purify-zentic .pg-avatar-sm { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }
.purify-zentic .sidebar-user { cursor: pointer; }
.purify-zentic .sidebar-user-name { max-width: 135px; overflow: hidden; text-overflow: ellipsis; }
.purify-zentic .sidebar-profile-popup svg { width: 17px; height: 17px; }

.purify-zentic .zentic-topbar { box-shadow: 0 1px 0 rgba(17, 24, 39, .02); }
.purify-zentic .sidebar-toggle-btn svg { width: 20px; height: 20px; }
.purify-zentic .pg-topbar-title-wrap { max-width: none; min-width: 0; }
.purify-zentic .pg-topbar-kicker { font-size: 10px; color: var(--zc-text-muted); letter-spacing: .9px; text-transform: uppercase; font-weight: 700; line-height: 1.1; }
.purify-zentic .pg-topbar-title { font-size: 15px; color: var(--zc-text-primary); font-weight: 800; line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purify-zentic .pg-topbar-user-label { align-items: baseline; gap: 5px; font-size: 12px; color: var(--zc-text-secondary); margin-right: 5px; }
.purify-zentic .pg-topbar-user-label strong { color: var(--zc-text-primary); font-weight: 700; }
.purify-zentic .pg-user-trigger { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 3px; cursor: pointer; border-radius: 12px; }
.purify-zentic .pg-user-trigger:hover { background: var(--zc-primary-xxlight); }
.purify-zentic .pg-user-chevron { width: 14px; height: 14px; color: var(--zc-text-muted); }
.purify-zentic .user-dropdown-menu { min-width: 225px; right: 0; left: auto; padding: 8px; }
.purify-zentic .user-dropdown-header { padding: 10px 10px 12px; border-bottom: 1px solid var(--zc-border-light); margin-bottom: 6px; }
.purify-zentic .user-dropdown-header strong { display: block; color: var(--zc-text-primary); font-size: 13px; }
.purify-zentic .user-dropdown-header small { display: block; color: var(--zc-text-muted); margin-top: 2px; }
.purify-zentic .user-dropdown-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--zc-text-secondary); }
.purify-zentic .user-dropdown-item svg { width: 16px; height: 16px; }
.purify-zentic .user-dropdown-item:hover { background: var(--zc-body-bg); }
.purify-zentic .user-dropdown-item.danger { color: var(--zc-danger); }

.purify-zentic .zentic-content { padding: 22px; }
.purify-zentic .pg-page-header { margin-bottom: 18px; }
.purify-zentic .page-title { font-size: 24px; font-weight: 800; color: var(--zc-text-primary); letter-spacing: -.3px; margin: 0 0 4px; }
.purify-zentic .page-subtitle { margin: 0; font-size: 12.5px; color: var(--zc-text-secondary); }
.purify-zentic .main-content { width: 100%; max-width: 100%; margin: 0; padding: 0; min-height: 0; }
.purify-zentic .layout-px-spacing { padding: 0; }
.purify-zentic .layout-top-spacing { margin-top: 0; }
.purify-zentic .layout-spacing { margin-bottom: 18px; }
.purify-zentic .main-content > .col-lg-12 { padding-left: 0; padding-right: 0; }

/* Legacy cards -> supplied Zentic card language */
.purify-zentic .statbox.widget,
.purify-zentic .widget.widget-table-two,
.purify-zentic .widget.widget-five,
.purify-zentic .widget-content-area {
  background: var(--zc-card-bg);
  border: 1px solid var(--zc-border-color);
  border-radius: var(--zc-radius-xl);
  box-shadow: var(--zc-shadow-card);
  overflow: hidden;
}
.purify-zentic .statbox.widget.box-shadow { box-shadow: var(--zc-shadow-card) !important; }
.purify-zentic .statbox .widget-content-area { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.purify-zentic .widget-header,
.purify-zentic .widget-heading {
  padding: 16px 20px;
  border-bottom: 1px solid var(--zc-border-light);
  background: var(--zc-card-bg);
}
.purify-zentic .widget-header .row { margin: 0; }
.purify-zentic .widget-header [class*="col-"] { padding-left: 0; padding-right: 0; }
.purify-zentic .widget-header h4,
.purify-zentic .widget-header h5,
.purify-zentic .widget-header h6,
.purify-zentic .widget-heading h4,
.purify-zentic .widget-heading h5,
.purify-zentic .widget-heading h6 {
  color: var(--zc-text-primary);
  font-weight: 800;
  margin: 0;
  letter-spacing: -.15px;
}
.purify-zentic .widget-header h4 { font-size: 16px; }
.purify-zentic .widget-heading h5,
.purify-zentic .widget-heading h6 { font-size: 15px; }
.purify-zentic .widget-heading p,
.purify-zentic .widget-header p { color: var(--zc-text-muted); font-size: 12px; margin-top: 4px; }
.purify-zentic .widget-content,
.purify-zentic .widget-content-area { padding: 18px 20px; }
.purify-zentic .statbox .widget-content-area { padding: 18px 20px; }
.purify-zentic .widget.widget-table-two > .widget-content,
.purify-zentic .widget.widget-five > .widget-content { padding: 18px 20px; }

/* Dashboard KPI card adaptation */
.purify-zentic .widget-five { min-height: 100%; }
.purify-zentic .widget-five .header-body h6 { font-size: 14px; font-weight: 800; color: var(--zc-text-primary); }
.purify-zentic .widget-five .header-body p { color: var(--zc-text-muted); font-size: 12px; }
.purify-zentic .widget-five .w-content { margin-top: 18px; }
.purify-zentic .widget-five .task-left { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -1px; color: var(--zc-primary); margin-bottom: 12px; }
.purify-zentic .widget-five .task-hight-priority { font-size: 11px; color: var(--zc-text-muted); margin-bottom: 6px; }
.purify-zentic .widget-five .task-completed { margin: 0; }
.purify-zentic .widget-five .task-completed span { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--zc-success-light); color: var(--zc-success); font-weight: 800; }

/* Forms */
.purify-zentic label { color: var(--zc-text-secondary); font-size: 12.5px; font-weight: 650; }
.purify-zentic .form-group { margin-bottom: 15px; }
.purify-zentic .form-control,
.purify-zentic .custom-select,
.purify-zentic select.form-control {
  min-height: 40px;
  border: 1px solid var(--zc-border-color);
  background: var(--zc-card-bg);
  color: var(--zc-text-primary);
  border-radius: var(--zc-radius-md);
  font-size: 13px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.purify-zentic textarea.form-control { min-height: 92px; height: auto; }
.purify-zentic .form-control:focus,
.purify-zentic .custom-select:focus {
  border-color: var(--zc-primary-light);
  box-shadow: 0 0 0 3px rgba(80, 70, 229, .10);
  background: #fff;
  color: var(--zc-text-primary);
}
.purify-zentic .form-control::placeholder { color: #9ca3af; }
.purify-zentic .input-group-text { background: #f8f9fc; border-color: var(--zc-border-color); color: var(--zc-text-muted); }
.purify-zentic .form-check-input { accent-color: var(--zc-primary); }

/* Buttons */
.purify-zentic .btn {
  border-radius: var(--zc-radius-md);
  font-size: 12.5px;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 13px;
  box-shadow: none !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.purify-zentic .btn:hover { transform: translateY(-1px); }
.purify-zentic .btn-lg { min-height: 42px; padding: 9px 16px; font-size: 13px; }
.purify-zentic .btn-sm { min-height: 31px; padding: 5px 9px; font-size: 11.5px; }
.purify-zentic .btn-primary { background: var(--zc-primary); border-color: var(--zc-primary); color: #fff; }
.purify-zentic .btn-primary:hover,
.purify-zentic .btn-primary:focus { background: var(--zc-primary-dark); border-color: var(--zc-primary-dark); color: #fff; }
.purify-zentic .btn-outline-primary { color: var(--zc-primary); border-color: rgba(80,70,229,.35); background: #fff; }
.purify-zentic .btn-outline-primary:hover { color: #fff; background: var(--zc-primary); border-color: var(--zc-primary); }
.purify-zentic .btn-outline-info { color: var(--zc-info); border-color: rgba(59,130,246,.35); background: #fff; }
.purify-zentic .btn-outline-info:hover { color: #fff; background: var(--zc-info); border-color: var(--zc-info); }
.purify-zentic .btn-success { background: var(--zc-success); border-color: var(--zc-success); }
.purify-zentic .btn-danger { background: var(--zc-danger); border-color: var(--zc-danger); }
.purify-zentic .btn-warning { background: var(--zc-warning); border-color: var(--zc-warning); color: #fff; }
.purify-zentic a > .btn { pointer-events: none; }

/* Tables / DataTables */
.purify-zentic .table-responsive { border-radius: 10px; }
.purify-zentic .table { color: var(--zc-text-primary); margin-bottom: 0; font-size: 12.5px; background: transparent; }
.purify-zentic .table thead th,
.purify-zentic .table tfoot th {
  border-top: 0;
  border-bottom: 1px solid var(--zc-border-color);
  background: #f8f9fc;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .45px;
  vertical-align: middle;
  padding: 11px 12px;
  white-space: nowrap;
}
.purify-zentic .table tfoot th { border-top: 1px solid var(--zc-border-color); border-bottom: 0; }
.purify-zentic .table tbody td { border-top: 1px solid var(--zc-border-light); vertical-align: middle; padding: 11px 12px; color: #374151; }
.purify-zentic .table-hover tbody tr:hover { background: rgba(80,70,229,.035); }
.purify-zentic .table a { font-weight: 650; }
.purify-zentic .dataTables_wrapper { color: var(--zc-text-secondary); }
.purify-zentic .dataTables_wrapper .dataTables_length,
.purify-zentic .dataTables_wrapper .dataTables_filter { margin-bottom: 14px; }
.purify-zentic .dataTables_wrapper .dataTables_filter input,
.purify-zentic .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--zc-border-color) !important;
  background: #fff !important;
  color: var(--zc-text-primary) !important;
  border-radius: 8px !important;
  min-height: 34px;
  padding: 5px 9px !important;
}
.purify-zentic .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  color: var(--zc-text-secondary) !important;
  background: transparent !important;
}
.purify-zentic .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.purify-zentic .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--zc-primary) !important;
  border-color: var(--zc-primary) !important;
  color: #fff !important;
}
.purify-zentic table.dataTable .form-controlxx,
.purify-zentic table.dataTable .form-control-sayis {
  background: #fff;
  color: var(--zc-text-primary);
  border: 1px solid var(--zc-border-color);
}

/* Alerts, badges and misc */
.purify-zentic .alert { border: 0; border-radius: 10px; font-size: 12.5px; padding: 11px 14px; }
.purify-zentic .alert-info { background: var(--zc-info-light); color: #1e40af; }
.purify-zentic .alert-success { background: var(--zc-success-light); color: #047857; }
.purify-zentic .alert-danger { background: var(--zc-danger-light); color: #b91c1c; }
.purify-zentic .alert-warning { background: var(--zc-warning-light); color: #92400e; }
.purify-zentic .badge { border-radius: 999px; padding: 5px 8px; font-size: 10.5px; font-weight: 800; }
.purify-zentic .badge-primary { background: var(--zc-primary); }
.purify-zentic .badge-success { background: var(--zc-success); }
.purify-zentic .badge-warning { background: var(--zc-warning); color: #fff; }
.purify-zentic .badge-danger { background: var(--zc-danger); }
.purify-zentic hr { border-color: var(--zc-border-light); }

/* Bootstrap 4 modal visuals restyled to Zentic */
.purify-zentic .modal-content { border: 1px solid var(--zc-border-color); border-radius: 16px; box-shadow: var(--zc-shadow-xl); overflow: hidden; }
.purify-zentic .modal-header { border-bottom-color: var(--zc-border-light); padding: 16px 18px; }
.purify-zentic .modal-title { font-size: 15px; font-weight: 800; }
.purify-zentic .modal-body { padding: 18px; }
.purify-zentic .modal-footer { border-top-color: var(--zc-border-light); padding: 12px 18px; }

/* Footer + utility */
.purify-zentic .zentic-footer { font-size: 12px; }
.purify-zentic .pg-back-to-top {
  position: fixed; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 11px;
  border: 0; background: var(--zc-primary); color: #fff; display: none; align-items: center; justify-content: center;
  z-index: 850; box-shadow: 0 8px 22px rgba(80,70,229,.28); cursor: pointer;
}
.purify-zentic .pg-back-to-top.visible { display: flex; }
.purify-zentic .pg-back-to-top svg { width: 17px; height: 17px; }

/* Auth pages */
body.pg-auth-body { min-height: 100vh; min-height: 100svh; background: var(--zc-body-bg); margin: 0; overflow-x: hidden; }
.pg-auth-body .auth-page { min-height: 100vh; min-height: 100svh; }
.pg-auth-body .auth-brand-link { display: inline-flex; text-decoration: none; }
.pg-auth-body .auth-brand-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  padding: 3px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
.pg-auth-body .auth-mobile-logo { display: block; width: 176px; max-width: 68vw; height: auto; }
.pg-auth-body .auth-left-inner { width: 100%; max-width: 520px; position: relative; z-index: 2; }
.pg-auth-body .auth-right { position: relative; isolation: isolate; overflow: hidden; }
.pg-auth-body .auth-right::before,
.pg-auth-body .auth-right::after { content: ''; position: absolute; z-index: -1; border-radius: 999px; pointer-events: none; }
.pg-auth-body .auth-right::before { width: 260px; height: 260px; top: -105px; right: -105px; background: rgba(80,70,229,.10); }
.pg-auth-body .auth-right::after { width: 220px; height: 220px; bottom: -105px; left: -95px; background: rgba(6,182,212,.10); }
.pg-auth-body .auth-form-container {
  width: 100%; max-width: 430px; padding: 34px; background: rgba(255,255,255,.97);
  border: 1px solid rgba(226,232,240,.95); border-radius: 24px;
  box-shadow: 0 22px 55px rgba(30,41,59,.12), 0 3px 10px rgba(30,41,59,.05);
}
.pg-auth-body .pg-auth-mobile-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.pg-auth-body .auth-form-title { color: var(--zc-text-primary); letter-spacing: -.35px; }
.pg-auth-body .auth-form-subtitle { margin-bottom: 0; }
.pg-auth-body .pg-auth-security {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 10px;
  border-radius: 999px; color: #047857; background: #ecfdf5; font-size: 11px; font-weight: 750;
}
.pg-auth-body .pg-auth-security svg { width: 14px; height: 14px; }
.pg-auth-body .auth-form-container .form-group { margin-bottom: 16px; }
.pg-auth-body .pg-auth-label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--zc-text-secondary); }
.pg-auth-body .pg-auth-input-wrap { position: relative; }
.pg-auth-body .pg-auth-input-wrap > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--zc-text-muted); pointer-events: none; }
.pg-auth-body .pg-auth-input-wrap .form-control { padding: 0 14px 0 44px; min-height: 50px; border: 1px solid var(--zc-border-color); border-radius: 12px; font-size: 14px; background: #fff; }
.pg-auth-body .pg-auth-input-wrap .form-control:focus { border-color: var(--zc-primary-light); box-shadow: 0 0 0 3px rgba(80,70,229,.1); }
.pg-auth-body .pg-auth-submit { width: 100%; min-height: 50px; border-radius: 12px; background: linear-gradient(135deg,var(--zc-primary),#635bff); border: 0; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 10px 22px rgba(80,70,229,.22); transition: transform .16s ease, box-shadow .16s ease; }
.pg-auth-body .pg-auth-submit:hover { background: linear-gradient(135deg,var(--zc-primary-dark),var(--zc-primary)); box-shadow: 0 12px 26px rgba(80,70,229,.28); transform: translateY(-1px); }
.pg-auth-body .pg-auth-submit:active { transform: translateY(0); }
.pg-auth-body .pg-captcha { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 9px 12px 11px; border: 1px solid var(--zc-border-color); border-radius: 12px; background: #f8fafc; text-align: center; }
.pg-auth-body .pg-captcha-hint { align-self: flex-start; color: var(--zc-text-muted); font-size: 10.5px; }
.pg-auth-body .pg-captcha img { display: block; width: auto; max-width: 100%; height: auto; max-height: 58px; border-radius: 7px; }
.pg-auth-body .pg-auth-note { font-size: 11.5px; line-height: 1.55; color: var(--zc-text-muted); text-align: center; margin: 18px 8px 0; }
.pg-auth-body .alert { border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.pg-auth-body .pg-auth-feature-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #a8a3ff; }
.pg-auth-body .pg-auth-feature-icon svg { width: 16px; height: 16px; }

/* Two-factor verification */
.pg-otp-body .pg-otp-card { max-width: 420px; }
.pg-otp-body .auth-form-header { text-align: center; }
.pg-otp-body .pg-otp-shield {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  margin-bottom: 15px; border-radius: 17px; color: var(--zc-primary);
  background: linear-gradient(145deg,#efedff,#e8faff); box-shadow: inset 0 0 0 1px rgba(80,70,229,.08);
}
.pg-otp-body .pg-otp-shield svg { width: 25px; height: 25px; stroke-width: 2.2; }
.pg-otp-body .pg-otp-delivery {
  display: flex; align-items: center; gap: 11px; margin: -4px 0 20px; padding: 12px 13px;
  border: 1px solid #d1fae5; border-radius: 13px; color: #065f46; background: #f0fdf8;
}
.pg-otp-body .pg-otp-delivery-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  flex: 0 0 34px; border-radius: 10px; color: #059669; background: #d1fae5;
}
.pg-otp-body .pg-otp-delivery-icon svg { width: 16px; height: 16px; }
.pg-otp-body .pg-otp-delivery strong,
.pg-otp-body .pg-otp-delivery small { display: block; }
.pg-otp-body .pg-otp-delivery strong { margin-bottom: 2px; font-size: 12px; }
.pg-otp-body .pg-otp-delivery small { color: #47756a; font-size: 10.5px; line-height: 1.4; }
.pg-otp-body .pg-otp-input .form-control { font-variant-numeric: tabular-nums; }
.pg-otp-body .pg-otp-help {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 17px 3px 0;
  color: var(--zc-text-muted); font-size: 10.5px; line-height: 1.5; text-align: left;
}
.pg-otp-body .pg-otp-help svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: var(--zc-primary); }

/* Center tags in old screens should not create awkward large whitespace. */
.purify-zentic center h4 { text-align: left; }

@media (max-width: 991.98px) {
  .purify-zentic .zentic-content { padding: 16px; }
  .purify-zentic .pg-page-header { margin-bottom: 14px; }
  .purify-zentic .page-title { font-size: 20px; }
  .purify-zentic .page-subtitle { display: none; }
  .purify-zentic .zentic-topbar { padding: 0 14px; }
  .purify-zentic .pg-topbar-kicker { display: none; }
  .purify-zentic .pg-topbar-title { font-size: 13px; }
  .purify-zentic .widget-header,
  .purify-zentic .widget-heading,
  .purify-zentic .widget-content,
  .purify-zentic .widget-content-area,
  .purify-zentic .statbox .widget-content-area { padding-left: 14px; padding-right: 14px; }
  .pg-auth-body .auth-page { flex-direction: column; }
  .pg-auth-body .auth-left { display: none; }
  .pg-auth-body .auth-right { width: 100%; min-height: 100vh; min-height: 100svh; padding: 24px 18px; background: linear-gradient(160deg,#f8faff 0%,#f3f5fb 54%,#eefcff 100%); }
}

@media (max-width: 575.98px) {
  .purify-zentic .zentic-content { padding: 12px; }
  .purify-zentic .pg-page-header { margin-bottom: 11px; }
  .purify-zentic .page-title { font-size: 18px; }
  .purify-zentic .topbar-center { min-width: 0; }
  .purify-zentic .pg-topbar-title { max-width: 150px; }
  .purify-zentic .pg-user-chevron { display: none; }
  .purify-zentic .pg-avatar { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; }
  .purify-zentic .widget-header,
  .purify-zentic .widget-heading,
  .purify-zentic .widget-content,
  .purify-zentic .widget-content-area,
  .purify-zentic .statbox .widget-content-area { padding: 12px; }
  .purify-zentic .form-row > [class*="col-"] { padding-left: 5px; padding-right: 5px; }
  .purify-zentic .form-row { margin-left: -5px; margin-right: -5px; }
  .purify-zentic .btn { white-space: normal; }
  .purify-zentic .zentic-footer { padding: 13px 14px; }
  .pg-auth-body .auth-right { align-items: center; padding: max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom)); }
  .pg-auth-body .auth-form-container { max-width: 400px; padding: 24px 20px 22px; border-radius: 22px; box-shadow: 0 18px 45px rgba(30,41,59,.13); }
  .pg-auth-body .pg-auth-mobile-brand { margin-bottom: 16px; }
  .pg-auth-body .auth-mobile-logo { width: 164px; }
  .pg-auth-body .auth-form-header { margin-bottom: 20px; text-align: center; }
  .pg-auth-body .auth-form-title { font-size: 22px; margin-bottom: 5px; }
  .pg-auth-body .auth-form-subtitle { font-size: 12.5px; }
  .pg-auth-body .pg-auth-security { margin-top: 11px; }
  .pg-auth-body .auth-form-container .form-group { margin-bottom: 14px; }
  .pg-auth-body .pg-auth-label { font-size: 12px; }
  .pg-auth-body .pg-auth-input-wrap .form-control { min-height: 49px; font-size: 13.5px; }
  .pg-auth-body .pg-auth-submit { min-height: 49px; }
  .pg-auth-body .pg-auth-note { margin-top: 15px; }
  .pg-otp-body .auth-right { align-items: flex-start; padding-top: max(30px,env(safe-area-inset-top)); }
  .pg-otp-body .pg-otp-card { margin-top: clamp(0px,4vh,34px); }
  .pg-otp-body .pg-auth-mobile-brand { margin-bottom: 18px; }
  .pg-otp-body .pg-otp-shield { width: 50px; height: 50px; margin-bottom: 13px; border-radius: 15px; }
  .pg-otp-body .pg-otp-shield svg { width: 23px; height: 23px; }
  .pg-otp-body .pg-otp-delivery { margin-bottom: 17px; }
}

@media (max-width: 575.98px) and (max-height: 720px) {
  .pg-auth-body .auth-right { align-items: flex-start; }
  .pg-auth-body .auth-form-container { padding-top: 19px; padding-bottom: 18px; }
  .pg-auth-body .pg-auth-mobile-brand { margin-bottom: 10px; }
  .pg-auth-body .auth-mobile-logo { width: 142px; }
  .pg-auth-body .auth-form-header { margin-bottom: 15px; }
  .pg-auth-body .pg-auth-security { display: none; }
  .pg-auth-body .auth-form-container .form-group { margin-bottom: 11px; }
  .pg-auth-body .pg-auth-input-wrap .form-control,
  .pg-auth-body .pg-auth-submit { min-height: 45px; }
  .pg-auth-body .pg-captcha { padding-top: 7px; padding-bottom: 8px; }
  .pg-auth-body .pg-captcha-hint { display: none; }
  .pg-auth-body .pg-captcha img { max-height: 48px; }
  .pg-otp-body .auth-right { padding-top: 14px; }
  .pg-otp-body .pg-otp-card { margin-top: 0; }
  .pg-otp-body .pg-auth-mobile-brand { margin-bottom: 8px; }
  .pg-otp-body .pg-otp-shield { width: 42px; height: 42px; margin-bottom: 8px; }
  .pg-otp-body .pg-otp-shield svg { width: 20px; height: 20px; }
  .pg-otp-body .pg-otp-delivery { margin-bottom: 12px; padding-top: 9px; padding-bottom: 9px; }
  .pg-otp-body .pg-otp-help { margin-top: 11px; }
}
