.protax-public-form-wrap {
  max-width: 1040px;
  margin: 28px auto;
  padding: 0 14px;
}

.protax-public-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.protax-public-head {
  margin-bottom: 28px;
}

.protax-public-head h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 700;
}

.protax-public-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

.protax-public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.protax-public-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protax-public-group--full {
  grid-column: 1 / -1;
}

.protax-public-label {
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
}

.protax-public-required {
  color: #dc2626;
  font-weight: 700;
}

.protax-public-group input[type="text"],
.protax-public-group input[type="email"],
.protax-public-group input[type="password"],
.protax-public-group input[type="date"],
.protax-public-group input[type="file"],
.protax-public-group textarea,
.protax-public-group select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.protax-public-group input[type="text"]:focus,
.protax-public-group input[type="email"]:focus,
.protax-public-group input[type="password"]:focus,
.protax-public-group input[type="date"]:focus,
.protax-public-group input[type="file"]:focus,
.protax-public-group textarea:focus,
.protax-public-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.protax-public-group textarea {
  min-height: 140px;
  resize: vertical;
}

.protax-public-group input.protax-input-error,
.protax-public-group textarea.protax-input-error,
.protax-public-group select.protax-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
  background: #fffafa;
}

.protax-public-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.protax-public-error-text {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #dc2626;
  font-weight: 500;
}

.protax-public-choice-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.protax-public-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

.protax-public-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  color: #334155;
  font-size: 14px;
}

.protax-public-consent input[type="checkbox"] {
  margin-top: 3px;
}

.protax-public-consent a {
  color: #16a34a;
  text-decoration: underline;
}

.protax-public-address-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.protax-public-address-wrap .protax-public-group {
  margin: 0;
}

.protax-public-address-wrap .protax-public-group--full,
.protax-public-address-wrap .protax-address-full {
  grid-column: 1 / -1;
}

.protax-public-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.protax-public-submit {
  min-height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.protax-public-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.protax-public-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.protax-public-extra-links {
  margin-top: 16px;
}

.protax-public-link {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.protax-public-link:hover {
  text-decoration: underline;
}

.protax-public-response {
  margin-top: 18px;
}

.protax-public-notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}

.protax-public-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.protax-public-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Login specific polish */
body .protax-login-page .protax-public-form-wrap,
body .page-login .protax-public-form-wrap {
  max-width: 920px;
}

body .protax-login-page .protax-public-form,
body .page-login .protax-public-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 34px 28px;
}

body .protax-login-page .protax-public-grid,
body .page-login .protax-public-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body .protax-login-page .protax-public-actions,
body .page-login .protax-public-actions {
  margin-top: 26px;
}

body .protax-login-page .protax-public-extra-links,
body .page-login .protax-public-extra-links {
  margin-top: 14px;
  text-align: left;
}

/* Optional utility if you add this class directly on form wrapper */
.protax-public-form.protax-login-form {
  max-width: 720px;
  margin: 0 auto;
}

.protax-public-form.protax-login-form .protax-public-actions {
  margin-top: 26px;
}

.protax-public-form.protax-login-form+.protax-public-extra-links,
.protax-public-form-wrap .protax-public-extra-links {
  text-align: left;
}

@media (max-width: 768px) {
  .protax-public-form-wrap {
    margin: 18px auto;
    padding: 0 12px;
  }

  .protax-public-form {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .protax-public-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .protax-public-address-wrap {
    grid-template-columns: 1fr;
  }

  .protax-public-head h3 {
    font-size: 22px;
  }

  .protax-public-actions {
    justify-content: stretch;
  }

  .protax-public-submit {
    width: 100%;
  }

  body .protax-login-page .protax-public-extra-links,
  body .page-login .protax-public-extra-links,
  .protax-public-form-wrap .protax-public-extra-links {
    text-align: center;
  }

}

.protax-profile-menu {
  position: relative;
  display: inline-block;
}

.protax-profile-menu__toggle {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.protax-profile-menu__toggle:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.protax-profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 9999;
}

.protax-profile-menu.is-open .protax-profile-menu__dropdown {
  display: block;
}

.protax-profile-menu__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.protax-profile-menu__link:hover {
  background: #f8fafc;
  color: #2563eb;
}

/* ===== PROTAX GLASSMORPHISM SAAS DASHBOARD ===== */
/* =========================================================
   PROTAX MY ACCOUNT - FORCE CLEAN DASHBOARD STYLES
   ========================================================= */

.protax-account-shell,
.protax-account-shell * {
  box-sizing: border-box;
}

.protax-account-shell {
  width: 100%;
  max-width: 1280px;
  margin: 30px auto;
  display: flex;
  min-height: 820px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, #08141d 0%, #0b1f2a 35%, #102b39 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 12, 27, 0.35);
  position: relative;
}

.protax-account-sidebar {
  width: 280px;
  flex: 0 0 280px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.protax-account-main {
  flex: 1;
  min-width: 0;
  padding: 28px;
  position: relative;
  z-index: 2;
}

.protax-account-topbar {
  margin-bottom: 22px;
}

.protax-account-title {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
  color: #f8fafc;
  font-weight: 700;
}

.protax-account-subtitle {
  margin: 0;
  color: rgba(248, 250, 252, 0.76);
  line-height: 1.7;
}

.protax-account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.protax-account-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow:
    0 20px 45px rgba(2, 12, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.protax-account-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.3;
}

.protax-account-card p,
.protax-account-card li,
.protax-account-card div,
.protax-account-card span,
.protax-account-card label {
  color: rgba(248, 250, 252, 0.88);
}

.protax-account-card strong {
  color: #b18021;
  font-weight: bold;
}

.protax-profile-summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.protax-profile-summary__image img,
.protax-profile-summary__image .avatar {

  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(212, 175, 55, 0.45);
}

.protax-profile-summary__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.protax-profile-image-form {
  margin-top: 12px;
}

/* -----------------------------
   FORM LAYOUT INSIDE MY ACCOUNT
   ----------------------------- */
.protax-account-card .protax-public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.protax-account-card .protax-public-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.protax-account-card .protax-public-group--full {
  grid-column: 1 / -1;
}

.protax-account-card .protax-public-label {
  font-weight: 700;
  color: #ffffff !important;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.protax-account-card .protax-public-required {
  color: #ff8a8a;
  font-weight: 700;
}

.protax-account-card .protax-public-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.62) !important;
}

