@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
:root {
  --activeColor: #395EA9;
  --whiteColor: #ffffff;
  --bodyColor: #505050;
  --headingColor: #221d1a;
  --leadColor: #707070;
  --blackColor: #000000;
  --primaryBorderRadius: 12px;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a,
a:hover {
  color: var(--activeColor);
  text-decoration: none;
}
p {
  font-size: 16px;
  color: var(--bodyColor);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--headingColor);
  margin: 0 0 30px;
  line-height: 1.3;
}
h5 {
  font-size: 21px;
}
.lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--leadColor);
  margin: 0 0 24px 0;
}
::-webkit-scrollbar {
  width: 5px;
  height: 2px;
}
::-webkit-scrollbar-thumb {
  background: #525965;
  border-radius: 0;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.btn-custom {
  background-color: #395EA9;
  color: var(--whiteColor);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  border: none;
}
.btn-custom:hover {
  background-color: #2D4A87;
  color: var(--whiteColor);
}
.btn-custom:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* 16px on all form fields = no iPhone autofocus zoom */
input,
select,
textarea,
.form-control,
.form-select,
.phone-number-input,
.phone-dial-btn {
  font-size: 16px !important;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.phone-number-input::placeholder {
  font-size: 16px !important;
  opacity: 1;
  color: #909090;
}
.form-control {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: #221d1a;
}
.form-control:focus {
  border-color: #395EA9;
  outline: 0;
  box-shadow: none;
}
.form-control:not(:placeholder-shown) {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
}
.login-section {
  background-color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  box-sizing: border-box;
}
.wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}
.phone-country-field {
  width: 100%;
  position: relative;
}
.phone-united {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 46px;
  height: 46px;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.phone-united:focus-within {
  border-color: #395EA9;
  background: #ffffff;
}
.phone-dial-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  color: #221d1a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.phone-dial-btn:hover {
  background: transparent;
}
.phone-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.phone-dial-code {
  letter-spacing: 0.2px;
}
.phone-dial-btn .bi {
  font-size: 11px;
  color: #707070;
}
.phone-divider {
  width: 1px;
  background: #d2d2d2;
  flex: 0 0 1px;
}
.phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  padding: 8px 14px;
  font-size: 16px;
  color: #221d1a;
  height: auto;
}
.phone-number-input:focus,
.phone-number-input:not(:placeholder-shown) {
  background: #ffffff !important;
}
.phone-number-input::placeholder {
  color: #909090;
  font-size: 16px;
}
.phone-country-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(34, 29, 26, 0.12);
  overflow: hidden;
}
.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
}
.phone-country-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  color: #221d1a;
  cursor: pointer;
}
.phone-country-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.phone-country-option:hover,
.phone-country-option.active {
  background: #eef3fb;
}
.phone-country-option.active {
  color: #395EA9;
}
.phone-country-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-country-dial {
  flex: 0 0 auto;
  color: #707070;
  font-weight: 600;
}
.phone-country-option.active .phone-country-dial {
  color: #395EA9;
}
.phone-country-field.has-error .phone-united,
.phone-united.is-invalid {
  border-color: #dc3545;
}
.middle-section {
  background-color: transparent;
  border-radius: 0;
  padding: 24px 0 8px;
  box-shadow: none !important;
}
.middle-section h5 {
  font-size: 36px;
  margin: 0 0 24px 0;
  color: var(--blackColor);
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}
@media all and (max-width: 1024px) {
  .login-section {
    padding: 16px 12px;
    align-items: center;
  }
  .login-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .wrapper {
    width: 100%;
    max-width: 520px;
  }
  .middle-section {
    padding: 16px 0 8px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  .middle-section h5 {
    margin-bottom: 12px;
    font-size: 36px;
    text-align: center;
  }
}
@media all and (max-width: 575.98px) {
  .login-section {
    padding: 12px 10px 24px;
    align-items: center;
    min-height: 100dvh;
  }
  .middle-section {
    padding: 12px 0 8px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  .phone-united {
    min-height: 46px;
    height: 46px;
  }
  .btn-custom {
    min-height: 48px;
    width: 100%;
  }
}
@media all and (max-width: 389px) {
  .phone-dial-btn {
    padding: 0 8px;
  }
  .middle-section h5 {
    font-size: 28px;
  }
}
body.dashboard-page {
  background: #f7f8fa;
  min-height: 100vh;
}
.dash-header {
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-header h4 {
  color: #fff;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.profile-circle:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.05);
}
.dash-header .logout-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}
.dash-header .logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.sidebar-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.dash-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  position: relative;
}
.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 20px 14px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease, padding 0.25s ease, border-color 0.25s ease, opacity 0.2s ease, transform 0.3s ease;
}
.dash-sidebar-backdrop {
  display: none;
}

