:root {
  --brand-primary: #ff6600;
  --brand-primary-dark: #111111;
  --brand-accent: #6b7280;
  --brand-bg: #f3f4f6;
  --brand-text: #111827;
  --sidebar-width: 260px;
  --sidebar-mini-width: 84px;
  --bs-primary: #ff6600;
  --bs-primary-rgb: 255, 102, 0;
  --bs-link-color: #ff6600;
  --bs-link-hover-color: #111111;
}

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

body {
  background: linear-gradient(165deg, #f3f4f6 0%, #f7f7f7 45%, #ffffff 100%);
  color: var(--brand-text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

body.portal-guest {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 102, 0, 0.14), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.08), transparent 28%),
    linear-gradient(150deg, #f8f8f8 0%, #f1f1f1 45%, #ffffff 100%);
}

body.notification-center-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

.min-w-0 {
  min-width: 0;
}

.brand-text span {
  color: var(--brand-accent);
}

.brand-logo {
  height: 34px;
  width: auto;
  border-radius: 6px;
  max-width: 180px;
}

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1020;
  transition: width 0.2s ease;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.35rem;
}

.sidebar-brand {
  color: #0f172a;
  text-decoration: none;
  min-height: 34px;
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sidebar-brand-full {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-brand-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-favicon-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.65rem;
  padding: 0.62rem 0.75rem;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}

.sidebar-link .bi {
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-link:hover {
  background: #fff4eb;
  color: #0f172a;
}

.sidebar-link.active {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
  color: #ffffff;
}

.sidebar-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-overlay {
  display: none;
}

.portal-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1010;
}

.topbar-title {
  font-weight: 600;
  color: #0f172a;
}

.topbar-currency-form .form-select {
  min-width: 92px;
  border-color: #cbd5e1;
}

.portal-content {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
}

.portal-footer-inner {
  width: 100%;
  padding: 0 1rem;
}

.navbar-brand span {
  color: var(--brand-accent);
}

.brand-hero {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 1rem;
  color: #fff;
  padding: 1.2rem;
  box-shadow: 0 20px 35px rgba(31, 41, 55, 0.2);
}

.auth-surface {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  padding: 1rem;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.09);
}

.auth-hero-card {
  border-radius: 0.9rem;
  padding: 1.25rem;
  background:
    linear-gradient(130deg, rgba(31, 41, 55, 0.95), rgba(255, 102, 0, 0.92)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 40%);
  color: #fff;
}

.auth-guide-steps {
  display: grid;
  gap: 0.75rem;
}

.auth-guide-step {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.auth-guide-step .step-no {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.18);
}

.auth-main {
  min-height: calc(100vh - 122px);
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
}

.auth-main-inner {
  width: 100%;
}

.auth-page-footer {
  margin-top: 0;
}

body.page-login.portal-guest {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 102, 0, 0.13), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(17, 17, 17, 0.08), transparent 26%),
    linear-gradient(150deg, #f4f5f7 0%, #f7f7f8 45%, #ffffff 100%);
}

.page-login .auth-main {
  flex: 1 0 auto;
  min-height: calc(100dvh - 96px);
  padding: 0.95rem 0;
}

.page-login .auth-page-footer {
  flex-shrink: 0;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0.4rem !important;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom)) !important;
}

.page-login .auth-page-footer .container {
  max-width: 1160px;
}

.page-login .auth-page-footer .small {
  font-size: 0.76rem;
  color: #6b7280 !important;
}

.page-login .auth-page-footer a {
  color: #6b7280 !important;
}

.page-login .auth-page-footer a:hover {
  color: #111827 !important;
}

.auth-v2-page {
  width: 100%;
}

.auth-v2-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 1rem;
}

.auth-v2-panel {
  border-radius: 0.95rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.1);
}

.auth-v2-form-panel {
  background: #ffffff;
  padding: 1.25rem;
}

.auth-v2-guide-panel {
  background:
    linear-gradient(140deg, rgba(31, 41, 55, 0.95), rgba(255, 102, 0, 0.92)),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 28%);
  color: #fff;
  padding: 1.15rem;
}

