body.portal-user-page {
  background:
    linear-gradient(180deg, #f7fbff 0, #eef4fb 260px, #eef4fb 100%) !important;
  color: #0f172a !important;
}

body.portal-user-page .rehber-shared-topbar {
  border-radius: 24px !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04) !important;
}

body.portal-user-page .rehber-shared-logo,
body.portal-user-page .portal-brand-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
}

body.portal-user-page .rehber-shared-welcome .section {
  font-size: 13px !important;
  color: #64748b !important;
}

body.portal-user-page .rehber-shared-welcome h1 {
  font-size: clamp(24px, 4.8vw, 34px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  color: #0f172a !important;
}

body.portal-user-page .rehber-shared-welcome p {
  font-size: 14px !important;
  color: #64748b !important;
}

body.portal-user-page .portal-card,
body.portal-user-page .panel,
body.portal-user-page .portal-mini-card,
body.portal-user-page .week-card,
body.portal-user-page .villa-card,
body.portal-user-page .balance-box {
  border: 1px solid #E2E8F0 !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04) !important;
}

body.portal-user-page .portal-kpi-card {
  min-height: 132px !important;
  grid-template-columns: 64px minmax(0, 1fr) 16px !important;
  gap: 16px !important;
  padding: 20px 18px !important;
}

body.portal-user-page .portal-kpi-card:before {
  display: none !important;
}

body.portal-user-page .portal-kpi-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  font-size: 1.55rem !important;
}

body.portal-user-page .portal-kpi-icon.success {
  color: #16a34a !important;
  background: #DCFCE7 !important;
}

body.portal-user-page .portal-kpi-icon.primary {
  color: #2563EB !important;
  background: #DBEAFE !important;
}

body.portal-user-page .portal-kpi-icon.purple {
  color: #7C3AED !important;
  background: #F3E8FF !important;
}

body.portal-user-page .portal-kpi-icon.warning {
  color: #F97316 !important;
  background: #FFEDD5 !important;
}

body.portal-user-page .portal-kpi-label {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
}

body.portal-user-page .portal-kpi-value {
  font-weight: 900 !important;
}