@media (min-width: 992px) {
  .dash-sidebar:not(.is-open) {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right-color: transparent;
    opacity: 0;
    pointer-events: none;
  }
}
.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  padding: 0 12px 10px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}
.sidebar-link i {
  font-size: 17px;
  width: 20px;
  text-align: center;
  color: #888;
}
.sidebar-link:hover,
.sidebar-link.sidebar-action {
  color: #395EA9;
}
.sidebar-link:hover,
.sidebar-link.sidebar-action:hover {
  background: #fff4e6;
}
.sidebar-link:hover i,
.sidebar-link.sidebar-action i {
  color: #395EA9;
}
.sidebar-link.active {
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 108, 12, 0.28);
}
.sidebar-link.active i {
  color: #fff;
}
.sidebar-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 14px 8px;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-group-toggle {
  justify-content: flex-start;
}
.sidebar-group-toggle .sidebar-chevron {
  margin-left: auto;
  font-size: 13px;
  color: #aaa;
  transition: transform 0.2s ease;
}
.sidebar-group.is-open .sidebar-chevron {
  transform: rotate(180deg);
}
.sidebar-group-body {
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px;
  overflow: hidden;
}
.sidebar-group-body[hidden] {
  display: none !important;
}
.sidebar-group-body:not([hidden]) {
  display: flex;
}
.sidebar-domain-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-empty {
  padding: 8px 14px 10px 28px;
  color: #999;
  font-size: 12px;
}
.sidebar-domain-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f0f0f0;
}
.sidebar-domain-item.is-selected {
  background: #fff4e6;
  font-weight: 600;
}
.sidebar-link.sidebar-sub {
  padding-left: 28px;
  font-size: 13px;
}
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px 24px 40px;
}
.dash-container {
  max-width: 1100px;
  margin: 0 auto;
}
.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
.dash-card h5 {
  margin-bottom: 0;
}
#welcomeCard.welcome-card {
  padding: 22px 28px;
}
.welcome-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
}
.domain-switch-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.domain-switch-select {
  border-radius: 10px;
  border-color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}