.protax-account-card .protax-public-error-text {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #ff9a9a !important;
  font-weight: 500;
}

/* inputs/select/textarea */
.protax-account-card input[type="text"],
.protax-account-card input[type="email"],
.protax-account-card input[type="password"],
.protax-account-card input[type="date"],
.protax-account-card input[type="file"],
.protax-account-card select,
.protax-account-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a !important;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
}

.protax-account-card textarea {
  min-height: 120px;
  resize: vertical;
}

.protax-account-card input[type="text"]::placeholder,
.protax-account-card input[type="email"]::placeholder,
.protax-account-card input[type="password"]::placeholder,
.protax-account-card input[type="date"]::placeholder,
.protax-account-card textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.protax-account-card input[type="text"]:focus,
.protax-account-card input[type="email"]:focus,
.protax-account-card input[type="password"]:focus,
.protax-account-card input[type="date"]:focus,
.protax-account-card input[type="file"]:focus,
.protax-account-card select:focus,
.protax-account-card textarea:focus {
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.protax-account-card input.protax-input-error,
.protax-account-card textarea.protax-input-error,
.protax-account-card select.protax-input-error {
  border-color: #ff8a8a !important;
  box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.14) !important;
  background: #fff7f7 !important;
}

/* choices */
.protax-account-card .protax-public-choice-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.protax-account-card .protax-public-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 250, 252, 0.88);
  font-size: 14px;
}

.protax-account-card .protax-public-choice input[type="radio"],
.protax-account-card .protax-public-choice input[type="checkbox"] {
  margin: 0;
  accent-color: #d4af37;
}

/* address */
.protax-account-card .protax-public-address-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.protax-account-card .protax-address-full {
  grid-column: 1 / -1;
}

/* actions/buttons */
.protax-account-card .protax-public-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.protax-account-card .protax-public-submit {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.protax-account-card .protax-public-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.protax-account-card .protax-public-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* notices */
.protax-account-card .protax-public-response {
  margin-top: 16px;
}

.protax-account-card .protax-public-notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}

.protax-account-card .protax-public-success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.30);
  color: #dcfce7 !important;
}

.protax-account-card .protax-public-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #fee2e2 !important;
}

/* sidebar brand + nav cleanup */
.protax-account-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.protax-account-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4af37, #f4de8c);
  color: #08141d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

.protax-account-brand__title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.protax-account-brand__sub {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.7);
}

.protax-account-usercard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.protax-account-usercard__avatar img,
.protax-account-usercard__avatar .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(212, 175, 55, 0.55);
}

.protax-account-usercard__meta strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.protax-account-usercard__meta span {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.72);
  word-break: break-word;
}

.protax-account-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protax-account-nav__link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(248, 250, 252, 0.82);
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.protax-account-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.protax-account-nav__link.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(244, 222, 140, 0.92));
  color: #08141d !important;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.24);
}

.protax-account-nav__link--logout {
  margin-top: 8px;
  color: #fecaca !important;
}

/* responsive */
@media (max-width: 1100px) {
  .protax-account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .protax-account-shell {
    flex-direction: column;
    min-height: auto;
    margin: 20px auto;
  }

  .protax-account-sidebar {
    width: 100%;
    flex: 0 0 auto;
  }

  .protax-account-main {
    padding: 20px;
  }

  .protax-account-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {

  .protax-account-card .protax-public-grid,
  .protax-account-card .protax-public-address-wrap {
    grid-template-columns: 1fr;
  }

  .protax-profile-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

.protax-address-section-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.protax-upload-history {
  overflow-x: auto;
}

.protax-upload-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(248, 250, 252, 0.88);
}

.protax-upload-table th,
.protax-upload-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.protax-upload-table th {
  color: #f4de8c;
  font-weight: 700;
}

.protax-upload-table td a {
  color: #93c5fd;
  text-decoration: none;
}

.protax-upload-table td a:hover {
  text-decoration: underline;
}

.protax-upload-history {
  overflow-x: auto;
}

.protax-upload-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(248, 250, 252, 0.88);
}

.protax-upload-table th,
.protax-upload-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  vertical-align: middle;
}

.protax-upload-table th {
  color: #f4de8c;
  font-weight: 700;
}