.auth-v2-brand {
  min-height: 34px;
  margin-bottom: 0.8rem;
}

.auth-v2-logo {
  max-height: 38px;
  width: auto;
}

.auth-v2-brand-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.auth-v2-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.auth-v2-subtitle {
  margin: 0.38rem 0 1rem;
  color: #475569;
}

.auth-v2-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.auth-v2-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.auth-v2-guide-title {
  margin: 0.35rem 0 0.8rem;
  font-size: 1.3rem;
}

.auth-v2-guide-list {
  display: grid;
  gap: 0.6rem;
}

.auth-v2-guide-item {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  padding: 0.55rem 0.62rem;
  font-size: 0.9rem;
}

.auth-v2-step {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.auth-login-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}

.auth-login-card {
  width: min(470px, 100%);
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: 1rem;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
  padding: 1.15rem;
}

.auth-login-brand {
  min-height: 34px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
}

.auth-login-logo {
  max-height: 38px;
  width: auto;
}

.auth-login-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.auth-login-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
}

.auth-login-subtitle {
  margin: 0.2rem 0 0.9rem;
  color: #6b7280;
}

.auth-login-form {
  display: grid;
  gap: 0.65rem;
}

.auth-login-submit {
  border-radius: 999px;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  font-weight: 600;
}

.auth-login-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

.auth-login-footer a {
  text-decoration: none;
  font-weight: 600;
}

.login-v3-layout {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.5rem 0.35rem;
}

.login-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 430px);
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: stretch;
}

.login-v3-info {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.login-v3-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.login-v3-logo-main {
  max-height: 74px;
  width: auto;
}

.login-v3-logo-fallback {
  font-weight: 700;
  color: #111827;
}

.login-v3-logo-divider {
  width: 1px;
  align-self: stretch;
  background: #d1d5db;
}

.login-v3-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #374151;
  font-weight: 600;
}

.login-v3-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 0.78rem 0.85rem;
}

.login-v3-step-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #111827;
}

.login-v3-step-card p {
  margin: 0.25rem 0 0;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-v3-step-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  background: #fff1e8;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.login-v3-step-icon.is-dark {
  background: #ececec;
  color: #111111;
}

.login-v3-step-icon.is-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.login-v3-auth-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.12);
  padding: 1.4rem;
  align-self: center;
}

.login-v3-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 3.3vw, 2.35rem);
  color: #0f172a;
  line-height: 1.15;
}

.login-v3-subtitle {
  margin: 0.3rem 0 1.05rem;
  text-align: center;
  color: #475569;
  font-size: 1.02rem;
}

.login-v3-form {
  display: grid;
  gap: 0.78rem;
}

.login-v3-form .form-label {
  margin-bottom: 0.38rem;
  font-weight: 600;
  color: #334155;
}

.login-v3-form .form-control {
  min-height: 46px;
  border-radius: 0.72rem;
  border-color: #d4dbe5;
  background: #ffffff;
}

.login-v3-form .form-check-input {
  margin-top: 0.2em;
}

.login-v3-password-group {
  display: flex;
  align-items: stretch;
}

.login-v3-password-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.login-v3-password-toggle {
  width: 48px;
  border: 1px solid #d4dbe5;
  border-left: 0;
  border-top-right-radius: 0.72rem;
  border-bottom-right-radius: 0.72rem;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-v3-password-toggle:hover {
  color: #111827;
}

.login-v3-form .form-control:focus-visible,
.login-v3-password-toggle:focus-visible,
.login-v3-submit:focus-visible,
.login-v3-links a:focus-visible,
.auth-google-btn:focus-visible,
.login-v3-form .form-check-input:focus-visible,
.login-v3-form a:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.26);
  outline-offset: 1px;
}

.login-v3-form .form-control:focus,
.login-v3-form .form-check-input:focus {
  border-color: rgba(255, 102, 0, 0.55);
  box-shadow: 0 0 0 0.16rem rgba(255, 102, 0, 0.18);
}

.login-v3-submit {
  margin-top: 0.25rem;
  min-height: 48px;
  font-weight: 700;
  border-radius: 0.75rem;
}