.domain-switch-select:focus {
  border-color: #395EA9;
  box-shadow: 0 0 0 0.2rem rgba(255, 108, 12, 0.15);
}
#overviewSection {
  margin-bottom: 4px;
}
.dash-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}
.dash-tab {
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.dash-tab:hover {
  color: #395EA9;
}
.dash-tab.active {
  color: #395EA9;
  border-bottom-color: #395EA9;
}
.dash-tab-panel {
  animation: dashTabFade 0.2s ease;
}
@keyframes dashTabFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.verify-result {
  margin-top: 20px;
}
.verify-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.verify-status i {
  font-size: 24px;
  margin-top: 2px;
}
.verify-status h6 {
  margin: 0 0 4px;
  font-weight: 700;
}
.verify-status p {
  margin: 0;
  font-size: 14px;
}
.verify-status.verify-success {
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  color: #166534;
}
.verify-status.verify-success i {
  color: #16a34a;
}
.verify-status.verify-fail {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  color: #842029;
}
.verify-status.verify-fail i {
  color: #dc3545;
}
.verify-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verify-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
}
.verify-check i {
  font-size: 16px;
  margin-top: 2px;
}
.verify-check.is-ok i {
  color: #16a34a;
}
.verify-check.is-fail i {
  color: #dc3545;
}
.verify-check-sub {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.settings-card h5 {
  font-size: 16px;
  font-weight: 600;
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.settings-row:first-child {
  padding-top: 0;
}
.settings-label {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}
.settings-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  word-break: break-word;
}
.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.settings-badge-success {
  background: #ecfdf3;
  color: #15803d;
}
.settings-badge-warning {
  background: #fff7ed;
  color: #c2410c;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  text-decoration: none;
}
.settings-action-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}
.settings-danger-card {
  border: 1px solid #fecaca;
  background: #fffbfb;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #f0f0f0;
}
.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-weight: 500;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}
.stat-total .stat-icon {
  background: #fff4e6;
  color: #395EA9;
}
.stat-live .stat-icon {
  background: #dcfce7;
  color: #16a34a;
}
.stat-visitors .stat-icon {
  background: #dbeafe;
  color: #2563eb;
}
.stat-pageviews .stat-icon {
  background: #f3e8ff;
  color: #7c3aed;
}
.stat-live.is-active .stat-value {
  color: #16a34a;
}
.stat-live.is-active .live-dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: dashPulse 1.5s infinite;
}
@keyframes dashPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}
.btn-primary-custom {
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
}
.btn-primary-custom:hover {
  color: #fff;
  opacity: 0.92;
}
.btn-primary-custom:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
.chart-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #221d1a;
  margin: 0;
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
#chartPeriodLabel {
  font-size: 13px;
}
.chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
.chart-empty {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  z-index: 2;
}
.chart-empty.show {
  display: flex;
}
.chart-period-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.chart-period-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #395EA9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chart-period-label i {
  font-size: 14px;
}
.chart-period-select-wrap {
  position: relative;
  min-width: 180px;
  max-width: 240px;
}
.chart-period-select,
#socialPeriodSelect {
  width: 100%;
  max-width: 240px;
  height: 44px;
  padding: 0 40px 0 14px;
  border: 1.5px solid #e5ebf5;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(57, 94, 169, 0.06);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chart-period-select:hover,