@media (max-width: 767.98px) {
  body.portal-user-page .rehber-shared-topbar {
    padding: 10px !important;
    border-radius: 0 0 24px 24px !important;
  }

  body.portal-user-page .rehber-shared-welcome {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.portal-user-page .rehber-shared-welcome p {
    display: block !important;
    max-width: 100% !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.portal-user-page .rehber-shared-logo,
  body.portal-user-page .portal-brand-logo {
    width: 42px !important;
    height: 42px !important;
  }

  body.portal-user-page .portal-kpi-card {
    min-height: 132px !important;
    grid-template-columns: 52px minmax(0, 1fr) 10px !important;
    gap: 10px !important;
    padding: 14px 12px !important;
  }

  body.portal-user-page .portal-kpi-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }
}

/* Compact mobile header: keep greeting readable and actions aligned. */
@media (max-width: 767.98px) {
  body.portal-user-page .rehber-shared-topbar-shell {
    padding-inline: 0 !important;
  }

  body.portal-user-page .rehber-shared-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "welcome menu"
      "actions actions" !important;
    align-items: start !important;
    gap: 10px 12px !important;
    padding: 16px 16px 14px !important;
    border-radius: 0 0 22px 22px !important;
  }

  body.portal-user-page .rehber-shared-welcome {
    grid-area: welcome !important;
    min-width: 0 !important;
    padding-right: 58px !important;
  }

  body.portal-user-page .rehber-shared-welcome .section {
    display: block !important;
    max-width: 100% !important;
    font-size: .78rem !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  body.portal-user-page .rehber-shared-welcome h1 {
    display: -webkit-box !important;
    max-width: 100% !important;
    font-size: clamp(1.48rem, 8.6vw, 2.12rem) !important;
    line-height: .98 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 2px 0 0 !important;
  }

  body.portal-user-page .rehber-shared-welcome p {
    display: block !important;
    max-width: 100% !important;
    font-size: .72rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 4px !important;
  }

  body.portal-user-page .portal-mobile-bar {
    position: absolute !important;
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1060 !important;
  }

  body.portal-user-page .portal-mobile-bar > .d-flex {
    display: none !important;
  }

  body.portal-user-page #portalSidebarToggle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(15, 23, 42, .78) !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.portal-user-page.rehber-mobile-ready .rehber-mobile-menu-button {
    display: none !important;
  }

  body.portal-user-page .rehber-shared-controls,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(128px, 1fr) auto 38px !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.portal-user-page .rehber-shared-controls > .rehber-shared-nav,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-nav {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: .82rem !important;
  }

  body.portal-user-page .rehber-shared-controls > .portal-top-support-actions,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .portal-top-support-actions {
    display: inline-flex !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  body.portal-user-page .rehber-shared-controls .portal-support-quick-top,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline .portal-support-quick-top {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 12px !important;
  }

  body.portal-user-page .rehber-shared-controls > .rehber-shared-profile,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-profile {
    display: inline-grid !important;
    grid-template-columns: 34px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 2px !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-avatar-btn,
  body.portal-user-page .rehber-shared-controls .rehber-shared-avatar {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-text,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-name,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-sub,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-kicker {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body.portal-user-page .rehber-shared-controls,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline {
    grid-template-columns: minmax(104px, 1fr) auto 34px !important;
    gap: 5px !important;
  }

  body.portal-user-page .rehber-shared-controls > .rehber-shared-nav,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-nav {
    font-size: .76rem !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
  }

  body.portal-user-page .rehber-shared-controls .portal-support-quick-top,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline .portal-support-quick-top,
  body.portal-user-page .rehber-shared-controls > .rehber-shared-profile,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-profile {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }
}

@media (max-width: 767.98px) {
  body.portal-user-page #portalDebtKpiBtn.portal-kpi-card {
    grid-template-columns: 42px minmax(0, 1fr) 10px !important;
    gap: 8px !important;
    padding: 12px 9px !important;
  }

  body.portal-user-page #portalDebtKpiBtn .portal-kpi-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
    font-size: 1rem !important;
  }

  body.portal-user-page #portalDebtKpiBtn .portal-kpi-body {
    min-width: 0 !important;
    gap: 3px !important;
  }

  body.portal-user-page #portalKpiDebtAmount {
    display: block !important;
    max-width: 100% !important;
    font-size: clamp(.84rem, 3.25vw, .98rem) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

body.portal-user-page .rehber-shared-topbar {
  grid-template-columns: auto minmax(260px, 1fr) max-content !important;
  align-items: center !important;
  gap: 18px !important;
}

body.portal-user-page .rehber-shared-controls,
body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  grid-auto-flow: unset !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.portal-user-page .rehber-shared-controls > .rehber-shared-nav,
body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-nav {
  order: 1 !important;
  flex: 0 0 168px !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.portal-user-page .rehber-shared-controls > .portal-top-support-actions,
body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .portal-top-support-actions {
  order: 2 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
}

body.portal-user-page .rehber-shared-controls .portal-support-quick-top,
body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline .portal-support-quick-top {
  position: relative !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 12px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 15px !important;
}

body.portal-user-page .portal-support-quick-top.has-badge {
  overflow: visible !important;
}

body.portal-user-page .portal-top-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ef4444 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(239,68,68,.25) !important;
}

body.portal-user-page .portal-top-badge.d-none {
  display: none !important;
}

body.portal-user-page .rehber-shared-controls > .rehber-shared-profile,
body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-profile {
  order: 3 !important;
  display: grid !important;
  grid-template-columns: 32px minmax(88px, auto) !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 150px !important;
  max-width: 180px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 5px 9px !important;
  border-radius: 12px !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: start !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-avatar-btn,
body.portal-user-page .rehber-shared-controls .rehber-shared-avatar {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-avatar-btn {
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  align-self: center !important;
  justify-self: center !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.portal-user-page .rehber-shared-controls img.rehber-shared-avatar {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 1px !important;
  min-width: 0 !important;
  max-width: 112px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-name {
  display: block !important;
  max-width: 112px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  appearance: none !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-sub {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: max-content !important;
  max-width: 112px !important;
  margin-top: 1px !important;
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.portal-user-page .rehber-shared-controls .rehber-shared-profile-sub a,
body.portal-user-page .rehber-shared-controls .rehber-shared-profile-action {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  appearance: none !important;
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

@media (max-width: 991.98px) {
  body.portal-user-page .rehber-shared-topbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.portal-user-page .rehber-shared-controls,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline {
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.portal-user-page .rehber-shared-controls::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 520px) {
  body.portal-user-page .rehber-shared-controls > .rehber-shared-nav,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-nav {
    flex-basis: 128px !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 12px !important;
  }

  body.portal-user-page .rehber-shared-controls .portal-support-quick-top,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline .portal-support-quick-top {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }

  body.portal-user-page .rehber-shared-controls > .rehber-shared-profile,
  body.portal-user-page .rehber-shared-controls.portal-mobile-actions-inline > .rehber-shared-profile {
    grid-template-columns: 30px !important;
    place-items: center !important;
    min-width: 34px !important;
    width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 2px !important;
    overflow: visible !important;
  }

  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-avatar-btn,
  body.portal-user-page .rehber-shared-controls .rehber-shared-avatar {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }

  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-avatar-btn {
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }

  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-text,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-name,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-sub,
  body.portal-user-page .rehber-shared-controls .rehber-shared-profile-kicker {
    display: none !important;
  }
}

body.portal-user-page .portal-shell {
  max-width: none !important;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 0;
  padding: 0 !important;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border-right: 1px solid #dbe7f3;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.04);
  z-index: 1040;
}

.portal-sidebar:after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #bfdbfe 18%, #dbe7f3 70%, transparent);
}

.portal-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 8px;
}

.portal-sidebar-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.portal-sidebar-title {
  font-size: 1.28rem;
  font-weight: 900;
  color: #0b3d91;
  line-height: 1;
}

.portal-sidebar-subtitle {
  font-size: .75rem;
  font-weight: 800;
  color: #0d6efd;
}

.portal-nav {
  display: grid;
  gap: 7px;
}

.portal-nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 10px 13px;
  color: #172033;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  position: relative;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.portal-nav-link:hover,
.portal-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #0b4fb3);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.22);
  transform: translateX(2px);
}

.portal-nav-link i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
}

.portal-nav-link span:not(.portal-nav-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0d6efd;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.portal-nav-badge.danger {
  background: #dc3545;
}

.portal-support-box {
  margin-top: auto;
  border: 1px solid #dbe7f3;
  background: linear-gradient(135deg, #f5faff, #eef7ff);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-support-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0d6efd;
  background: #e7f1ff;
  font-size: 1.35rem;
}

.portal-support-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  min-width: 0;
}

.portal-support-action {
  border: 1px solid #cfe0f5;
  background: #fff;
  color: #2563eb;
  border-radius: 10px;
  min-height: 30px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
  flex: 1 1 auto;
}

.portal-support-action.wa {
  color: #128c7e;
  border-color: #bdebd8;
  flex: 0 0 56px;
}

.portal-support-action:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.portal-support-action.wa:hover {
  background: #ecfdf5;
  color: #0f7a68;
}

.portal-mobile-support-card {
  display: none;
}

.portal-main {
  min-width: 0;
  padding: 0 24px 28px;
}

.portal-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1035;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dbe7f3;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
}

.portal-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .36);
  z-index: 1038;
}

body.portal-user-page .rehber-shared-topbar {
  border: 1px solid #dbe7f3 !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.portal-card,
body.portal-user-page .panel {
  background: #fff !important;
  border: 1px solid #dbe7f3 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 18px !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.portal-card:hover,
body.portal-user-page .panel:hover {
  border-color: #c7dcf5 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.portal-info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 14px 0 12px;
}

.portal-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d6efd;
  flex: 0 0 auto;
}

.portal-user-switch-name {
  font-weight: 900;
}

.portal-user-switch-meta,
.muted {
  color: #64748b !important;
}

.portal-notification {
  position: relative;
  border: 1px solid #f59e0b !important;
  background: #fffbeb !important;
  border-radius: 14px !important;
  padding: 15px 48px 15px 58px !important;
  color: #92400e !important;
  margin-bottom: 8px;
}

.portal-notifications .portal-notification {
  margin-bottom: 0 !important;
}

.portal-notification:before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 1.4rem;
}

.portal-notification:after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f172a;
}

.portal-notification-title {
  font-weight: 900;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.portal-kpi-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  position: relative;
}

.portal-kpi-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0d6efd;
  opacity: .65;
}

.portal-kpi-card:hover {
  transform: translateY(-2px);
}

.portal-kpi-card > * {
  pointer-events: none;
}

.portal-kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.portal-kpi-icon.success {
  color: #198754;
  background: #dcfce7;
}

.portal-kpi-icon.primary {
  color: #0d6efd;
  background: #e7f1ff;
}

.portal-kpi-icon.purple {
  color: #7e22ce;
  background: #f3e8ff;
}

.portal-kpi-icon.warning {
  color: #f97316;
  background: #fff7ed;
}

.portal-kpi-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portal-kpi-label {
  display: block;
  color: #172033;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-kpi-value {
  display: block;
  font-size: clamp(1.35rem, 1.15vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0;
}

.portal-kpi-note {
  display: block;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.25;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.portal-kpi-note-strong {
  color: #172033;
  font-weight: 800;
}

.portal-dashboard-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.portal-dashboard-grid-modern > .panel {
  min-width: 0;
}

.portal-dashboard-column {
  display: contents;
}

.portal-dashboard-grid-modern > .portal-wide {
  grid-column: 1 / -1;
}

#portalPropertiesPanel,
#portalPPropertiesPanel { order: 1; }
#portalVehiclesPanel { order: 2; }
#portalReservationsPanel { order: 3; }
#portalBroadcastPanel { order: 4; }
#portalCommunicationsPanel { order: 5; }
#portalRecentJobsPanel { order: 6; }
#portalPhotoAlbumPanel { order: 8; grid-column: 1 / -1; container-type: inline-size; }
#portalQuickActionsPanel { order: 7; }

#portalBroadcastPanel .portal-broadcast-list {
  gap: 9px;
}

#portalBroadcastPanel .portal-broadcast-card:first-child {
  border-color: #bfdbfe !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#portalBroadcastPanel .portal-broadcast-card:first-child .fw-bold {
  font-size: .94rem;
}

.portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 1.04rem;
  font-weight: 900;
}

.portal-section-title i {
  color: #0d6efd;
}

body.portal-user-page .panel h2:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0d6efd;
  margin-right: 8px;
}