.login-v3-links {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.login-v3-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.login-v3-links a:hover {
  color: #111827;
}

.login-v3-mobile-badge {
  display: none;
  justify-content: center;
  padding: 0.45rem 0 0.15rem;
}

.login-v3-mobile-logo {
  max-height: 66px;
  width: auto;
}

.card {
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.card-body {
  padding: 0.85rem 0.95rem;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table thead th {
  border-bottom-width: 1px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
}

.table th,
.table td {
  padding: 0.58rem 0.68rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.text-bg-primary {
  background-color: var(--brand-primary) !important;
}

.alert-info {
  color: #9a3412;
  background-color: #fff4eb;
  border-color: #ffd2b7;
}

.btn-warning {
  color: #111827;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--brand-primary);
}

.metric {
  border-left: 4px solid var(--brand-primary);
}

.metric h5 {
  margin: 0;
  font-size: 1.75rem;
}

small.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
}

.form-control,
.form-select {
  font-size: 0.88rem;
}

.iti {
  width: 100%;
}

.btn {
  font-size: 0.86rem;
}

.comment-item {
  border-left: 3px solid #ffd7c2;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-item {
  border-left: 3px solid #e2e8f0;
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
}

.intake-doc-checklist {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  background: #f8fafc;
}

.intake-doc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0;
}

.intake-doc-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
  flex: 0 0 auto;
}

.intake-doc-dot.is-complete {
  background: #16a34a;
}

.intake-field-invalid .form-control,
.intake-field-invalid .form-select,
.intake-field-invalid .form-check-input {
  border-color: #ef4444;
}

.intake-inline-error {
  font-size: 0.76rem;
  margin-top: 0.2rem;
}

.intake-help-text {
  font-size: 0.75rem;
}

.intake-file-dropzone {
  border: 1px dashed #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.68rem;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.intake-file-dropzone:hover,
.intake-file-dropzone:focus-visible {
  border-color: #fb923c;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.12);
  outline: none;
}

.intake-file-dropzone.is-dragging {
  border-color: #ea580c;
  background: #fff1e8;
}

.intake-upload-list {
  display: grid;
  gap: 0.45rem;
}

.intake-upload-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.62rem;
  padding: 0.4rem 0.5rem;
  background: #ffffff;
}

.intake-upload-name {
  font-size: 0.79rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.intake-upload-progress {
  height: 0.4rem;
}

.intake-existing-file-list {
  border: 1px solid #e2e8f0;
  border-radius: 0.62rem;
  background: #ffffff;
  padding: 0.45rem;
}

.intake-existing-file-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: space-between;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.35rem;
  margin-top: 0.35rem;
}

.intake-existing-file-row:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.intake-existing-file-row.is-removing {
  opacity: 0.55;
  text-decoration: line-through;
}

.intake-optional-upload-toggle {
  border: 1px solid #e2e8f0;
  border-radius: 0.68rem;
  background: #f8fafc;
  padding: 0.52rem 0.62rem;
}

.intake-optional-upload-toggle > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.intake-optional-upload-toggle > summary::-webkit-details-marker {
  display: none;
}

.job-pool-row {
  background: #fffdf4;
}

.site-footer {
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.site-footer a {
  color: #475569;
}

.site-footer a:hover {
  color: var(--brand-primary);
}

body.announcement-open {
  overflow: hidden;
}

.banner-carousel {
  border-radius: 0.65rem;
  overflow: hidden;
}

.banner-slide-image {
  width: 100%;
  aspect-ratio: 16 / 2.8;
  max-height: 138px;
  object-fit: cover;
  object-position: center;
}

.dashboard-banner-strip-wrap {
  margin-top: 2.4rem;
}

.dashboard-banner-strip-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dashboard-banner-strip-card .card-body {
  padding: 0.6rem 0.7rem;
}

.dashboard-banner-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.dashboard-banner-strip-head h2 {
  font-size: 0.9rem;
}

.dashboard-banner-carousel .carousel-indicators {
  margin-bottom: 0.28rem;
}

.dashboard-banner-carousel .carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  margin: 0 3px;
  background-color: rgba(15, 23, 42, 0.35);
}

.dashboard-banner-carousel .carousel-indicators .active {
  background-color: var(--brand-primary);
}

.dashboard-banner-carousel .carousel-control-prev,
.dashboard-banner-carousel .carousel-control-next {
  width: 2rem;
}

.dashboard-banner-carousel .carousel-control-prev-icon,
.dashboard-banner-carousel .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.48);
  background-size: 58%;
}