#socialPeriodSelect:hover {
  border-color: #c5d4ef;
}
.chart-period-select:focus,
#socialPeriodSelect:focus {
  outline: none;
  border-color: #395EA9;
  box-shadow: 0 0 0 4px rgba(57, 94, 169, 0.14);
}
.chart-period-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #395EA9;
  font-size: 12px;
}
#socialPeriodSelect {
  max-width: 200px;
}
.script-box {
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  min-height: 80px;
  border: none;
  resize: vertical;
}
.location-panel {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.location-map-wrap {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 280px;
}
.world-map {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background: #f8f9fa;
  overflow: hidden;
}
.location-list-col {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .location-map-wrap,
  .world-map {
    min-height: 240px;
    height: 240px;
  }
}
.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f3f3;
}
.location-row:last-child {
  border-bottom: none;
}
.location-meta {
  flex: 1;
  min-width: 0;
}
.location-meta .name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14px;
}
.location-meta .counts {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.location-share {
  min-width: 90px;
  text-align: right;
}
.location-share .pct {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}
.location-bar {
  height: 6px;
  background: #f1f1f1;
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}
.location-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  border-radius: 99px;
}
.visitor-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.visitor-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.visitor-table th,
.visitor-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.visitor-table th {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  white-space: nowrap;
}
#overviewPanelVisitors .visitor-table th:nth-child(1),
#overviewPanelVisitors .visitor-table td:nth-child(1) {
  width: 16%;
}
#overviewPanelVisitors .visitor-table th:nth-child(2),
#overviewPanelVisitors .visitor-table td:nth-child(2) {
  width: 34%;
}
#overviewPanelVisitors .visitor-table th:nth-child(3),
#overviewPanelVisitors .visitor-table td:nth-child(3) {
  width: 20%;
}
#overviewPanelVisitors .visitor-table th:nth-child(4),
#overviewPanelVisitors .visitor-table td:nth-child(4) {
  width: 30%;
}
.visitor-table td code {
  font-size: 12px;
  color: #1a1a1a;
  background: #f6f7f9;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.visitor-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.visitor-page-summary {
  font-size: 12px;
  color: #888;
}
.visitor-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.visitor-page-info {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  min-width: 88px;
  text-align: center;
}
.visitor-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.visitor-page-btn:hover:not(:disabled) {
  border-color: #395EA9;
  color: #395EA9;
  background: #fff8f3;
}
.visitor-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.visitor-table td.visitor-source-cell,
.visitor-table td.visitor-page-url {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.visitor-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}
.visitor-source i {
  font-size: 14px;
  color: #395EA9;
}
.visitor-ref-url {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.traffic-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.traffic-type-direct {
  background: #f3f4f6;
  color: #4b5563;
}
.traffic-type-social {
  background: #fff4e6;
  color: #c2410c;
}
.traffic-type-referral {
  background: #eff6ff;
  color: #1d4ed8;
}
.bot-name-badge {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.bot-action-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle !important;
  text-align: right;
  padding-right: 8px !important;
}
.btn-unblock-bot {
  all: unset;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 14px 4px 4px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 108, 12, 0.18) !important;
  background: #fff !important;
  color: #221d1a !important;
  font-family: Outfit, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(34, 29, 26, 0.06) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease !important;
}
.btn-unblock-bot__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 108, 12, 0.35);
  flex-shrink: 0;
}
.btn-unblock-bot__icon i {
  font-size: 12px !important;
  line-height: 1 !important;
  color: #fff !important;
}
.btn-unblock-bot__label {
  padding-right: 2px;
  color: #374151;
}
.btn-unblock-bot:hover {
  border-color: rgba(255, 108, 12, 0.45) !important;
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(255, 108, 12, 0.28) !important;
  transform: translateY(-1px);
}
.btn-unblock-bot:hover .btn-unblock-bot__icon {
  background: #fff;
  box-shadow: none;
}
.btn-unblock-bot:hover .btn-unblock-bot__icon i {
  color: #395EA9 !important;
}
.btn-unblock-bot:hover .btn-unblock-bot__label {
  color: #fff;
}
.btn-unblock-bot:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255, 108, 12, 0.2) !important;
}
.btn-unblock-bot:focus-visible {
  outline: 2px solid rgba(255, 108, 12, 0.45) !important;
  outline-offset: 2px;
}
.btn-unblock-bot:disabled,
.btn-unblock-bot.is-loading {
  opacity: 0.7 !important;
  cursor: wait !important;
  transform: none !important;
  box-shadow: 0 1px 4px rgba(34, 29, 26, 0.05) !important;
}
.btn-unblock-bot .bot-btn-spin {
  display: inline-block;
  animation: botBtnSpin 0.8s linear infinite;
}
@keyframes botBtnSpin {
  to {
    transform: rotate(360deg);
  }
}

.report-card {
  padding: 22px 24px;
}
.report-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #221d1a;
}
.report-card-hint {
  font-size: 12.5px;
  color: #888;
}
.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.report-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.report-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.report-switch-slider {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #dfe1e6;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.report-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.report-switch input:checked + .report-switch-slider {
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
}
.report-switch input:checked + .report-switch-slider::after {
  transform: translateX(20px);
}
.report-switch input:focus-visible + .report-switch-slider {
  outline: 2px solid rgba(255, 108, 12, 0.45);
  outline-offset: 2px;
}
.report-switch-text {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  min-width: 24px;
}
.report-emails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-email-input {
  position: relative;
  flex: 1;
  min-width: 0;
}
.report-email-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
}
.report-email-input .form-control {
  padding-left: 42px;
  border-radius: 30px;
  font-size: 16px;
  color: #333;
}
.report-email-input .form-control:focus {
  border-color: #395EA9;
  box-shadow: 0 0 0 0.2rem rgba(255, 108, 12, 0.12);
}
.report-email-remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}
.report-email-remove:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc3545;
}
.report-add-more {
  margin-top: 12px;
  border: 1px dashed rgba(255, 108, 12, 0.45);
  background: #fff8f3;
  color: #395EA9;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.18s ease;
}
.report-add-more:hover {
  background: #395EA9;
  border-style: solid;
  border-color: #395EA9;
  color: #fff;
}
.report-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.report-last-sent {
  font-size: 12px;
  color: #999;
}
.report-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-card-actions .btn {
  font-size: 13px;
}
.report-card-actions .btn-primary-custom {
  padding: 9px 20px;
}
@media (max-width: 576px) {
  .report-card-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .report-card-actions {
    justify-content: stretch;
  }
  .report-card-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
/*=========================================
    PREMIUM ADD DOMAIN MODAL
=========================================*/

#addWebsiteModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 25px;
  z-index: 999999;
  animation: modalFade 0.25s ease;
}