#portalBroadcastPanel h2:before { content: "\f0a1"; }
#portalCommunicationsPanel h2:before { content: "\f0e0"; }
#portalReservationsPanel h2:before { content: "\f073"; }
#portalPropertiesPanel h2:before { content: "\f1ad"; }
#portalVehiclesPanel h2:before { content: "\f1b9"; }
#portalPhotoAlbumPanel h2:before { content: "\f03e"; }
.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-action-grid .btn {
  min-height: 52px;
  justify-content: flex-start !important;
  border-color: #dbe7f3;
  background: #fff;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.portal-action-grid .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.portal-action-grid .btn:nth-child(1) { color: #198754; background: #f0fdf4; }
.portal-action-grid .btn:nth-child(2) { color: #7e22ce; background: #faf5ff; }
.portal-action-grid .btn:nth-child(3) { color: #0d6efd; background: #eff6ff; }
.portal-action-grid .btn:nth-child(4) { color: #f97316; background: #fff7ed; }
.portal-action-grid .btn:nth-child(5) { color: #198754; background: #f0fdf4; }
.portal-action-grid .btn:nth-child(6) { color: #0d6efd; background: #eff6ff; }
}

.portal-album-row,
.portal-photo-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px !important;
  overflow-x: auto;
  padding-bottom: 2px;
}

#portalPhotoStrip .portal-photo-strip-card {
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 11px !important;
  border-radius: 10px !important;
  text-align: left !important;
}

#portalPhotoStrip .portal-photo-album-cover {
  width: 86px !important;
  height: 56px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  flex: 0 0 auto;
}

#portalPhotoStrip .portal-photo-album-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#portalPhotoStrip .portal-photo-album-copy .fw-bold {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}

.portal-broadcast-list,
.portal-card-list,
.portal-mini-list {
  display: grid;
  gap: 10px;
}

body.portal-user-page .portal-broadcast-card,
body.portal-user-page .portal-communication-card,
body.portal-user-page .week-card,
body.portal-user-page .vehicle-card-button,
body.portal-user-page .villa-card,
body.portal-user-page .apartment-summary-card {
  border: 1px solid #dbe7f3 !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .04) !important;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body.portal-user-page .portal-broadcast-card:hover,
body.portal-user-page .portal-communication-card:hover,
body.portal-user-page .week-card:hover,
body.portal-user-page .vehicle-card-button:hover,
body.portal-user-page .villa-card:hover,
body.portal-user-page .apartment-summary-card:hover {
  border-color: #0d6efd !important;
  background: #f8fbff !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, .07) !important;
}

body.portal-user-page .portal-broadcast-card {
  width: 100%;
  text-align: left;
  padding: 12px !important;
}

body.portal-user-page .portal-communication-card {
  padding: 12px 13px !important;
}

body.portal-user-page .portal-communication-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .7rem;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
}

body.portal-user-page .portal-communication-kind {
  background: #e0f2fe;
  color: #075985;
}

body.portal-user-page .portal-communication-reply-toggle {
  align-self: flex-start;
  white-space: nowrap;
}

.portal-broadcast-pager,
.portal-mini-pager {
  display: none !important;
}

.portal-dashboard-hidden {
  display: none !important;
}

body.portal-user-page .portal-community-center {
  --community-bg: #ffffff;
  --community-soft: #f8fbff;
  --community-border: #dbe6f3;
  --community-text: #102033;
  --community-muted: #64748b;
  background: var(--community-bg);
  color: var(--community-text);
}

body.portal-user-page .portal-community-center.is-dark {
  --community-bg: #101827;
  --community-soft: #172235;
  --community-border: #2d3b52;
  --community-text: #eef5ff;
  --community-muted: #a9b7ca;
}

body.portal-user-page .portal-community-head,
body.portal-user-page .portal-community-type-tabs,
body.portal-user-page .portal-community-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

body.portal-user-page .portal-community-type-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

body.portal-user-page .portal-community-type-tabs {
  justify-content: flex-start;
  margin: 0;
}

body.portal-user-page .portal-community-create-link {
  margin-left: auto;
  white-space: nowrap;
}

body.portal-user-page .portal-community-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  margin-bottom: 14px;
}

body.portal-user-page .portal-community-center.is-dark .form-select,
body.portal-user-page .portal-community-center.is-dark .form-control {
  background-color: #0f1725;
  border-color: var(--community-border);
  color: var(--community-text);
}

body.portal-user-page .portal-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.portal-user-page .portal-community-card {
  border: 1px solid var(--community-border);
  border-radius: 8px;
  background: var(--community-bg);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

body.portal-user-page .portal-community-card-cover {
  aspect-ratio: 16 / 7;
  background: var(--community-soft);
  overflow: hidden;
}

body.portal-user-page .portal-community-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.portal-user-page .portal-community-card-body {
  padding: 12px;
  display: grid;
  gap: 9px;
}

body.portal-user-page .portal-community-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--community-text);
  margin: 0;
  line-height: 1.25;
}