.protax-upload-file-name {
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

.protax-upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.protax-upload-badge--pending {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}

.protax-upload-badge--approved {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.protax-upload-badge--rejected {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.protax-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protax-upload-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f4de8c;
  transition: all 0.2s ease;
}

.protax-upload-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.protax-upload-link--secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.protax-upload-help-box {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.88);
}

.protax-upload-help-box p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.protax-upload-help-list {
  margin: 0;
  padding-left: 18px;
}

.protax-upload-help-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.protax-upload-status-guide {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-upload-status-guide h4 {
  margin: 0 0 10px;
  color: #f4de8c;
}

.protax-upload-status-guide ul {
  margin: 0;
  padding-left: 18px;
}

.protax-upload-status-guide li {
  margin-bottom: 8px;
  color: rgba(248, 250, 252, 0.86);
}

.protax-subscription-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.protax-subscription-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
}

.protax-subscription-summary__row span {
  color: rgba(248, 250, 252, 0.74);
}

.protax-subscription-summary__row strong {
  color: #ffffff;
}

.protax-subscription-status--active {
  color: #86efac;
}

.protax-subscription-status--inactive {
  color: #fca5a5;
}

.protax-subscription-features {
  margin: 0;
  padding-left: 18px;
}

.protax-subscription-features li {
  margin-bottom: 10px;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.7;
}

.protax-upload-plan-info {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-upload-plan-info p {
  margin: 0 0 8px;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.6;
}

.protax-upload-plan-info p:last-child {
  margin-bottom: 0;
}

.protax-account-grid--uploads {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.4fr);
}

.protax-upload-card {
  min-width: 0;
}

.protax-upload-stats {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.protax-upload-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.protax-upload-stat__label {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.68);
  margin-bottom: 6px;
}

.protax-upload-stat__value {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: #ffffff;
}

.protax-upload-form-box {
  margin-top: 8px;
}

.protax-upload-dropzone {
  position: relative;
  border: 2px dashed rgba(244, 222, 140, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 22px 18px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.protax-upload-dropzone:hover {
  border-color: rgba(244, 222, 140, 0.60);
  background: rgba(255, 255, 255, 0.09);
}

.protax-upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.protax-upload-dropzone__content {
  text-align: center;
  pointer-events: none;
}

.protax-upload-dropzone__content strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 6px;
}

.protax-upload-dropzone__content span {
  display: block;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.6;
}

.protax-upload-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.protax-upload-history-subtitle {
  margin: 6px 0 0;
  color: rgba(248, 250, 252, 0.70);
  line-height: 1.6;
  font-size: 14px;
}

.protax-upload-history-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protax-upload-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.protax-upload-mini-badge--pending {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}

.protax-upload-mini-badge--approved {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.protax-upload-mini-badge--rejected {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.protax-upload-empty-state {
  padding: 34px 20px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-upload-empty-state__icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 14px;
}

.protax-upload-empty-state h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.protax-upload-empty-state p {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.7;
}

.protax-upload-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.protax-upload-table td {
  min-width: 90px;
}

.protax-upload-file-name {
  max-width: 220px;
}

@media (max-width: 1200px) {
  .protax-account-grid--uploads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .protax-upload-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protax-upload-history-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .protax-upload-stats {
    grid-template-columns: 1fr;
  }

  .protax-upload-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .protax-upload-link {
    width: 100%;
  }

  .protax-upload-table th,
  .protax-upload-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
}

.protax-profile-readonly-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.protax-profile-readonly-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-profile-readonly-item__label {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.68);
  margin-bottom: 6px;
}

.protax-profile-readonly-item__value {
  display: block;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 767px) {
  .protax-profile-readonly-box {
    grid-template-columns: 1fr;
  }
}

.protax-account-grid--subscription {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}

.protax-subscription-topstats {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.protax-subscription-topstat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.protax-subscription-topstat__label {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.68);
  margin-bottom: 6px;
}

.protax-subscription-topstat__value {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  color: #ffffff;
  word-break: break-word;
}

.protax-subscription-status--trial {
  color: #fcd34d !important;
}

.protax-subscription-status--active {
  color: #86efac !important;
}

.protax-subscription-status--expired {
  color: #fca5a5 !important;
}

.protax-subscription-status--inactive {
  color: #cbd5e1 !important;
}

.protax-payment-status--paid {
  color: #86efac !important;
}

.protax-payment-status--pending {
  color: #fcd34d !important;
}

.protax-payment-status--failed {
  color: #fca5a5 !important;
}

.protax-subscription-empty-state {
  padding: 34px 20px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-subscription-empty-state__icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 14px;
}

.protax-subscription-empty-state h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.protax-subscription-empty-state p {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .protax-account-grid--subscription {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .protax-subscription-topstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .protax-subscription-topstats {
    grid-template-columns: 1fr;
  }
}

.protax-account-card .protax-input-error,
.protax-account-card input.protax-input-error,
.protax-account-card select.protax-input-error,
.protax-account-card textarea.protax-input-error {
  border: 1px solid #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
  background: #fff5f5 !important;
}

.protax-account-card .protax-public-error-text {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #fca5a5 !important;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.protax-account-card .protax-public-group.protax-has-error input,
.protax-account-card .protax-public-group.protax-has-error select,
.protax-account-card .protax-public-group.protax-has-error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
  background: #fff5f5 !important;
}

/* ===== PROTAX GLASSMORPHISM SAAS DASHBOARD ===== */


/* =========================================
   AI ASSISTANT — SAAS CHAT UI
========================================= */

.protax-ai-page {
  padding: 0 !important;
  overflow: hidden;
}

.protax-ai-page__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-ai-page__intro {
  flex: 1;
  min-width: 0;
}

.protax-ai-page__intro h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff;
}

.protax-ai-page__intro p {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.7;
  max-width: 760px;
}

.protax-ai-page__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.protax-ai-stat-box {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.protax-ai-stat-box__label {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.66);
  margin-bottom: 6px;
}

.protax-ai-stat-box strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.protax-ai-stat-box--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(29, 78, 216, 0.16));
  border-color: rgba(147, 197, 253, 0.22);
}

.protax-ai-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  align-items: start;
}