#addWebsiteModal.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.28);
  animation: modalScale 0.28s ease;
  padding: 0;
}

/* Header */

.modal-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0;
  background: linear-gradient(135deg, #395EA9, #5A7EC0);
}

.modal-header h5 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h5 i {
  font-size: 22px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.25s;
}

.modal-close:hover {
  background: #fff;
  color: #395EA9;
  transform: rotate(90deg);
}

/* Body */

.modal-body {
  padding: 26px 24px 8px;
}

.modal-body p {
  color: #6b7280;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.modal-body label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.modal-body input {
  width: 100%;
  height: 54px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  transition: 0.25s;
  background: #f8fafc;
  color: #1f2937;
}

.modal-body input::placeholder {
  color: #9ca3af;
}

.modal-body input:focus {
  border-color: #395EA9;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(57, 94, 169, 0.14);
}

#domainError {
  margin-top: 8px;
  font-size: 13px;
  color: #dc3545;
}

/* Footer */

.modal-footer {
  padding: 18px 24px 24px;
  border-top: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer button,
.modal-btn-cancel,
.modal-btn-confirm {
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-btn-cancel,
#cancelAddWebsite {
  background: #f3f4f6;
  color: #374151;
}

.modal-btn-cancel:hover,
#cancelAddWebsite:hover {
  background: #e5e7eb;
  color: #111827;
}

.modal-btn-confirm,
#confirmAddWebsite {
  background: linear-gradient(135deg, #395EA9, #5A7EC0);
  color: #fff;
  box-shadow: 0 10px 24px rgba(57, 94, 169, 0.28);
}

.modal-btn-confirm:hover,
#confirmAddWebsite:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(57, 94, 169, 0.34);
  color: #fff;
}

.modal-btn-confirm:disabled,
#confirmAddWebsite:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Animation */

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile — full screen */

@media (max-width: 768px) {
  #addWebsiteModal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #addWebsiteModal .modal-box {
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    animation: modalFade 0.22s ease;
  }

  #addWebsiteModal .modal-header {
    padding: 16px 16px max(16px, env(safe-area-inset-top));
    flex-shrink: 0;
  }

  #addWebsiteModal form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  #addWebsiteModal .modal-body {
    padding: 22px 16px 12px;
    flex: 1 1 auto;
  }

  #addWebsiteModal .modal-footer {
    padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    margin-top: auto;
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
  }

  #addWebsiteModal .modal-footer button,
  #addWebsiteModal .modal-btn-cancel,
  #addWebsiteModal .modal-btn-confirm {
    width: 100%;
  }
}
/* Dashboard Loader */

#dashboardLoader {
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  padding: 40px;
}

.dash-loader {
  width: 320px;
  text-align: center;
}

.dash-loader-graph {
  width: 100%;
  height: 80px;
}

.dash-loader-graph-svg {
  width: 100%;
  height: 100%;
}

.dash-loader-graph-line {
  fill: none;
  stroke: #395EA9;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: dashGraph 2s linear infinite;
}