.dashboard-banner-caption {
  left: 0.55rem;
  right: auto;
  bottom: 0.45rem;
  max-width: 70%;
  padding: 0.3rem 0.45rem;
  border-radius: 0.42rem;
}

.dashboard-banner-caption h5 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
}

.banner-thumb {
  width: 88px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.settings-logo-preview {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 6px;
}

.notification-center-card {
  overflow: hidden;
}

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.55rem 0.72rem;
}

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

.notification-main-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: #111827;
}

.notification-main-link:hover {
  color: #0f172a;
}

.notification-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
}

.notification-row-title {
  font-size: 0.9rem;
}

.notification-row-time {
  color: #6b7280;
  font-size: 0.72rem;
  white-space: nowrap;
}

.notification-row-text {
  color: #374151;
  font-size: 0.84rem;
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-row.notification-unread {
  background: #fff6ef;
}

.notification-row-actions {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.notification-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2090;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.45rem;
  width: min(340px, calc(100vw - 1.2rem));
  pointer-events: none;
}

.notification-toast {
  border: 1px solid #ffd2b7;
  background: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  text-align: left;
  padding: 0.62rem 0.7rem;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.notification-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notification-toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #111827;
}

.notification-toast-text {
  margin-top: 0.1rem;
  color: #374151;
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-center-drawer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(380px, calc(100vw - 1.2rem));
  max-height: min(76vh, 680px);
  border-radius: 0.9rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.28);
  z-index: 2100;
  display: none;
  flex-direction: column;
}

.notification-center-drawer.open {
  display: flex;
}

.notification-center-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.78rem;
  border-bottom: 1px solid #e5e7eb;
}

.notification-center-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.notification-center-list {
  overflow-y: auto;
  padding: 0.28rem;
}

.notification-center-item {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 0.68rem;
  padding: 0.55rem 0.58rem;
  margin-bottom: 0.35rem;
  position: relative;
  cursor: pointer;
}

.notification-center-item.unread {
  border-color: #ffd2b7;
  background: #fff6ef;
}

.notification-center-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.12rem;
}

.notification-center-item-head strong {
  font-size: 0.86rem;
  color: #111827;
}

.notification-center-item-head span {
  color: #6b7280;
  font-size: 0.7rem;
  white-space: nowrap;
}

.notification-center-item p {
  font-size: 0.8rem;
  color: #334155;
  padding-right: 1.3rem;
  line-height: 1.35;
}

.notification-clear-one {
  position: absolute;
  right: 0.34rem;
  top: 0.34rem;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0.1rem 0.2rem;
}

.notification-clear-one:hover {
  color: #dc2626;
}

.notification-center-empty {
  color: #6b7280;
  font-size: 0.84rem;
  text-align: center;
  padding: 1rem 0.5rem;
}

.notification-center-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}