.protax-ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.protax-ai-sidebar__card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.protax-ai-sidebar__header {
  margin-bottom: 14px;
}

.protax-ai-sidebar__header h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.protax-ai-sidebar__header p {
  margin: 0;
  color: rgba(248, 250, 252, 0.68);
  line-height: 1.6;
  font-size: 13px;
}

.protax-ai-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protax-ai-field label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.protax-ai-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a !important;
  font-size: 14px;
}

.protax-ai-field select:focus {
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
  outline: none;
}

.protax-ai-secondary-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.protax-ai-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.protax-ai-secondary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.protax-ai-live-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.84);
  font-size: 13px;
  line-height: 1.6;
}

.protax-ai-live-status.is-idle {
  color: rgba(248, 250, 252, 0.84);
}

.protax-ai-live-status.is-loading {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(37, 99, 235, 0.12);
}

.protax-ai-live-status.is-success {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.12);
}

.protax-ai-live-status.is-error {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.12);
}

.protax-ai-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.protax-ai-history-list::-webkit-scrollbar {
  width: 5px;
}

.protax-ai-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.protax-ai-history-empty {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 250, 252, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.protax-ai-history-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.protax-ai-history-item__authority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: #f4de8c;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.protax-ai-history-item__question {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.protax-ai-history-item__time {
  color: rgba(248, 250, 252, 0.54);
  font-size: 11px;
}

.protax-ai-main {
  min-width: 0;
}

.protax-ai-chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 700px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.protax-ai-chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.protax-ai-chat-header h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 18px;
}

.protax-ai-chat-header p {
  margin: 0;
  color: rgba(248, 250, 252, 0.66);
  font-size: 13px;
}

.protax-ai-chat-window {
  flex: 1;
  min-height: 520px;
  max-height: 520px;
  overflow-y: auto;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #edf3f8;
  display: flex;
  flex-direction: column;
}

.protax-ai-chat-window::-webkit-scrollbar {
  width: 6px;
}

.protax-ai-chat-window::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.protax-ai-welcome {
  max-width: 560px;
  margin: auto;
  text-align: center;
  color: #475569;
}

.protax-ai-welcome__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.protax-ai-welcome h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.protax-ai-welcome p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #0f172a;
}

.protax-ai-welcome ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.protax-ai-welcome li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.protax-ai-msg {
  display: flex;
  margin-bottom: 16px;
}

.protax-ai-msg--user {
  justify-content: flex-end;
}

.protax-ai-msg--assistant {
  justify-content: flex-start;
}

.protax-ai-msg__bubble {
  max-width: 74%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.75;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  word-break: break-word;
}

.protax-ai-msg--user .protax-ai-msg__bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.protax-ai-msg--assistant .protax-ai-msg__bubble {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  color: #0f172a;
  border-bottom-left-radius: 6px;
}

.protax-ai-msg--assistant .protax-ai-msg__bubble .protax-ai-stream {
  color: #0f172a;
}

.protax-ai-msg__bubble--error {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}

.protax-ai-msg__bubble--thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}

.protax-ai-dot {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: protaxAiThinking 1.4s infinite ease-in-out;
}

.protax-ai-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.protax-ai-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes protaxAiThinking {
  0% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }

  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
}

.protax-ai-error-banner {
  margin: 16px 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.6;
}

.protax-ai-composer {
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.protax-ai-composer__input textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a !important;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.protax-ai-composer__input textarea::placeholder {
  color: #64748b;
}

.protax-ai-composer__input textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.protax-ai-composer__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
}

.protax-ai-send-btn {
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.protax-ai-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.protax-ai-send-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .protax-ai-layout {
    grid-template-columns: 1fr;
  }

  .protax-ai-sidebar {
    order: 2;
  }

  .protax-ai-main {
    order: 1;
  }
}

@media (max-width: 991px) {
  .protax-ai-page__top {
    flex-direction: column;
  }

  .protax-ai-page__stats {
    width: 100%;
  }

  .protax-ai-stat-box {
    flex: 1;
  }

  .protax-ai-chat-shell {
    min-height: 620px;
  }
}

@media (max-width: 767px) {

  .protax-ai-page__top,
  .protax-ai-layout {
    padding: 16px;
  }

  .protax-ai-page__intro h2 {
    font-size: 22px;
  }

  .protax-ai-page__stats {
    flex-direction: column;
    width: 100%;
  }

  .protax-ai-stat-box {
    width: 100%;
  }

  .protax-ai-chat-window {
    min-height: 420px;
    max-height: 420px;
    padding: 16px;
  }

  .protax-ai-msg__bubble {
    max-width: 90%;
  }

  .protax-ai-composer {
    padding: 16px;
  }

  .protax-ai-composer__input textarea {
    min-height: 96px;
  }
}