body.portal-user-page .portal-community-meta,
body.portal-user-page .portal-community-badges,
body.portal-user-page .portal-community-actions,
body.portal-user-page .portal-community-attachments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

body.portal-user-page .portal-community-meta {
  color: var(--community-muted);
  font-size: .78rem;
}

body.portal-user-page .portal-community-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 850;
  background: var(--community-soft);
  color: var(--community-text);
  border: 1px solid var(--community-border);
  max-width: 100%;
}

body.portal-user-page .portal-community-pill.new {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

body.portal-user-page .portal-community-pill.pinned {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

body.portal-user-page .portal-community-summary {
  color: var(--community-muted);
  font-size: .88rem;
  line-height: 1.4;
  margin: 0;
}

body.portal-user-page .portal-community-attachment {
  max-width: 100%;
  border: 1px solid var(--community-border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--community-text);
  background: var(--community-soft);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.portal-user-page .portal-community-poll,
body.portal-user-page .portal-community-meeting {
  border-top: 1px solid var(--community-border);
  padding-top: 9px;
}

body.portal-user-page .portal-community-comments {
  border-top: 1px solid var(--community-border);
  padding-top: 9px;
  display: grid;
  gap: 8px;
}

body.portal-user-page .portal-community-comment {
  background: var(--community-soft);
  border: 1px solid var(--community-border);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 4px;
}

body.portal-user-page .portal-community-comment strong {
  color: var(--community-text);
  font-size: .82rem;
}

body.portal-user-page .portal-community-comment span,
body.portal-user-page .portal-community-comment em {
  color: var(--community-muted);
  font-size: .74rem;
  font-style: normal;
}

body.portal-user-page .portal-community-comment p {
  margin: 0;
  color: var(--community-text);
  font-size: .84rem;
  line-height: 1.35;
}

body.portal-user-page .portal-community-comment-form {
  display: grid;
  gap: 8px;
}

body.portal-user-page .portal-community-poll-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}

body.portal-user-page .portal-community-poll-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--community-soft);
  overflow: hidden;
}

body.portal-user-page .portal-community-poll-bar span {
  display: block;
  height: 100%;
  background: #0d6efd;
}

body.portal-user-page .portal-community-center.is-dark .portal-community-pill.new {
  background: #123923;
  color: #baf7cb;
  border-color: #245c39;
}