.carousel-caption {
  background: rgba(2, 6, 23, 0.48);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.announcement-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  background: rgba(2, 6, 23, 0.72);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.announcement-card {
  width: min(700px, 100%);
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
  padding: 1.25rem;
  margin: 0 auto;
  max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.announcement-body {
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-body {
  min-height: 380px;
  max-height: 62vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.whatsapp-chat-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 102, 0, 0.05), transparent 30%),
    radial-gradient(circle at 88% 90%, rgba(107, 114, 128, 0.08), transparent 30%),
    #f8fafc;
}

.chat-row {
  display: flex;
  margin-bottom: 0.8rem;
}

.chat-row.mine {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 86%;
  border-radius: 0.9rem;
  padding: 0.65rem 0.75rem;
  background: #f1f5f9;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
  overflow-wrap: anywhere;
}

.chat-row.mine .chat-bubble {
  background: #fff1e8;
}

.whatsapp-bubble {
  border-radius: 0.95rem;
  border: 1px solid #dbe1ea;
}

.chat-row.mine .whatsapp-bubble {
  background: #fff4ec;
  border-color: #ffc8a5;
}

.chat-thread-item {
  border-left: 3px solid transparent;
  padding: 0.6rem 0.75rem;
}

.chat-thread-item.active {
  border-left-color: var(--brand-primary);
  background: #fff4eb;
  color: #0f172a;
}

.list-group-item.chat-thread-item.active {
  color: #0f172a;
  background: #fff4eb;
  border-color: #ffd8bf;
}

.chat-compose-input {
  min-height: 54px;
}

.support-chat-body {
  min-height: 300px;
}

.settings-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.settings-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 0.85rem;
}

.settings-accordion .accordion-body {
  padding: 0.82rem;
}

.settings-method-form {
  background: #f8fafc;
}

.online-dot {
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.online-dot.online {
  background: #16a34a;
}

.online-dot.offline {
  background: #9ca3af;
}

.invoice-modal-fast {
  --bs-modal-transition: transform 0.12s ease-out;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0.75rem;
}

.support-sidebar-card,
.support-main-card {
  min-height: 70vh;
}

.support-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.85rem 0.7rem;
  border-bottom: 1px solid #e2e8f0;
}

.support-filter-toggle {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0.85rem 0.75rem;
}

.support-filter-toggle > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #334155;
}

.support-filter-toggle > summary::-webkit-details-marker {
  display: none;
}

.support-ticket-list {
  max-height: calc(70vh - 142px);
  overflow-y: auto;
}

.support-ticket-item {
  display: block;
  padding: 0.62rem 0.82rem;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
}

.support-ticket-item:hover {
  background: #fff8f3;
}

.support-ticket-item.active {
  background: #fff4eb;
  border-left: 3px solid var(--brand-primary);
  padding-left: calc(0.82rem - 3px);
}

.support-empty-list {
  padding: 1.3rem 0.9rem;
}

.support-empty-main {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 0.75rem;
}

.community-feed {
  min-width: 0;
}

.community-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff1e8;
  color: var(--brand-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.community-composer-input {
  min-height: 88px;
}

.community-feed-card {
  border: 1px solid #e2e8f0;
}

.community-post-body {
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
}

.community-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.community-comments-wrap {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
}

.community-comments {
  padding-top: 0.2rem;
}

.community-comment-item {
  border-left: 3px solid #ffd7c2;
  padding-left: 0.58rem;
  margin-bottom: 0.58rem;
}

.community-comment-item:last-child {
  margin-bottom: 0;
}

.service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.job-create-card .card-body {
  padding-bottom: 8rem;
}

.service-product-card {
  position: relative;
  border: 1px solid #dde3ec;
  border-radius: 0.88rem;
  padding: 0.68rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-mini-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  background: #fff1e8;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.service-selector-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-selected-indicator {
  position: absolute;
  right: 0.5rem;
  top: 0.45rem;
  color: #f59e0b;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 1rem;
}

.service-card-actions {
  margin-top: auto;
}

.service-detail-content {
  line-height: 1.58;
  color: #1f2937;
}

.service-detail-content h3,
.service-detail-content h4,
.service-detail-content strong {
  color: #0f172a;
}

.service-detail-content ul,
.service-detail-content ol {
  margin: 0.4rem 0 0.6rem 1.1rem;
}

.service-detail-content li {
  margin-bottom: 0.2rem;
}

.service-detail-content p {
  margin-bottom: 0.55rem;
}

.service-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
  border-color: #cfd8e4;
}

.service-product-card.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2), 0 10px 18px rgba(15, 23, 42, 0.1);
  background: #fffaf5;
}

.service-product-card.active .service-selected-indicator {
  opacity: 1;
  transform: scale(1);
}

.service-product-card:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.25);
  outline-offset: 1px;
}

.order-summary-card {
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
  background: #f8fafc;
  padding: 0.85rem;
}