#protax-ai-chat-window .protax-ai-welcome ul li {
  color: #0f172a;
}

.protax-latest-document-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.protax-latest-document-box__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protax-latest-document-box__meta strong {
  font-size: 14px;
  color: #0f172a;
}

.protax-latest-document-box__meta span {
  font-size: 13px;
  color: #475569;
  word-break: break-word;
}

.protax-upload-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.protax-upload-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.protax-upload-page-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.protax-upload-page-link.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.protax-document-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.protax-document-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.protax-document-preview-modal__dialog {
  position: relative;
  width: min(1100px, 94vw);
  height: min(88vh, 820px);
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.protax-document-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.protax-document-preview-modal__header h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.protax-document-preview-modal__close {
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.protax-document-preview-modal__body {
  flex: 1;
  background: #f8fafc;
}

#protax-document-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

body.protax-modal-open {
  overflow: hidden;
}

/* ===== TAX HISTORY UI FIX ===== */

.protax-tax-history-page {
  padding: 0 !important;
  overflow: hidden;
}

.protax-tax-history-head {
  display: block;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-tax-history-head h2 {
  margin: 0 0 8px !important;
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff !important;
}

.protax-tax-history-head p {
  margin: 0 !important;
  color: rgba(248, 250, 252, 0.78) !important;
  line-height: 1.7;
  max-width: 760px;
}

.protax-tax-history-page .protax-tax-history-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px 0;
  margin: 0;
}

.protax-tax-history-page .protax-tax-history-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.protax-tax-history-page .protax-tax-history-filter label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
}

.protax-tax-history-page .protax-tax-history-filter select {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
}

.protax-tax-history-page #protax-tax-history-list {
  padding: 18px 24px 24px;
}

.protax-tax-history-page .protax-tax-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.protax-tax-history-page .protax-tax-history-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.protax-tax-history-page .protax-tax-history-card__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.protax-tax-history-page .protax-tax-history-card__title-wrap h4 {
  margin: 0 0 10px !important;
  font-size: 20px;
  color: #0f172a !important;
}

.protax-tax-history-page .protax-tax-history-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b !important;
  font-size: 13px;
}

.protax-tax-history-page .protax-tax-history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 700;
}

.protax-tax-history-page .protax-tax-history-card__amount {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a !important;
  white-space: nowrap;
}

.protax-tax-history-page .protax-tax-history-card__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.protax-tax-history-page .protax-tax-history-card__summary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.protax-tax-history-page .protax-tax-history-card__summary div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.protax-tax-history-page .protax-tax-history-card__summary span {
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b !important;
  font-weight: 600;
}

.protax-tax-history-page .protax-tax-history-card__summary strong {
  font-size: 15px;
  color: #0f172a !important;
}

.protax-tax-history-page .protax-tax-history-view-btn {
  border: none;
  background: #2563eb;
  color: #fff !important;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.protax-tax-history-page .protax-tax-history-view-btn:hover {
  background: #1d4ed8;
}

.protax-tax-history-page .protax-tax-history-detail {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.protax-tax-history-page .protax-tax-history-detail__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.protax-tax-history-page .protax-tax-history-detail__summary div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.protax-tax-history-page .protax-tax-history-detail__summary span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b !important;
  margin-bottom: 6px;
  font-weight: 600;
}

.protax-tax-history-page .protax-tax-history-detail__summary strong {
  color: #0f172a !important;
}

.protax-tax-history-page .protax-tax-history-detail__table-wrap {
  overflow-x: auto;
}

.protax-tax-history-page .protax-tax-history-detail__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.protax-tax-history-page .protax-tax-history-detail__table th,
.protax-tax-history-page .protax-tax-history-detail__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.protax-tax-history-page .protax-tax-history-detail__table th {
  background: #f8fafc;
  color: #334155 !important;
  font-weight: 700;
}

.protax-tax-history-page .protax-tax-history-detail__table td {
  color: #0f172a !important;
}

.protax-tax-history-page .protax-tax-history-empty,
.protax-tax-history-page .protax-tax-history-detail__loading,
.protax-tax-history-page .protax-tax-history-detail__error {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b !important;
}

@media (max-width: 991px) {

  .protax-tax-history-page .protax-tax-history-card__top,
  .protax-tax-history-page .protax-tax-history-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .protax-tax-history-page .protax-tax-history-detail__summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .protax-tax-history-page .protax-tax-history-head,
  .protax-tax-history-page .protax-tax-history-page .protax-tax-history-toolbar,
  .protax-tax-history-page #protax-tax-history-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .protax-tax-history-page .protax-tax-history-detail__summary {
    grid-template-columns: 1fr;
  }
}

.protax-tax-history-card__top .protax-tax-history-card__meta span {
  color: #000 !important;
}

.protax-tax-history-card__amount small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

/* =========================================================
   PROTAX TAX INBOX
   Separate stylesheet to avoid conflicts with public.css
   ========================================================= */

.protax-tax-inbox-page {
  padding: 0 !important;
  overflow: hidden;
}

.protax-tax-inbox-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  flex-wrap: wrap;
}

.protax-tax-inbox-intro {
  flex: 1;
  min-width: 0;
}

.protax-tax-inbox-intro h2 {
  margin: 0 0 8px !important;
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff !important;
}