body.portal-user-page .portal-community-center.is-dark .portal-community-pill.pinned {
  background: #43330e;
  color: #fde68a;
  border-color: #7c5c17;
}

@media (max-width: 992px) {
  body.portal-user-page .portal-community-grid {
    grid-template-columns: 1fr;
  }
  body.portal-user-page .portal-community-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.portal-user-page .portal-community-filters {
    grid-template-columns: 1fr;
  }
  body.portal-user-page .portal-community-type-row {
    align-items: stretch;
    flex-direction: column;
  }
  body.portal-user-page .portal-community-create-link {
    margin-left: 0;
    width: 100%;
  }
  body.portal-user-page .portal-community-card-body {
    padding: 10px;
  }
}

.portal-empty {
  border: 1px dashed #cbd5e1;
  color: #64748b;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.portal-property-switcher {
  display: none !important;
}

.portal-property-switcher-copy {
  min-width: 0;
}

.portal-property-switcher .portal-villa-actions {
  margin: 0 !important;
  justify-content: flex-end;
}

.portal-property-switcher .portal-villa-actions .btn {
  min-height: 38px;
  white-space: nowrap;
}

body.portal-user-page .btn:focus-visible,
body.portal-user-page button:focus-visible,
body.portal-user-page a:focus-visible {
  outline: 3px solid rgba(13, 110, 253, .24) !important;
  outline-offset: 2px !important;
}

body.portal-user-page .badge {
  border-radius: 999px;
}

body.portal-user-page .portal-photo-card,
body.portal-user-page .portal-photo-album-card {
  border-radius: 12px !important;
  overflow: hidden;
}

body.portal-user-page .modal-backdrop.show {
  opacity: .42;
}

body.portal-user-page .modal-dialog {
  --bs-modal-border-radius: 16px;
}

body.portal-user-page .modal-content,
body.portal-user-page form.modal-content {
  border: 1px solid #dbe7f3 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22) !important;
  overflow: hidden;
  background: #fff;
}

body.portal-user-page .modal-header {
  min-height: 64px;
  border-bottom: 1px solid #dbe7f3 !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 14px 18px !important;
}

body.portal-user-page .modal-title {
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0;
}

body.portal-user-page .modal-title:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 22px;
  margin-right: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, #0d6efd, #198754);
  vertical-align: -5px;
}

body.portal-user-page .modal-header .small,
body.portal-user-page .modal-body .text-muted,
body.portal-user-page .modal-body .small.text-muted {
  color: #64748b !important;
}

body.portal-user-page .modal-body {
  background: #fff;
  padding: 16px 18px !important;
}

body.portal-user-page .modal-footer {
  border-top: 1px solid #dbe7f3 !important;
  background: #f8fbff;
  padding: 12px 18px !important;
}

body.portal-user-page .btn-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #eef4fb;
  opacity: 1;
}

body.portal-user-page .btn-close:hover {
  background-color: #e7f1ff;
}

body.portal-user-page .form-control,
body.portal-user-page .form-select {
  border-color: #cfddeb;
  border-radius: 10px;
  min-height: 40px;
  color: #0f172a;
}

body.portal-user-page textarea.form-control {
  min-height: 92px;
}

body.portal-user-page .form-control:focus,
body.portal-user-page .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .14);
}

body.portal-user-page .form-label {
  color: #334155;
  font-weight: 800;
  font-size: .82rem;
}

body.portal-user-page .table-responsive {
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
}

body.portal-user-page .table {
  margin-bottom: 0;
}

body.portal-user-page .table thead th {
  background: #f8fbff !important;
  color: #334155;
  font-size: .78rem;
  font-weight: 900;
  border-bottom-color: #dbe7f3 !important;
}

body.portal-user-page .table td,
body.portal-user-page .table th {
  border-color: #edf2f7 !important;
}

body.portal-user-page .modal .alert {
  border-radius: 12px;
}

body.portal-user-page .modal .btn {
  border-radius: 10px;
  font-weight: 800;
}

body.portal-user-page .modal .btn-primary,
body.portal-user-page .modal .btn-success {
  box-shadow: 0 8px 18px rgba(13, 110, 253, .12);
}

body.portal-user-page .portal-user-switch-results,
body.portal-user-page .portal-reopened-list,
body.portal-user-page .apartment-detail-list,
body.portal-user-page #portalVehiclesOverviewList {
  display: grid;
  gap: 10px;
}

body.portal-user-page .modal [class*="status"],
body.portal-user-page .modal [id$="Status"] {
  overflow-wrap: anywhere;
}

body.portal-user-page [id] {
  scroll-margin-top: 92px;
}

body.portal-user-page.portal-route-leaving .portal-main {
  opacity: .72;
  transition: opacity .16s ease;
}

body.portal-linked-page {
  background:
    linear-gradient(180deg, #f7fbff 0, #eef4fb 280px, #f8fbff 100%) !important;
  color: #0f172a;
}

body.portal-linked-page .shell {
  width: min(1280px, 100%);
}

body.portal-linked-page .panel,
body.portal-linked-page .public-card,
body.portal-linked-page .upload-card {
  border-color: #dbe7f3 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.portal-linked-page .hero {
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16) !important;
}

body.portal-linked-page .brand,
body.portal-linked-page .public-account {
  border-radius: 14px !important;
}

body.portal-linked-page .btn,
body.portal-linked-page .admin-mini-btn,
body.portal-linked-page .album-btn,
body.portal-linked-page input,
body.portal-linked-page textarea {
  border-radius: 10px !important;
}

body.portal-linked-page input:focus,
body.portal-linked-page textarea:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .14) !important;
  outline: 0;
}