.crypto-checkout-panel {
  border: 1px solid #fed7aa;
  border-radius: 0.8rem;
  background: #fff8f1;
  padding: 0.75rem 0.8rem;
}

.crypto-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.crypto-asset-option {
  border: 1px solid #fdba74;
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.crypto-asset-option input {
  margin-top: 0;
}

.crypto-asset-option.active {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.3);
  background: #fff7ed;
}

.crypto-asset-option span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.crypto-asset-option small {
  color: #475569;
  font-size: 0.78rem;
}

.checkout-sticky-cart {
  position: fixed;
  right: 1rem;
  bottom: calc(0.8rem + env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 2rem));
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-radius: 0.95rem;
  border: 1px solid #d9e1ec;
  padding: 0.72rem;
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.18);
  z-index: 1080;
  backdrop-filter: blur(8px);
}

.checkout-sticky-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.checkout-sticky-controls {
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.5rem;
  background: #f8fafc;
}

.checkout-cart-items {
  margin-top: 0.55rem;
  max-height: 188px;
  overflow-y: auto;
  display: grid;
  gap: 0.4rem;
}

.checkout-cart-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.58rem;
  font-size: 0.8rem;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.checkout-cart-item {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 0.44rem 0.5rem;
}

.checkout-cart-item-main {
  min-width: 0;
}

.checkout-cart-item-title {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
}

.checkout-cart-item-meta {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
}

.checkout-cart-remove {
  font-size: 0.72rem;
  padding: 0.05rem 0.2rem;
  line-height: 1.1;
}

.checkout-sticky-totals {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.55rem;
  padding-top: 0.48rem;
}

.checkout-sticky-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.checkout-sticky-summary-line strong {
  color: #0f172a;
}

.checkout-sticky-actions {
  margin-top: 0.58rem;
}

.file-preview-modal .modal-content {
  border: 1px solid #dbe1ea;
  border-radius: 0.95rem;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25);
}

.file-preview-modal .modal-body {
  min-height: 300px;
  padding: 0.9rem;
}

.file-preview-loader {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  align-content: center;
  min-height: 260px;
  text-align: center;
}

.file-preview-loader-spinner {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--brand-primary);
  animation: file-preview-spin 0.9s linear infinite;
}

@keyframes file-preview-spin {
  to {
    transform: rotate(360deg);
  }
}

.file-preview-loader-text {
  display: grid;
  gap: 0.15rem;
}

.file-preview-loader-text strong {
  font-size: 1rem;
  color: #0f172a;
}

.file-preview-loader-text small {
  color: #64748b;
  font-size: 0.82rem;
}

.file-preview-loader-bar {
  width: min(260px, 75%);
  height: 0.32rem;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.file-preview-loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.25), rgba(255, 102, 0, 0.9));
  animation: file-preview-progress 1.15s ease-in-out infinite;
}