.protax-tax-inbox-intro p {
  margin: 0 !important;
  color: rgba(248, 250, 252, 0.78) !important;
  line-height: 1.7;
  max-width: 820px;
}

.protax-tax-note-box {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.20);
}

.protax-tax-note-box p {
  margin: 0 !important;
  color: rgba(248, 250, 252, 0.90) !important;
  line-height: 1.6;
}

.protax-tax-inbox-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

.protax-tax-stat-box {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.protax-tax-stat-box--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(29, 78, 216, 0.16));
  border-color: rgba(147, 197, 253, 0.22);
}

.protax-tax-stat-box__label {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.66) !important;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
}

.protax-tax-stat-box strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff !important;
}

.protax-tax-inbox-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  align-items: start;
}

.protax-tax-inbox-sidebar,
.protax-tax-inbox-main {
  min-width: 0;
}

.protax-tax-inbox-sidebar__card,
.protax-tax-inbox-detail-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.protax-tax-inbox-sidebar__header,
.protax-tax-inbox-detail-header {
  margin-bottom: 14px;
}

.protax-tax-inbox-sidebar__header h3,
.protax-tax-inbox-detail-header h3 {
  margin: 0 0 6px !important;
  font-size: 20px;
  color: #ffffff !important;
}

.protax-tax-inbox-sidebar__header p,
.protax-tax-inbox-detail-header p {
  margin: 0 !important;
  color: rgba(248, 250, 252, 0.68) !important;
  line-height: 1.6;
  font-size: 13px;
}

.protax-tax-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protax-tax-inbox-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  box-shadow: none;
}

.protax-tax-inbox-item:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.protax-tax-inbox-item.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.10);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.08);
}

.protax-tax-inbox-item__title {
  display: block;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 6px;
  line-height: 1.45;
}

.protax-tax-inbox-item__meta {
  display: block;
  color: rgba(248, 250, 252, 0.66) !important;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.protax-tax-inbox-item__amount {
  display: block;
  font-weight: 700;
  color: #f4de8c !important;
  line-height: 1.3;
}

.protax-tax-inbox-empty,
.protax-tax-detail-empty {
  padding: 16px 0;
  color: rgba(248, 250, 252, 0.62) !important;
  font-size: 14px;
  line-height: 1.7;
}

.protax-tax-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.protax-tax-detail-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.protax-tax-detail-summary-card span {
  display: block;
  color: rgba(248, 250, 252, 0.66) !important;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.protax-tax-detail-summary-card strong {
  display: block;
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.protax-tax-detail-breakdown-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.protax-tax-detail-table {
  width: 100%;
  min-width: 150px;
  border-collapse: collapse;
  color: rgba(248, 250, 252, 0.88);
}

.protax-tax-detail-table th,
.protax-tax-detail-table td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  vertical-align: top;
}

.protax-tax-detail-table th {
  color: #f4de8c !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.protax-tax-detail-table td {
  color: rgba(248, 250, 252, 0.90) !important;
}

.protax-tax-detail-table td:last-child,
.protax-tax-detail-table th:last-child {
  text-align: right;
}

@media (max-width: 1200px) {
  .protax-tax-inbox-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .protax-tax-inbox-top {
    flex-direction: column;
  }

  .protax-tax-inbox-stats {
    grid-template-columns: 1fr 1fr;
  }

  .protax-tax-detail-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {

  .protax-tax-inbox-top,
  .protax-tax-inbox-layout {
    padding: 16px;
  }

  .protax-tax-inbox-intro h2 {
    font-size: 22px;
  }

  .protax-tax-inbox-stats {
    grid-template-columns: 1fr;
  }

  .protax-tax-detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .protax-tax-inbox-sidebar__card,
  .protax-tax-inbox-detail-card {
    padding: 16px;
  }

  .protax-tax-detail-table {
    min-width: 150px;
  }
}

/* =========================================
   FRONTEND SUBSCRIPTION PLANS (GLASS SAAS)
========================================= */

.protax-plan-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

/* PLAN CARD */
.protax-upgrade-plan-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 20px 40px rgba(2, 12, 27, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition: all 0.25s ease;
}

.protax-upgrade-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 222, 140, 0.4);
  box-shadow:
    0 30px 60px rgba(2, 12, 27, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* TITLE */
.protax-upgrade-plan-card h4 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

/* PRICE */
.protax-upgrade-plan-price {
  font-size: 36px;
  font-weight: 900;
  color: #f4de8c;
  margin-bottom: 16px;
}

.protax-upgrade-plan-price span {
  display: block;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 6px;
  letter-spacing: 0.08em;
}

/* FEATURES */
.protax-upgrade-plan-card .protax-subscription-features {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.protax-upgrade-plan-card .protax-subscription-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.85);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.protax-upgrade-plan-card .protax-subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* BUTTON */
.protax-upgrade-plan-card .protax-public-submit {
  width: 100%;
  margin-top: 10px;
}

/* ACTIVE PLAN HIGHLIGHT */
.protax-upgrade-plan-card.is-current {
  border: 2px solid #f4de8c;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 255, 255, 0.05));
}

/* BADGE */
.protax-plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .protax-plan-upgrade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .protax-plan-upgrade-grid {
    grid-template-columns: 1fr;
  }
}

.protax-upgrade-plan-currency {
  display: inline-block !important;
  margin-right: 8px;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  background: rgba(244, 222, 140, 0.14);
  border: 1px solid rgba(244, 222, 140, 0.24);
  padding: 5px 9px;
  border-radius: 999px;
  vertical-align: middle;
}

.protax-upgrade-plan-price small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.62);
  letter-spacing: 0.08em;
}