.dash-loader-graph-area {
  fill: url(#dashLoaderFill);
  opacity: 0.5;
  animation: dashArea 2s ease-in-out infinite;
}

@keyframes dashGraph {
  from {
    stroke-dashoffset: 350;
  }

  to {
    stroke-dashoffset: -350;
  }
}

@keyframes dashArea {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.7;
  }
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}
/* ==========================================
   RESPONSIVE CSS
========================================== */

/* Laptop */
@media (max-width:1200px){

    .dash-main{
        padding:20px;
    }

    .dash-card,
    .chart-card{
        padding:20px;
    }

}


/* Tablet */
@media (max-width:991px){

    .dash-sidebar{
        position:fixed;
        left:0;
        top:72px;
        width:260px;
        height:calc(100vh - 72px);
        z-index:999;
        transform: translateX(-105%);
        opacity: 1;
        pointer-events: none;
        padding: 20px 14px;
        border-right: 1px solid #eee;
        box-shadow:0 10px 35px rgba(0,0,0,.15);
        transition: transform .3s ease;
    }

    .dash-sidebar.is-open{
        transform: translateX(0);
        pointer-events: auto;
    }

    .dash-sidebar-backdrop {
      display: block;
      position: fixed;
      inset: 72px 0 0 0;
      background: rgba(15, 23, 42, 0.35);
      z-index: 998;
      border: 0;
      padding: 0;
      cursor: pointer;
    }

    .dash-main{
        width:100%;
        padding:18px;
    }

    .dash-layout{
        display:block;
    }

    .chart-card-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .chart-period-bar{
        width:100%;
    }

    .chart-period-select-wrap{
        width:100%;
        max-width:none;
    }

    .chart-period-select{
        width:100%;
        max-width:none;
    }

}