@keyframes file-preview-progress {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

.file-preview-stage {
  min-height: 260px;
}

.file-preview-image,
.file-preview-pdf {
  width: 100%;
  min-height: min(70vh, 680px);
  max-height: 74vh;
  border-radius: 0.72rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.file-preview-image {
  object-fit: contain;
}

.file-preview-fallback {
  min-height: 250px;
  display: grid;
  gap: 0.45rem;
  place-content: center;
  text-align: center;
  background: #f8fafc;
  border-radius: 0.72rem;
  border: 1px dashed #cbd5e1;
  padding: 0.95rem;
}

.file-preview-fallback-icon {
  font-size: 2rem;
  color: #64748b;
}

.enter-send-hint {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.76rem;
  transition: color 0.18s ease;
}

.enter-send-hint.active {
  color: var(--brand-primary);
}

.mobile-filter-toggle {
  display: none;
}

@media (max-width: 1399px) {
  .service-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .community-layout {
    grid-template-columns: 1fr;
  }

  .service-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-asset-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  body.sidebar-collapsed .portal-sidebar {
    width: var(--sidebar-mini-width);
  }

  body.sidebar-collapsed .sidebar-brand .brand-text,
  body.sidebar-collapsed .sidebar-label {
    display: none;
  }

  body.sidebar-collapsed .sidebar-brand-full {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  body.sidebar-collapsed .sidebar-brand-mini {
    opacity: 1;
    transform: scale(1);
  }

  body.sidebar-collapsed .sidebar-head {
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  body.sidebar-collapsed .sidebar-link .bi {
    width: auto;
  }
}

@media (max-width: 991px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    width: min(82vw, 300px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  }

  body.sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 1015;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
  }

  .portal-content {
    padding: 0.85rem;
  }

  .brand-hero {
    padding: 1.1rem;
  }

  .banner-slide-image {
    aspect-ratio: 4 / 1.6;
    max-height: 104px;
  }

  .portal-topbar {
    padding: 0.7rem 0.75rem;
  }

  .auth-surface {
    padding: 0.7rem;
  }

  .auth-main {
    min-height: auto;
    align-items: stretch;
    padding: 0.85rem 0;
  }

  .page-login .auth-main {
    min-height: calc(100dvh - 92px);
    align-items: center;
    padding: max(0.65rem, env(safe-area-inset-top)) 0.55rem 0.55rem;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-ticket-list {
    max-height: 320px;
  }
}

@media (max-width: 767px) {
  .card-body {
    padding: 0.95rem;
  }

  .metric h5 {
    font-size: 1.25rem;
  }

  .table {
    font-size: 0.82rem;
  }

  .table th,
  .table td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .table-mobile-cards {
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-mobile-cards thead {
    display: none;
  }

  .table-mobile-cards tbody,
  .table-mobile-cards tr,
  .table-mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-mobile-cards tbody tr {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin: 0.55rem 0.6rem;
    padding: 0.55rem 0.7rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .table-mobile-cards tbody tr.job-pool-row {
    background: #fffdf4;
  }

  .table-mobile-cards tbody tr:first-child {
    margin-top: 0.7rem;
  }

  .table-mobile-cards tbody tr:last-child {
    margin-bottom: 0.7rem;
  }

  .table-mobile-cards td {
    border: 0;
    padding: 0.4rem 0;
  }

  .table-mobile-cards td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.15rem;
  }

  .table-mobile-cards .cell-actions {
    padding-top: 0.55rem;
  }

  .table-mobile-cards .cell-actions .btn {
    width: 100%;
  }

  .table-mobile-cards .cell-form form {
    width: 100%;
  }

  .table-mobile-cards .cell-form .d-flex {
    flex-direction: column;
  }

  .table-mobile-cards .cell-form .btn,
  .table-mobile-cards .cell-form .form-select,
  .table-mobile-cards .cell-form .form-control {
    width: 100%;
  }

  .table-mobile-cards .table-empty-row {
    border: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .table-mobile-cards .table-empty-row td {
    text-align: center;
    padding: 1rem 0.6rem;
  }

  .table-mobile-cards .table-empty-row td::before {
    display: none;
  }

  .intake-doc-checklist {
    padding: 0.58rem 0.62rem;
  }

  .intake-doc-item {
    align-items: flex-start;
    gap: 0.4rem;
  }

  .intake-file-dropzone {
    padding: 0.58rem 0.56rem;
  }

  .intake-upload-item {
    padding: 0.35rem 0.42rem;
  }

  .intake-optional-upload-toggle {
    padding: 0.45rem 0.5rem;
  }

  .table-mobile-rows {
    min-width: 640px;
  }

  .table-mobile-rows thead {
    display: table-header-group;
  }

  .table-mobile-rows tbody {
    display: table-row-group;
  }

  .table-mobile-rows tr {
    display: table-row;
    border: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .table-mobile-rows td,
  .table-mobile-rows th {
    display: table-cell;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.42rem 0.48rem;
    white-space: nowrap;
    font-size: 0.76rem;
  }

  .table-mobile-rows td::before {
    display: none;
  }

  .table-mobile-rows .cell-actions .btn {
    width: auto;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .mobile-filter-panel {
    display: none;
  }

  .mobile-filter-panel.open {
    display: block;
  }

  .btn,
  .form-control,
  .form-select,
  .input-group-text {
    font-size: 0.92rem;
  }

  .topbar-title {
    font-size: 0.95rem;
  }

  .service-catalog-grid {
    grid-template-columns: 1fr;
  }

  .checkout-sticky-cart {
    right: 0.45rem;
    left: 0.45rem;
    width: auto;
    bottom: calc(0.25rem + env(safe-area-inset-bottom));
    border-radius: 0.9rem 0.9rem 0.5rem 0.5rem;
    max-height: min(47vh, 320px);
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.65rem;
  }

  .checkout-cart-items {
    max-height: 135px;
  }

  .checkout-sticky-actions {
    margin-top: 0.45rem;
  }

  .job-create-card .card-body {
    padding-bottom: 20rem;
  }

  .community-actions .btn {
    width: 100%;
  }

  .support-empty-main {
    min-height: 320px;
  }

  .file-preview-modal .modal-body {
    padding: 0.72rem;
  }

  .file-preview-image,
  .file-preview-pdf {
    min-height: 52vh;
    max-height: 60vh;
  }

  .file-preview-loader,
  .file-preview-stage {
    min-height: 210px;
  }

  .auth-login-card {
    padding: 0.95rem;
  }

  .auth-login-title {
    font-size: 1.65rem;
  }

  .login-v3-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .login-v3-info {
    display: none;
  }

  .login-v3-auth-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 1.1rem;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
  }

  .login-v3-title {
    font-size: 1.95rem;
  }

  .login-v3-mobile-badge {
    display: flex;
  }

  .page-login .auth-page-footer .container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

@media (max-width: 575px) {
  .brand-logo {
    height: 28px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .portal-footer-inner {
    padding: 0 0.75rem;
  }

  .file-preview-modal .modal-content {
    border-radius: 0.7rem;
  }

  .file-preview-image,
  .file-preview-pdf {
    min-height: 50vh;
    max-height: 56vh;
  }

  .page-login .auth-main {
    min-height: calc(100dvh - 90px);
    align-items: center;
    padding: max(0.55rem, env(safe-area-inset-top)) 0.4rem 0.45rem;
  }

  .dashboard-banner-strip-wrap {
    margin-top: 1.3rem;
  }

  .dashboard-banner-strip-card .card-body {
    padding: 0.52rem;
  }

  .dashboard-banner-strip-head {
    margin-bottom: 0.35rem;
  }

  .dashboard-banner-carousel .carousel-control-prev,
  .dashboard-banner-carousel .carousel-control-next {
    width: 1.75rem;
  }

  .login-v3-layout {
    padding: 0.2rem 0;
  }

  .login-v3-auth-card {
    padding: 1rem 0.9rem;
    border-radius: 0.9rem;
  }

  .login-v3-title {
    font-size: 1.7rem;
  }

  .login-v3-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
  }

  .login-v3-form .form-control {
    min-height: 44px;
  }

  .login-v3-password-toggle {
    width: 44px;
  }

  .login-v3-submit,
  .auth-google-btn {
    min-height: 46px;
  }

  .login-v3-mobile-logo {
    max-height: 52px;
  }

  .page-login .auth-page-footer {
    padding-top: 0.25rem !important;
  }

  .page-login .auth-page-footer .container {
    gap: 0.25rem !important;
  }

  .page-login .auth-page-footer .d-flex {
    justify-content: center;
    gap: 0.6rem !important;
  }

  .announcement-lock {
    padding: max(0.4rem, env(safe-area-inset-top)) max(0.35rem, env(safe-area-inset-right))
      max(0.4rem, env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
  }

  .announcement-card {
    padding: 0.9rem;
    max-height: calc(100dvh - 0.8rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 0.75rem;
  }

  .announcement-card .btn {
    width: 100%;
  }

  .chat-body {
    min-height: 280px;
    max-height: 56vh;
  }

  .support-chat-body {
    min-height: 250px;
    max-height: 52vh;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .notification-toast-stack,
  .notification-center-drawer {
    right: 0.42rem;
    width: calc(100vw - 0.84rem);
  }

  .notification-center-drawer {
    max-height: min(76vh, 560px);
  }
}