.protax-paystack-premium-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
  transition: all 0.22s ease;
}

.protax-paystack-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.36);
}

.protax-paystack-premium-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.protax-paystack-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.protax-current-plan-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid rgba(134, 239, 172, 0.38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(34, 197, 94, 0.16));
  color: #bbf7d0 !important;
  font-size: 15px;
  font-weight: 800;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.protax-current-plan-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* ================================
   Public Homepage Analytics - SaaS
================================ */

.protax-public-analytics {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(244, 222, 140, 0.14), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f172a 52%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(2, 12, 27, 0.45);
  color: #fff;
}

.protax-public-analytics::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.protax-public-analytics>* {
  position: relative;
  z-index: 1;
}

.protax-public-analytics__head {
  max-width: 820px;
  margin-bottom: 28px;
}

.protax-public-analytics__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(244, 222, 140, 0.12);
  border: 1px solid rgba(244, 222, 140, 0.24);
  color: #f4de8c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.protax-public-analytics__head h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.protax-public-analytics__head p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.protax-public-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.protax-public-analytics-kpi {
  min-height: 118px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(2, 12, 27, 0.22);
  backdrop-filter: blur(14px);
  margin: 10px 0 10px 0;
}

.protax-public-analytics-kpi span {
  display: block;
  margin-bottom: 12px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.protax-public-analytics-kpi strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  word-break: break-word;
}

.protax-public-analytics-kpi:first-child {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(244, 222, 140, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.08);
}

.protax-public-analytics-kpi:first-child strong {
  color: #f4de8c;
  font-size: 32px;
}

.protax-public-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.protax-public-analytics-card {
  min-height: 390px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 54px rgba(2, 12, 27, 0.28);
  backdrop-filter: blur(16px);
}

.protax-public-analytics-card--wide {
  grid-column: 1 / -1;
}

.protax-public-analytics-card__head {
  margin-bottom: 18px;
}

.protax-public-analytics-card__head h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.protax-public-analytics-card__head p {
  margin: 0;
  color: rgba(203, 213, 225, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.protax-public-chart-wrap {
  position: relative;
  height: 300px;
}

.protax-public-analytics-card--wide .protax-public-chart-wrap {
  height: 340px;
}

.protax-public-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.protax-public-chart-empty {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1200px) {
  .protax-public-analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .protax-public-analytics-kpi:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .protax-public-analytics {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .protax-public-analytics-kpis,
  .protax-public-analytics-grid {
    grid-template-columns: 1fr;
  }

  .protax-public-analytics-card,
  .protax-public-analytics-card--wide {
    grid-column: auto;
  }

  .protax-public-chart-wrap,
  .protax-public-analytics-card--wide .protax-public-chart-wrap {
    height: 280px;
  }
}

/* ===== MY ACCOUNT USER TAX DASHBOARD EXTENSIONS ===== */

.protax-tax-submission-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.protax-tax-timeline-item {
  display: flex;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-tax-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f4de8c;
  box-shadow: 0 0 0 6px rgba(244, 222, 140, 0.12);
  flex: 0 0 12px;
}

.protax-tax-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.protax-tax-timeline-content strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

.protax-tax-timeline-content span {
  color: rgba(248, 250, 252, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.protax-tax-timeline-content em {
  color: #f4de8c;
  font-style: normal;
  font-weight: 800;
}

.protax-tax-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.protax-tax-dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
  transition: all 0.2s ease;
}

.protax-tax-dashboard-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.30);
}

@media (max-width: 767px) {
  .protax-tax-dashboard-actions {
    flex-direction: column;
  }

  .protax-tax-dashboard-action {
    width: 100%;
  }
}

/* =========================================================
   MY ACCOUNT DASHBOARD — PREMIUM SAAS UI OVERRIDE
   ========================================================= */

.protax-account-main {
  padding: 34px;
}

.protax-account-content>.protax-account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.protax-account-card {
  border-radius: 26px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 24px 56px rgba(2, 12, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.protax-account-card h3 {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.protax-account-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
}

.protax-account-list li {
  line-height: 1.55;
}

.protax-tax-analytics-widget {
  margin-top: 24px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(244, 222, 140, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 47, 64, 0.92));
}

.protax-tax-analytics-widget__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.protax-tax-analytics-widget__head h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.protax-tax-analytics-widget__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(244, 222, 140, 0.16);
  border: 1px solid rgba(244, 222, 140, 0.28);
  color: #f4de8c !important;
  text-decoration: none !important;
  font-weight: 800;
}

.protax-tax-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.protax-tax-analytics-kpi {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.protax-tax-analytics-kpi__label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72) !important;
}

.protax-tax-analytics-kpi strong {
  display: block;
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
}

.protax-tax-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.protax-tax-analytics-chart-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 18px 40px rgba(2, 12, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.protax-tax-analytics-chart-card--wide {
  grid-column: 1 / -1;
}

.protax-tax-analytics-chart-card__head {
  margin-bottom: 16px;
}

.protax-tax-analytics-chart-card__head h4 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}

.protax-tax-analytics-chart-card__head span {
  color: rgba(226, 232, 240, 0.68) !important;
}

.protax-tax-chart-wrap {
  height: 330px;
}

.protax-tax-chart-wrap--sm {
  height: 290px;
}

.protax-tax-note-box {
  padding: 15px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(244, 222, 140, 0.10);
  border: 1px solid rgba(244, 222, 140, 0.20);
}

.protax-tax-note-box p {
  margin: 0;
}

.protax-tax-latest-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.protax-tax-latest-summary__item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.protax-tax-latest-summary__item span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.68) !important;
}

