/* ECA profile card app: standalone card, no legacy card dependency */

.eca-user-app-shell,
.eca-feed-profile-shell {
  display: none !important;
}

.eca-profile-card-app-shell,
.eca-profile-card-app-shell * {
  box-sizing: border-box;
  min-width: 0;
}

.eca-profile-card-app-shell {
  --eca-profile-card-height: 472px;
  width: min(100% - 48px, 1320px);
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin: 10px auto 0;
  color: #111914;
}

.eca-profile-card-app {
  grid-column: 1;
  height: var(--eca-profile-card-height);
  overflow: hidden;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 44, 28, .06);
}

.eca-profile-card-app-cover {
  position: relative;
  height: 154px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: #06361f;
  background-image: var(--eca-profile-card-cover, linear-gradient(135deg, #06361f 0%, #d5a828 100%));
  background-position: center;
  background-size: cover;
}

.eca-profile-card-app-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.12));
  pointer-events: none;
}

.eca-profile-card-app-cover-tools {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
}

.eca-profile-card-app-cover-btn,
.eca-profile-card-app-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,15,9,.72);
  color: #fff;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  cursor: pointer;
}

.eca-profile-card-app-cover-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
}

.eca-profile-card-app-avatar-btn {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #5d6460;
}

.eca-profile-card-app-cover-tools .dropdown-menu,
.eca-profile-card-app-avatar-tools .dropdown-menu,
.eca-profile-card-app-tabs .dropdown-menu {
  min-width: 220px;
  max-width: calc(100vw - 28px);
  padding: 8px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(8, 35, 20, .22);
}

.eca-profile-card-app-cover-tools .dropdown-item,
.eca-profile-card-app-avatar-tools .dropdown-item,
.eca-profile-card-app-tabs .dropdown-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: #1d2b22;
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
}

.eca-profile-card-app-body {
  position: relative;
  height: calc(var(--eca-profile-card-height) - 154px - 58px);
  display: block;
  padding: 0 24px 0 32px;
  background: #fff;
}

.eca-profile-card-app-avatar {
  position: absolute;
  top: -52px;
  left: 32px;
  width: 126px;
  height: 126px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #06361f;
  box-shadow: 0 12px 30px rgba(18, 44, 28, .18);
}

.eca-profile-card-app-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.eca-profile-card-app-online {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 16px;
  height: 16px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1ba85b;
  box-shadow: 0 4px 10px rgba(7, 70, 37, .22);
}

.eca-profile-card-app-avatar-tools {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 4;
}

.eca-profile-card-app-avatar-tools .dropdown-menu {
  right: auto !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  top: auto !important;
  transform: none !important;
}

.eca-profile-card-app-identity {
  position: absolute;
  top: 28px;
  right: 24px;
  left: 188px;
}

.eca-profile-card-app-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
}

.eca-profile-card-app-name h1 {
  min-width: 0;
  margin: 0;
  color: #0f1713;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eca-profile-card-app-badge {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.eca-profile-card-app-badge svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
}

.eca-profile-card-app-pro {
  margin-left: -2px !important;
}

.eca-profile-card-app-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: #17251d;
  font-size: 15px;
  font-weight: 750;
}

.eca-profile-card-app-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e9f2eb;
  color: #064625;
  font-size: 13px;
  font-weight: 850;
}

.eca-profile-card-app-details {
  position: absolute;
  top: 112px;
  right: 24px;
  left: 32px;
  max-width: 720px;
}

.eca-profile-card-app-details p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #1c2a22;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.eca-profile-card-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 12px;
  color: #647067;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.eca-profile-card-app-links span,
.eca-profile-card-app-links a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #647067 !important;
  text-decoration: none !important;
}

.eca-profile-card-app-links i {
  color: #0a5a33;
  font-size: 14px;
}