body.portal-linked-page .album-btn:hover,
body.portal-linked-page .album-btn.active {
  border-color: #0d6efd !important;
  background: #eff6ff !important;
}

body.portal-linked-page a:focus-visible,
body.portal-linked-page button:focus-visible {
  outline: 3px solid rgba(13, 110, 253, .24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 1199.98px) {
  body.portal-user-page .portal-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .portal-kpi-grid,
  .portal-dashboard-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.portal-user-page .portal-shell {
    display: block;
  }

  .portal-mobile-bar {
    display: flex;
  }

  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    width: min(86vw, 310px);
    transition: transform .2s ease;
  }

  body.portal-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  body.portal-sidebar-open .portal-sidebar-backdrop {
    display: block;
  }

  .portal-main {
    padding: 0 14px 24px;
  }

  .portal-sidebar .portal-support-box {
    display: none;
  }

  .portal-mobile-support-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 calc(104px + env(safe-area-inset-bottom));
    padding: 14px;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #eef7ff);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  }

  .portal-mobile-support-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
  }

  .portal-mobile-support-card strong {
    display: block;
    margin: 2px 0;
    color: #0d6efd;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
  }
}

@media (max-width: 767.98px) {
  .portal-kpi-grid,
  .portal-dashboard-grid-modern,
  .portal-action-grid {
    grid-template-columns: 1fr;
  }

  .portal-info-band {
    align-items: flex-start;
    flex-direction: column;
  }

  body.portal-user-page .portal-user-switch-panel {
    overflow: hidden !important;
  }

  body.portal-user-page .portal-user-switch-panel > .d-flex {
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  body.portal-user-page .portal-user-switch-panel > .d-flex > div {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.portal-user-page .portal-user-switch-name {
    font-size: .86rem !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.portal-user-page .portal-user-switch-meta {
    max-width: 100% !important;
    font-size: .68rem !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .portal-kpi-card {
    min-height: 104px;
  }

  .portal-album-row,
  .portal-photo-strip {
    grid-template-columns: minmax(220px, 1fr) !important;
    overflow: visible;
  }

  body.portal-user-page .modal-dialog {
    width: calc(100% - 18px);
    margin: 9px auto;
  }

  body.portal-user-page .modal-content,
  body.portal-user-page form.modal-content {
    border-radius: 14px !important;
  }

  body.portal-user-page .modal-header,
  body.portal-user-page .modal-body,
  body.portal-user-page .modal-footer {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.portal-user-page .modal-footer {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.portal-user-page .modal-footer .btn {
    width: 100%;
    min-height: 42px;
  }
}

/* Reference-dashboard polish: keep the landing grid compact and card-like. */
body.portal-user-page .portal-dashboard-grid-modern {
  align-items: stretch;
}

body.portal-user-page #portalBroadcastPanel,
body.portal-user-page #portalCommunicationsPanel,
body.portal-user-page #portalReservationsPanel,
body.portal-user-page #portalPropertiesPanel,
body.portal-user-page #portalPPropertiesPanel,
body.portal-user-page #portalVehiclesPanel,
body.portal-user-page #portalRecentJobsPanel,
body.portal-user-page #portalPhotoAlbumPanel,
body.portal-user-page #portalQuickActionsPanel {
  display: flex !important;
  flex-direction: column;
  margin-bottom: 0 !important;
}

body.portal-user-page #portalPropertiesPanel,
body.portal-user-page #portalPPropertiesPanel,
body.portal-user-page #portalVehiclesPanel,
body.portal-user-page #portalReservationsPanel {
  min-height: 260px;
}

body.portal-user-page #portalBroadcastPanel,
body.portal-user-page #portalCommunicationsPanel,
body.portal-user-page #portalRecentJobsPanel,
body.portal-user-page #portalPhotoAlbumPanel,
body.portal-user-page #portalQuickActionsPanel {
  min-height: 214px;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-jobs-list {
  display: grid;
  gap: 8px;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-card {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: #fff;
  padding: 10px 11px;
  text-align: left;
  color: #172033;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-card:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-title {
  display: block;
  min-width: 0;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-meta,
body.portal-user-page #portalRecentJobsPanel .portal-recent-job-date {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .68rem;
  line-height: 1.15;
  font-weight: 850;
  background: #fef3c7;
  color: #92400e;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-status.done {
  background: #dcfce7;
  color: #166534;
}

body.portal-user-page #portalRecentJobsPanel .portal-recent-job-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

body.portal-user-page #portalVehiclesPanel > .small,
body.portal-user-page #portalReservationsPanel > .d-flex {
  flex: 0 0 auto;
}

body.portal-user-page #portalVehiclesPanel #portalVehiclesList {
  flex: 1 1 auto;
  min-height: 0;
}

body.portal-user-page #portalVehiclesPanel #openVehiclesDetailBtn,
body.portal-user-page #portalReservationsPanel .portal-reservation-bottom-actions {
  margin-top: auto !important;
  margin-bottom: 19px !important;
}

body.portal-user-page #portalReservationsPanel .portal-reservation-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 12px;
}

body.portal-user-page #portalReservationsPanel > .d-flex {
  align-items: flex-start !important;
}

body.portal-user-page #portalReservationsPanel .reservation-header-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  align-items: flex-start !important;
  padding-top: 0;
}

body.portal-user-page #portalReservationsPanel {
  position: relative;
}

body.portal-user-page #portalReservationsPanel > .d-flex > div:first-child {
  padding-right: 172px;
}

