/* Shared profile dropdown + card component */
.user-profile-wrapper {
  position: relative;
}

.profile-icon-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border, rgba(26, 21, 16, 0.11));
  border-radius: 10px;
  background: var(--cream, #f0ede6);
  color: rgba(26, 21, 16, 0.62);
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-icon-btn:hover {
  border-color: var(--border-md, rgba(26, 21, 16, 0.18));
  color: var(--ink, #1a1510);
  background: var(--cream-dk, #e8e2d9);
}

.profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: currentColor;
}

.profile-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  z-index: 650;
}

.profile-dropdown.active {
  display: block;
  animation: profileDropIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes profileDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-card-wrapper {
  width: 312px;
  border-radius: 18px;
  border: 1px solid rgba(26, 21, 16, 0.12);
  background: #ffffff;
  box-shadow: 0 20px 58px rgba(26, 21, 16, 0.2);
  overflow: hidden;
  position: relative;
}

.profile-card-main {
  position: relative;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 8%, rgba(61, 159, 104, 0.42), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(184, 148, 74, 0.22), transparent 45%),
    linear-gradient(155deg, #1a1510 0%, #21170d 55%, #2a1e10 100%);
}

.profile-card-main::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 20px;
  transform: rotate(28deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-card-header-left {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.profile-card-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
}

.profile-time-icon {
  font-size: 12px;
}

.profile-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, #3d9f68, #b8944a);
  color: #f7f6f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 20px rgba(0, 0, 0, 0.22);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card-name-block {
  min-width: 0;
}

.profile-card-name-block h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.profile-card-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}

.profile-card-status-row span:last-child {
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.profile-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #61e090;
  box-shadow: 0 0 0 5px rgba(97, 224, 144, 0.13);
  flex-shrink: 0;
}

.profile-card-actions {
  display: flex;
  gap: 8px;
}

.profile-card-btn {
  flex: 1;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.profile-card-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  transform: translateY(-1px);
}

.profile-card-btn-icon {
  font-size: 12px;
}

.profile-intensity-card {
  background:
    linear-gradient(110deg, rgba(247, 246, 242, 0.96), rgba(240, 237, 230, 0.95));
  border-top: 1px solid rgba(26, 21, 16, 0.09);
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: rgba(26, 21, 16, 0.6);
}

.profile-intensity-card span:last-child {
  font-weight: 700;
  color: #1a1510;
}

@media (max-width: 900px) {
  .profile-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .profile-icon-svg {
    width: 14px;
    height: 14px;
  }

  .profile-dropdown {
    top: calc(100% + 9px);
  }
}

@media (max-width: 640px) {
  .profile-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .profile-icon-svg {
    width: 13px;
    height: 13px;
  }

  .profile-dropdown {
    position: fixed;
    top: 74px;
    right: 12px;
    left: 12px;
  }

  .profile-card-wrapper {
    width: min(100%, 320px);
    margin-left: auto;
    border-radius: 16px;
  }

  .profile-card-main {
    padding: 16px;
  }

  .profile-card-avatar {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .profile-card-name-block h2 {
    font-size: 15px;
  }
}