.eca-profile-card-app-stats {
  position: absolute;
  bottom: 20px;
  left: 32px;
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eca-profile-card-app-stats a {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-left: 1px solid #dfe5e1;
  color: #18241d !important;
  text-align: center;
  text-decoration: none !important;
}

.eca-profile-card-app-stats a:first-child {
  border-left: 0;
}

.eca-profile-card-app-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.eca-profile-card-app-stats span {
  display: block;
  margin-top: 8px;
  color: #5e6b63;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.eca-profile-card-app-actions {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.eca-profile-card-app-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.eca-profile-card-app-tabs {
  height: 58px;
  overflow: hidden;
  border-top: 1px solid #dfe8e2;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.eca-profile-card-app-tabs ul {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0 32px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.eca-profile-card-app-tabs ul::-webkit-scrollbar {
  display: none;
}

.eca-profile-card-app-tabs li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.eca-profile-card-app-tabs a {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 2px;
  color: #28332c;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}

.eca-profile-card-app-tabs a.active,
.eca-profile-card-app-tabs a:hover {
  color: #064625;
}

.eca-profile-card-app-tabs a.active:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #064625;
}

@media (min-width: 992px) {
  .eca-profile-card-app,
  .eca-profile-card-app-tabs,
  .eca-profile-card-app-tabs ul {
    overflow: visible;
  }

  .eca-profile-card-app-tabs {
    position: relative;
    z-index: 30;
  }

  .eca-profile-card-app-tabs li.dropdown {
    position: relative;
  }

  .eca-profile-card-app-tabs .dropdown-menu {
    top: calc(100% - 4px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1050;
    transform: none !important;
  }

  .eca-profile-view-card {
    overflow: hidden;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 44, 28, .06);
  }

  .eca-profile-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
  }

  .eca-profile-view-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6f1;
    color: #064625;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  .eca-profile-view-head h2 {
    margin: 0;
    color: #0f1713;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .eca-profile-view-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dce8df;
    border-radius: 999px;
    background: #f7faf8;
  }

  .eca-profile-view-switch a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #47554c !important;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none !important;
  }

  .eca-profile-view-switch a.active {
    background: #064625;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(6, 70, 37, .18);
  }

  .eca-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .eca-profile-info-section {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e1ebe4;
    border-radius: 8px;
    background: #fbfdfb;
  }

  .eca-profile-info-section-wide {
    grid-column: 1 / -1;
  }

  .eca-profile-info-section h3 {
    margin: 0 0 12px;
    color: #132219;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
  }

  .eca-profile-info-section p {
    margin: 0;
    color: #314037;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
  }

  .eca-profile-info-list {
    display: grid;
    gap: 11px;
  }

  .eca-profile-info-list > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #243129;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
  }

  .eca-profile-info-list i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #064625;
    font-size: 15px;
  }

  .eca-profile-info-list span,
  .eca-profile-info-list a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: inherit;
    text-decoration: none;
  }

  .eca-profile-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
  }

  .eca-profile-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .eca-profile-card-grid [hidden] {
    display: none !important;
  }

  .eca-profile-article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 44, 28, .05);
  }

  .eca-profile-article-card.is-featured {
    min-height: 100%;
  }

  .eca-profile-article-cover {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: #eef3ef;
  }

  .eca-profile-article-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .eca-profile-article-body {
    padding: 15px;
  }

  .eca-profile-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #66746b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .eca-profile-article-card h3 {
    margin: 0;
    color: #101a14;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.2;
  }

  .eca-profile-article-card:not(.is-featured) h3 {
    font-size: 15px;
  }

  .eca-profile-article-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .eca-profile-article-card p {
    margin: 10px 0 0;
    color: #536158;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
  }

  .eca-profile-products-grid > div {
    min-width: 0;
  }

  .eca-profile-products-grid .eca-product-card {
    height: 100%;
    margin: 0;
  }

  .eca-profile-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .eca-profile-photo-grid > div {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
  }

  .eca-profile-photo-grid .pg_photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
  }

  .eca-profile-grid-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }

  .eca-profile-grid-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #064625;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(6, 70, 37, .18);
    cursor: pointer;
  }

  .eca-profile-grid-button.is-secondary {
    background: #f1f6f3;
    color: #064625;
    box-shadow: none;
  }

  .eca-profile-view-sidebar {
    margin-top: 0 !important;
  }

  .eca-profile-card-app-shell.is-compact,
  .container.ele_prof_cont_wide.eca-profile-compact-content {
    --eca-profile-card-height: 392px;
  }

  .eca-profile-card-app.is-compact .eca-profile-card-app-stats {
    bottom: 24px;
  }

  .eca-profile-card-app.is-compact .eca-profile-card-app-actions {
    bottom: 32px;
  }

  .container.ele_prof_cont_wide {
    --eca-profile-card-height: 472px;
    width: min(100% - 48px, 1320px) !important;
    max-width: 1320px !important;
  }

  .container.ele_prof_cont_wide > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 18px 22px !important;
  }

  .container.ele_prof_cont_wide > .row > .middlecol {
    grid-column: 1 !important;
    min-width: 0;
  }

  .container.ele_prof_cont_wide > .row > .sidebar.rightcol.leftcol {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin-top: calc(var(--eca-profile-card-height) * -1) !important;
  }

  .eca-profile-about-desktop {
    padding: 24px !important;
  }

  .eca-profile-about-desktop .eca-profile-about-title {
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
  }

  .eca-profile-about-desktop .eca-profile-about-text {
    width: 100%;
    margin: 12px 0 0 !important;
    color: #243129;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
  }

  .eca-profile-about-desktop .eca-profile-about-list {
    display: grid;
    gap: 11px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e7e3;
  }

  .eca-profile-about-desktop .eca-profile-about-row {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 26px;
    color: #1f2b24;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
  }

  .eca-profile-about-desktop .eca-profile-about-row i {
    width: 22px !important;
    height: 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #064625 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center;
  }

  .eca-profile-about-desktop .eca-profile-about-row span,
  .eca-profile-about-desktop .eca-profile-about-row a {
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
  .eca-profile-card-app-shell,
  .container.ele_prof_cont_wide {
    --eca-profile-card-height: 472px;
    width: min(100% - 28px, 1120px) !important;
  }

  .eca-profile-card-app-shell,
  .container.ele_prof_cont_wide > .row {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 16px !important;
  }

  .eca-profile-card-app {
    height: var(--eca-profile-card-height);
  }

  .eca-profile-card-app-body {
    height: calc(var(--eca-profile-card-height) - 154px - 58px);
    padding-right: 18px;
    padding-left: 24px;
  }

  .eca-profile-card-app-avatar {
    width: 112px;
    height: 112px;
    top: -46px;
    left: 24px;
  }

  .eca-profile-card-app-name h1 {
    font-size: 27px;
  }

  .eca-profile-card-app-identity {
    right: 18px;
    left: 158px;
  }

  .eca-profile-card-app-details {
    right: 18px;
    left: 24px;
    max-width: 620px;
  }

  .eca-profile-card-app-stats {
    left: 24px;
    width: min(100%, 360px);
  }

  .eca-profile-card-app-actions {
    right: 18px;
    justify-content: flex-end;
  }

  .eca-profile-card-app-tabs ul {
    justify-content: flex-start;
    gap: 20px;
    padding: 0 22px;
  }

  .eca-profile-card-app-tabs a {
    font-size: 13px;
  }

  .eca-profile-view-card {
    padding: 20px;
  }

  .eca-profile-card-grid,
  .eca-profile-photo-grid {
    gap: 12px;
  }

  .eca-profile-featured-grid {
    gap: 12px;
  }

  .eca-profile-article-body {
    padding: 13px;
  }

  .eca-profile-article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  .container.ele_prof_cont_wide {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden;
  }

  .container.ele_prof_cont_wide > .row {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .container.ele_prof_cont_wide > .row > .middlecol,
  .container.ele_prof_cont_wide > .row > .leftcol,
  .container.ele_prof_cont_wide > .row > .rightcol,
  .container.ele_prof_cont_wide > .row > .col-12,
  .container.ele_prof_cont_wide > .row > .col-sm-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .eca-profile-card-app-shell {
    width: 100% !important;
    max-width: none !important;
    display: block;
    margin-top: 0;
  }

  .eca-profile-card-app {
    height: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .eca-profile-card-app-cover {
    height: 210px;
    border-radius: 0;
  }

  .eca-profile-card-app-cover-tools {
    top: 14px;
    right: 14px;
  }

  .eca-profile-card-app-body,
  .eca-profile-card-app.is-compact .eca-profile-card-app-body {
    height: auto;
    display: block;
    padding: 0 18px 24px;
    text-align: center;
  }

  .eca-profile-card-app-avatar {
    position: relative;
    top: auto;
    left: auto;
    width: 132px;
    height: 132px;
    margin: -70px auto 0;
    border-width: 5px;
  }

  .eca-profile-card-app-avatar-tools {
    right: -4px;
    bottom: 2px;
  }

  .eca-profile-card-app-identity {
    position: static;
    padding-top: 16px;
  }

  .eca-profile-card-app-name,
  .eca-profile-card-app-meta,
  .eca-profile-card-app-links,
  .eca-profile-card-app-actions {
    justify-content: center;
  }

  .eca-profile-card-app-name h1 {
    font-size: 27px;
    white-space: normal;
  }

  .eca-profile-card-app-details {
    position: static;
    max-width: 100%;
    margin-top: 16px;
  }

  .eca-profile-card-app-details p {
    font-size: 14px;
  }

  .eca-profile-card-app-stats {
    position: static;
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .eca-profile-card-app-stats::-webkit-scrollbar {
    display: none;
  }

  .eca-profile-card-app-stats a {
    min-width: 112px;
    min-height: 76px;
    padding: 0 14px;
  }

  .eca-profile-card-app-actions {
    position: static;
    margin-top: 16px;
  }

  .eca-profile-card-app-tabs {
    height: 60px;
    border-radius: 0;
  }

  .eca-profile-card-app-tabs ul {
    height: 60px;
    justify-content: flex-start;
    gap: 22px;
    padding: 0 16px;
  }
}