.protax-tax-latest-summary__item strong {
  color: #f4de8c !important;
  font-size: 15px;
}

.protax-tax-submission-timeline {
  display: grid;
  gap: 14px;
}

.protax-tax-timeline-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.protax-tax-timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border-radius: 50%;
  background: #f4de8c;
  box-shadow: 0 0 0 7px rgba(244, 222, 140, 0.13);
  flex: 0 0 13px;
}

.protax-tax-timeline-content {
  display: grid;
  gap: 5px;
}

.protax-tax-timeline-content strong {
  color: #ffffff !important;
}

.protax-tax-timeline-content span {
  color: rgba(226, 232, 240, 0.70) !important;
  font-size: 13px;
}

.protax-tax-timeline-content em {
  color: #f4de8c;
  font-style: normal;
  font-weight: 900;
}

.protax-tax-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.protax-tax-dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.protax-tax-dashboard-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

@media (max-width: 1100px) {
  .protax-tax-analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protax-tax-latest-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .protax-account-main {
    padding: 18px;
  }

  .protax-account-content>.protax-account-grid,
  .protax-tax-analytics-grid,
  .protax-tax-analytics-kpis,
  .protax-tax-latest-summary {
    grid-template-columns: 1fr;
  }

  .protax-tax-analytics-widget__head {
    flex-direction: column;
  }

  .protax-tax-dashboard-actions {
    flex-direction: column;
  }

  .protax-tax-dashboard-action {
    width: 100%;
  }
}

.protax-tax-payroll-summary {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.protax-tax-payroll-summary__head h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.protax-tax-payroll-summary__head p {
  margin: 0 0 16px;
  color: #64748b;
}

.protax-tax-payroll-summary__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.protax-tax-payroll-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.protax-tax-payroll-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.protax-tax-payroll-card strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}

.protax-tax-payroll-table-wrap {
  overflow-x: auto;
}

.protax-tax-payroll-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.protax-tax-payroll-table th,
.protax-tax-payroll-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
  color: #000;
}

.protax-tax-payroll-table th {
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
}

.protax-tax-inbox-item__amount small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .protax-tax-payroll-summary__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .protax-tax-payroll-summary__cards {
    grid-template-columns: 1fr;
  }
}

.protax-tax-history-card--payroll {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.protax-tax-history-payroll {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.protax-tax-history-payroll__head h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.protax-tax-history-payroll__head p {
  margin: 0 0 14px;
  color: #64748b;
}

.protax-tax-history-payroll__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.protax-tax-history-payroll__cards>div {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.protax-tax-history-payroll__cards span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
}

.protax-tax-history-payroll__cards strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.protax-tax-history-payroll__table-wrap {
  overflow-x: auto;
}

.protax-tax-history-payroll__table-wrap table {
  min-width: 980px;
}

@media (max-width: 900px) {
  .protax-tax-history-payroll__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .protax-tax-history-payroll__cards {
    grid-template-columns: 1fr;
  }
}

.protax-tax-inbox-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.protax-tax-pdf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.protax-tax-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.protax-tax-pdf-btn--view {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.protax-tax-pdf-btn--download {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.protax-tax-pdf-btn:hover {
  opacity: .9;
}

@media (max-width: 768px) {
  .protax-tax-inbox-detail-header {
    flex-direction: column;
  }

  .protax-tax-pdf-actions {
    width: 100%;
  }

  .protax-tax-pdf-btn {
    flex: 1;
  }
}

.protax-pdf-lightbox-open {
  overflow: hidden;
}

.protax-tax-pdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.protax-tax-pdf-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.protax-tax-pdf-lightbox__dialog {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  height: calc(100vh - 50px);
  margin: 62px auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.protax-tax-pdf-lightbox__header {
  min-height: 58px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.protax-tax-pdf-lightbox__header h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.protax-tax-pdf-lightbox__close {
  width: 36px;

  height: 36px;

  border: 0;

  border-radius: 50%;

  background: #f1f5f9;

  color: #0f172a;

  font-size: 24px;

  line-height: 1;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  text-align: center;
}

.protax-tax-pdf-lightbox__body {
  flex: 1;
  overflow: hidden;
  background: #f8fafc;
}

.protax-tax-pdf-lightbox__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

.protax-tax-pdf-btn--view {
  cursor: pointer;
}

@media (max-width: 768px) {
  .protax-tax-pdf-lightbox__dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 12px;
  }
}

.protax-profile-menu__avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  max-width: 42px !important;
  display: block;
  object-fit: cover;
}

.protax-profile-menu__dropdown {
  min-width: 260px;
}

.protax-profile-menu__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef2f7;
}

.protax-profile-menu__user-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
}

.protax-profile-menu__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.protax-profile-menu__user-meta {
  min-width: 0;
}

.protax-profile-menu__user-meta strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.protax-profile-menu__user-meta span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}