/* Mobile */
@media (max-width:768px){

    .dash-header{
        padding:14px 16px;
    }

    .dash-header h4{
        font-size:17px;
    }

    .header-right{
        gap:8px;
    }

    .logout-btn{
        padding:6px 12px;
        font-size:12px;
    }

    .sidebar-link{
        font-size:13px;
    }

    .sidebar-link.sidebar-sub{
        font-size:12px;
    }

    .dash-main{
        padding:15px;
        font-size:15px;
    }

    .dash-card,
    .chart-card{
        padding:16px;
        border-radius:14px;
    }

    .dash-card h5,
    .chart-card h5{
        font-size:15px;
    }

    .welcome-card h3{
        font-size:21px;
    }

    .stat-card{
        margin-bottom:10px;
        padding:12px 12px 10px;
        border-radius:12px;
    }

    .stat-card .stat-icon{
        width:32px;
        height:32px;
        border-radius:8px;
        font-size:15px;
        margin-bottom:8px;
    }

    .stat-card .stat-value{
        font-size:20px;
    }

    .stat-card .stat-label{
        font-size:11px;
        margin-top:2px;
    }

    .stat-card .stat-sub{
        font-size:10px;
        margin-top:3px;
    }

    .chart-period-bar{
        width:100%;
        margin-left:0;
        gap:8px;
    }

    .chart-period-label{
        padding:7px 10px;
        font-size:11px;
    }

    .chart-period-select-wrap{
        flex:1 1 auto;
        min-width:0;
        max-width:none;
    }

    .chart-period-select{
        max-width:none;
        height:42px;
        font-size:13px;
        border-radius:11px;
    }

    .dash-tab{
        font-size:13px;
    }

    .settings-row{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .settings-value{
        text-align:left;
    }

    .location-panel{
        flex-direction:column;
    }

    .location-map-wrap,
    .location-list-col{
        width:100%;
    }

}


/* Small Mobile */
@media (max-width:576px){

    .dash-header{
        flex-wrap:wrap;
        gap:12px;
    }

    .header-right{
       
        justify-content:flex-end;
    }

    .dash-tabs{
        overflow-x:auto;
        white-space:nowrap;
    }

    .dash-tab{
        flex:none;
        font-size:12px;
        padding:10px 14px;
    }

    .visitor-pagination{
        flex-direction:column;
        align-items:flex-start;
    }

    .visitor-page-controls{
        width:100%;
        justify-content:space-between;
    }

    .visitor-table{
        min-width:650px;
    }

    .script-box{
        font-size:12px;
    }

    .chart-wrap{
        height:220px;
    }

    .profile-circle{
        width:36px;
        height:36px;
        font-size:14px;
    }

}


/* Very Small Devices */
@media (max-width:400px){

    .dash-main{
        padding:12px;
    }

    .dash-card,
    .chart-card{
        padding:14px;
    }

    .welcome-card h3{
        font-size:17px;
    }

    .stat-card .stat-value{
        font-size:19px;
    }

}

#locationViewAllBtn{
    background: #FF7B23;
    color: #fff;
    border-radius: 30px;
    padding: 9px;
    border: none;
}
/* ============ Email Reports panel ============ */
.reports-intro-card p {
  margin-bottom: 0;
}
.report-card {
  padding: 22px 26px;
}
.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.report-card-title h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #221d1a;
  margin-bottom: 4px;
}
.report-card-desc {
  font-size: 0.82rem;
  color: #8a8a8a;
  margin: 0;
}
.report-card .report-switch {
  padding-left: 2.6em;
  min-height: auto;
  margin: 4px 0 0;
}
.report-card .report-switch .form-check-input {
  width: 2.4em;
  height: 1.25em;
  cursor: pointer;
  margin-left: -2.6em;
  background-color: #e2e2e6;
  border-color: #d5d5da;
  box-shadow: none;
}
.report-card .report-switch .form-check-input:checked {
  background-color: #395EA9;
  border-color: #395EA9;
}
.report-card .report-switch .form-check-input:focus {
  border-color: #ffb17a;
  box-shadow: 0 0 0 0.2rem rgba(255, 108, 12, 0.18);
}
.report-status {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #707070;
  background: #f8f9fb;
  border: 1px solid #ececf0;
  border-radius: 10px;
  padding: 8px 12px;
}
.report-status i {
  color: #395EA9;
}
.report-status-note {
  color: #9a9a9a;
}
.report-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  margin: 18px 0 8px;
}
.report-emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-email-row .form-control {
  flex: 1 1 auto;
}
.report-email-remove {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #ececf0;
  background: #f8f9fb;
  color: #b04a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.report-email-remove:hover {
  background: #ffe9e4;
  color: #d9482f;
}
.report-add-more {
  margin-top: 10px;
  background: transparent;
  border: 1px dashed #ffc79c;
  color: #395EA9;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 8px 14px;
  transition: background 0.15s, border-color 0.15s;
}
.report-add-more:hover {
  background: #fff3ea;
  border-color: #ff9a52;
}
.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.report-card-actions .btn {
  border-radius: 10px;
  font-size: 0.88rem;
}
.report-card-actions .report-preview,
.report-card-actions .report-send {
  border: 1px solid #ececf0;
}
.reports-mail-alert code {
  color: #b04a00;
}
@media (max-width: 575.98px) {
  .report-card-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Toast / alert notifications */
.toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}
.dash-toast {
  pointer-events: auto;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #ff7f2e;
  animation: dashToastIn 0.2s ease-out;
}
.dash-toast.success {
  border-left-color: #22a06b;
}
.dash-toast.error {
  border-left-color: #e5484d;
}
@keyframes dashToastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 575.98px) {
  .toast-wrap {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}


/* ===== Settings page ===== */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background:
    radial-gradient(1200px 180px at 0% 0%, rgba(57, 94, 169, 0.12), transparent 60%),
    #fff;
}
.settings-hero__main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.settings-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #395EA9 0%, #5A7EC0 100%);
  box-shadow: 0 12px 28px rgba(57, 94, 169, 0.28);
}
.settings-kicker {
  margin: 0 0 4px;
  color: #395EA9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.settings-hero__title {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2937;
}
.settings-hero__email {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  word-break: break-word;
}
.settings-hero__stats {
  display: flex;
  gap: 12px;
}
.settings-stat {
  min-width: 108px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f8fc;
  border: 1px solid #e8eef7;
  text-align: center;
}
.settings-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  color: #395EA9;
  font-weight: 700;
}
.settings-stat span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}
.settings-panel__head {
  margin-bottom: 18px;
}
.settings-panel__head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}
.settings-panel__head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
.settings-panel__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.settings-details {
  margin: 0;
}
.settings-details__row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}
.settings-details__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.settings-details__row:first-child {
  padding-top: 0;
}
.settings-details dt {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}
.settings-details dd {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}
.settings-panel--plan {
  background:
    linear-gradient(160deg, rgba(57, 94, 169, 0.08), transparent 42%),
    #fff;
}
.settings-plan-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5ecf7;
  margin-bottom: 14px;
}
.settings-plan-badge i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #395EA9, #5A7EC0);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.settings-plan-badge strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
}
.settings-plan-badge span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}
.settings-plan-points {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}
.settings-plan-points li + li {
  margin-top: 6px;
}
.settings-domains-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  background: #fff;
}
.settings-domains-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin: 0;
}
.settings-domains-table thead th {
  background: #f5f8fc;
  color: #395EA9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf5;
  white-space: nowrap;
}
.settings-domains-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #1f2937;
  font-size: 13px;
}
.settings-domains-table tbody tr:last-child td {
  border-bottom: 0;
}
.settings-domains-table tbody tr:hover {
  background: #fafcff;
}
.settings-domains-table tbody tr.is-renew {
  background: #fffaf3;
}
.settings-domains-table__domain {
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}
.settings-domains-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-domains-table__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  font-weight: 600;
}
.settings-quota--table {
  min-width: 140px;
}
.settings-quota--table strong {
  display: block;
  font-size: 12px;
  color: #1f2937;
  margin-bottom: 6px;
}
.settings-quota--table .settings-quota__hint {
  display: block;
  margin-top: 4px;
}
.settings-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.settings-status.is-ok {
  background: #e8f8ef;
  color: #15803d;
}
.settings-status.is-warn {
  background: #fff4e5;
  color: #b45309;
}
.settings-status.is-muted {
  background: #f3f4f6;
  color: #6b7280;
}
.settings-paid-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.28);
}
.settings-domains-table tbody tr.is-paid {
  box-shadow: inset 3px 0 0 #16a34a;
}
.settings-quota__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #4b5563;
}
.settings-quota__row strong {
  color: #1f2937;
  font-size: 12px;
}
.settings-quota__bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.settings-quota__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #395EA9, #5A7EC0);
}
.settings-quota__hint {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 11px;
}
.settings-domains-table .btn-outline-primary {
  border: 1.5px solid #395EA9;
  color: #395EA9;
  background: #fff;
}
.settings-domains-table .btn-outline-primary:hover {
  background: #eef3fb;
  color: #2f4f91;
}
.settings-domains-table .btn-outline-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.settings-empty {
  text-align: center;
  padding: 36px 16px 18px;
  color: #6b7280;
}
.settings-empty i {
  font-size: 28px;
  color: #395EA9;
}
.settings-empty h3 {
  margin: 10px 0 6px;
  color: #1f2937;
  font-size: 18px;
}
.settings-empty p {
  margin: 0 0 16px;
  font-size: 13px;
}
@media (max-width: 991px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .settings-hero__avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 24px;
  }
  .settings-hero__title {
    font-size: 21px;
  }
  .settings-stat {
    min-width: 92px;
    padding: 12px;
  }
  .settings-stat strong {
    font-size: 22px;
  }
  .settings-details__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .settings-panel__head h2 {
    font-size: 17px;
  }
  .settings-domains-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .settings-domains-table {
    min-width: 680px;
  }
  .settings-domains-table thead th {
    font-size: 11px;
    padding: 10px 12px;
  }
  .settings-domains-table tbody td {
    padding: 12px;
    font-size: 12px;
  }
  .settings-domains-table__domain {
    font-size: 13px;
  }
  .settings-domains-table__actions .btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}