body.portal-user-page #portalReservationsPanel #openMyReservationsTopBtn {
  min-width: 92px;
}

body.portal-user-page #portalReservationsPanel > .row,
body.portal-user-page #portalReservationStats,
body.portal-user-page #portalCalendarStatus,
body.portal-user-page #portalCalendar {
  display: none !important;
}

body.portal-user-page #portalReservationsPanel #portalWeekReservations {
  display: grid;
  gap: 8px;
  margin-top: 14px !important;
  max-height: 154px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  min-width: 0;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  line-height: 1.25;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .035);
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-headline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-time,
body.portal-user-page #portalWeekReservations .portal-week-reservation-facility,
body.portal-user-page #portalWeekReservations .portal-week-reservation-party,
body.portal-user-page #portalWeekReservations .portal-week-reservation-note {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-time {
  display: inline-flex;
  flex: 0 0 auto;
  color: #0f172a;
  font-weight: 850;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-separator {
  display: inline-flex;
  flex: 0 0 auto;
  color: #94a3b8;
  font-weight: 700;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-status.is-pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-status.is-payment-pending {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-status.is-canceled {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-facility,
body.portal-user-page #portalWeekReservations .portal-week-reservation-party,
body.portal-user-page #portalWeekReservations .portal-week-reservation-note {
  margin-top: 2px;
  font-size: .76rem;
  line-height: 1.2;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-facility {
  display: inline-flex;
  min-width: 0;
  color: #475569;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-party {
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.portal-user-page #portalWeekReservations .portal-week-reservation-note {
  color: #64748b;
}

body.portal-user-page #portalQuickActionsPanel.portal-quick-actions {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

body.portal-user-page #portalQuickActionsPanel .portal-section-head {
  margin-bottom: 12px;
}

body.portal-user-page #portalQuickActionsPanel .portal-quick-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  width: 100% !important;
}

body.portal-user-page #portalQuickActionsPanel .portal-quick-buttons .btn {
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
}

body.portal-user-page #portalPropertiesPanel .portal-property-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 12px;
}

body.portal-user-page #portalPropertiesPanel .portal-section-title-wrap {
  min-width: 0;
}

body.portal-user-page #portalPropertiesPanel .portal-section-title-wrap h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
}

body.portal-user-page #portalPropertiesPanel .portal-property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

body.portal-user-page #portalPropertiesPanel .portal-property-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 8px !important;
  white-space: nowrap;
  font-size: .78rem;
  line-height: 1.1;
  font-weight: 750;
  flex: 0 1 auto;
}

body.portal-user-page #portalPropertiesPanel .portal-property-action i {
  font-size: .78rem;
  flex: 0 0 auto;
}

body.portal-user-page #portalPropertiesPanel .portal-property-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.portal-user-page #portalPhotoAlbumPanel {
  margin-top: 0 !important;
  order: 8 !important;
  grid-column: 1 / -1 !important;
}

body.portal-user-page #portalPropertiesPanel,
body.portal-user-page #portalPPropertiesPanel {
  order: 1 !important;
}

body.portal-user-page #portalVehiclesPanel {
  order: 2 !important;
}

body.portal-user-page #portalReservationsPanel {
  order: 3 !important;
}

body.portal-user-page #portalBroadcastPanel {
  order: 4 !important;
}

body.portal-user-page #portalCommunicationsPanel {
  order: 5 !important;
}

body.portal-user-page #portalRecentJobsPanel {
  order: 6 !important;
}

body.portal-user-page #portalQuickActionsPanel {
  order: 7 !important;
}

body.portal-user-page #portalPhotoAlbumPanel .portal-photo-strip {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

body.portal-user-page #portalPhotoStrip .portal-photo-strip-card {
  flex: 0 0 clamp(172px, 18vw, 236px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.portal-user-page #portalPhotoAlbumPanel .portal-photo-panel-head {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.portal-user-page #portalPhotoAlbumPanel h2 {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

body.portal-user-page #openPortalPhotoAlbumsBtn {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body.portal-user-page #portalPhotoAlbumPanel .portal-photo-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

body.portal-user-page #portalPhotoAlbumPanel #portalPhotoStrip .portal-photo-strip-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 10px !important;
}

body.portal-user-page #portalPhotoAlbumPanel #portalPhotoStrip .portal-photo-album-cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 0 8px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}

body.portal-user-page #portalPhotoAlbumPanel #portalPhotoStrip .portal-photo-album-copy {
  display: block !important;
  min-width: 0 !important;
}

body.portal-user-page #portalPhotoAlbumPanel #portalPhotoStrip .portal-photo-album-copy .fw-bold,
body.portal-user-page #portalPhotoAlbumPanel #portalPhotoStrip .portal-photo-album-copy .small {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
}

@container (max-width: 380px) {
  body.portal-user-page #portalPhotoAlbumPanel .portal-photo-panel-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
  }

  body.portal-user-page #openPortalPhotoAlbumsBtn {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

body.portal-user-page .portal-icon-btn span,
body.portal-user-page .portal-action-grid .btn {
  white-space: nowrap;
}

body.portal-user-page #portalPhotoAlbumPanel {
  min-width: 0 !important;
  overflow: hidden !important;
}

body.portal-user-page #portalPhotoStrip .portal-photo-album-copy,
body.portal-user-page #portalPhotoStrip .portal-photo-album-copy span {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.portal-user-page .portal-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 1599.98px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.portal-user-page #portalApprovalAdminModal .modal-dialog {
  max-width: min(1240px, calc(100vw - 24px));
}

body.portal-user-page #portalApprovalAdminModal .modal-content {
  overflow: hidden;
  position: relative;
}

body.portal-user-page #portalApprovalAdminModal .portal-approval-modal-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
}

body.portal-user-page #portalApprovalAdminModal .portal-approval-close {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 12px;
  background-color: rgba(239, 246, 255, .95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

body.portal-user-page .portal-approval-frame {
  width: 100%;
  min-height: min(78vh, 760px);
  display: block;
  border: 0;
  background: #ffffff;
}

@media (max-width: 1199.98px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portal-user-page #portalPhotoAlbumPanel .portal-photo-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  body.portal-user-page #portalPhotoStrip .portal-photo-strip-card {
    display: block !important;
    width: 100% !important;
    flex-basis: auto !important;
  }

  body.portal-user-page #openPortalPhotoAlbumsBtn {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  body.portal-user-page .portal-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.portal-user-page .portal-kpi-card {
    min-height: 112px !important;
    grid-template-columns: 44px minmax(0, 1fr) 10px !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    align-items: center !important;
  }

  body.portal-user-page .portal-kpi-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
  }

  body.portal-user-page .portal-kpi-label {
    font-size: .82rem !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  body.portal-user-page .portal-kpi-value {
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important;
    line-height: 1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.portal-user-page #portalKpiDebtAmount {
    font-size: clamp(.96rem, 3.7vw, 1.12rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  body.portal-user-page .portal-kpi-note {
    font-size: .72rem !important;
    line-height: 1.15 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  @media (max-width: 360px) {
    body.portal-user-page .portal-kpi-grid {
      grid-template-columns: 1fr !important;
    }
  }

  body.portal-user-page #portalBroadcastPanel,
  body.portal-user-page #portalCommunicationsPanel,
  body.portal-user-page #portalReservationsPanel,
  body.portal-user-page #portalPropertiesPanel,
  body.portal-user-page #portalVehiclesPanel,
  body.portal-user-page #portalQuickActionsPanel {
    min-height: 0;
  }

  body.portal-user-page #portalQuickActionsPanel .portal-quick-buttons {
    grid-template-columns: 1fr !important;
  }

  body.portal-user-page .portal-property-switcher {
    grid-template-columns: 1fr;
  }

  body.portal-user-page .portal-property-switcher .portal-villa-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.portal-user-page .portal-property-switcher .portal-villa-actions .btn {
    width: 100%;
  }

  body.portal-user-page #portalPhotoAlbumPanel .portal-photo-strip {
    grid-template-columns: none !important;
  }

  body.portal-user-page #portalPropertiesPanel .portal-property-head {
    gap: 10px;
  }

  body.portal-user-page #portalPropertiesPanel .portal-property-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.portal-user-page #portalPropertiesPanel .portal-property-action {
    width: 100%;
    min-height: 34px;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: .76rem;
  }

  body.portal-user-page #portalPropertiesPanel .portal-property-action:last-child {
    grid-column: 1 / -1;
  }

  body.portal-user-page #portalReservationsPanel .reservation-header-actions {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  body.portal-user-page #portalReservationsPanel > .d-flex > div:first-child {
    padding-right: 0;
  }

  body.portal-user-page #portalApprovalAdminModal .modal-dialog {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
  }

  body.portal-user-page #portalApprovalAdminModal .modal-content {
    height: 100dvh;
    border-radius: 0 !important;
  }

  body.portal-user-page .portal-approval-frame {
    min-height: calc(100dvh - 64px);
  }
}

body.portal-user-page .rehber-shared-topbar {
  border-radius: 24px !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04) !important;
}

body.portal-user-page .rehber-shared-logo,
body.portal-user-page .portal-brand-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
}

body.portal-user-page .rehber-shared-welcome h1 {
  font-size: clamp(24px, 4.8vw, 34px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
}

body.portal-user-page .rehber-shared-welcome p,
body.portal-user-page .rehber-shared-welcome .section {
  color: #64748b !important;
}

body.portal-user-page .portal-card,
body.portal-user-page .panel,
body.portal-user-page .portal-mini-card,
body.portal-user-page .week-card,
body.portal-user-page .villa-card,
body.portal-user-page .balance-box {
  border: 1px solid #E2E8F0 !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04) !important;
}

body.portal-user-page .portal-kpi-card {
  min-height: 132px !important;
  grid-template-columns: 64px minmax(0, 1fr) 16px !important;
  gap: 16px !important;
  padding: 20px 18px !important;
}

body.portal-user-page .portal-kpi-card:before {
  display: none !important;
}

body.portal-user-page .portal-kpi-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
}

body.portal-user-page .portal-kpi-icon.success {
  color: #16a34a !important;
  background: #DCFCE7 !important;
}

body.portal-user-page .portal-kpi-icon.primary {
  color: #2563EB !important;
  background: #DBEAFE !important;
}

body.portal-user-page .portal-kpi-icon.purple {
  color: #7C3AED !important;
  background: #F3E8FF !important;
}

body.portal-user-page .portal-kpi-icon.warning {
  color: #F97316 !important;
  background: #FFEDD5 !important;
}

@media (max-width: 767.98px) {
  body.portal-user-page .rehber-shared-topbar {
    padding: 10px !important;
    border-radius: 0 0 24px 24px !important;
  }

  body.portal-user-page .portal-kpi-card {
    min-height: 132px !important;
    grid-template-columns: 52px minmax(0, 1fr) 10px !important;
    gap: 10px !important;
    padding: 14px 12px !important;
  }

  body.portal-user-page .portal-kpi-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }
}
